54 lines
1.9 KiB
Diff
54 lines
1.9 KiB
Diff
From 52f389bc39e6f3d1eb76225a82c23312dd6006ee Mon Sep 17 00:00:00 2001
|
|
From: Harmen Stoppels <harmenstoppels@gmail.com>
|
|
Date: Wed, 4 Aug 2021 15:12:10 +0200
|
|
Subject: [PATCH] tests
|
|
|
|
---
|
|
CMakeLists.txt | 30 ------------------------------
|
|
1 file changed, 30 deletions(-)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 4a34b02..37e1c3f 100755
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -641,36 +641,6 @@ if(CLANGFORMAT_EXE)
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
|
endif()
|
|
|
|
-#############################
|
|
-# Testing steps
|
|
-#############################
|
|
-# Target: test
|
|
-set(HIP_ROOT_DIR ${CMAKE_INSTALL_PREFIX})
|
|
-set(HIP_SRC_PATH ${CMAKE_CURRENT_SOURCE_DIR})
|
|
-execute_process(COMMAND "${CMAKE_COMMAND}" -E copy_directory "${HIP_SRC_PATH}/cmake" "${HIP_ROOT_DIR}/cmake" RESULT_VARIABLE RUN_HIT ERROR_QUIET)
|
|
-if(${RUN_HIT} EQUAL 0)
|
|
- execute_process(COMMAND "${CMAKE_COMMAND}" -E copy_directory "${HIP_SRC_PATH}/bin" "${HIP_ROOT_DIR}/bin" RESULT_VARIABLE RUN_HIT ERROR_QUIET)
|
|
-endif()
|
|
-if(${RUN_HIT} EQUAL 0)
|
|
- set(CMAKE_MODULE_PATH "${HIP_ROOT_DIR}/cmake" ${CMAKE_MODULE_PATH})
|
|
- include(${HIP_SRC_PATH}/tests/hit/HIT.cmake)
|
|
-
|
|
- # Add tests
|
|
- include_directories(${HIP_SRC_PATH}/tests/src)
|
|
- hit_add_directory_recursive(${HIP_SRC_PATH}/tests/src "directed_tests")
|
|
-
|
|
- # Add unit tests
|
|
- include_directories(${HIP_SRC_PATH}/tests/unit)
|
|
- hit_add_directory_recursive(${HIP_SRC_PATH}/tests/unit "unit_tests")
|
|
-
|
|
- # Add top-level tests to build_tests
|
|
- add_custom_target(build_tests DEPENDS directed_tests unit_tests)
|
|
-
|
|
- # Add custom target: check
|
|
- add_custom_target(check COMMAND "${CMAKE_COMMAND}" --build . --target test DEPENDS build_tests)
|
|
-else()
|
|
- message(STATUS "Testing targets will not be available. To enable them please ensure that the HIP installation directory is writeable. Use -DCMAKE_INSTALL_PREFIX to specify a suitable location")
|
|
-endif()
|
|
|
|
#############################
|
|
# Code analysis
|
|
--
|
|
2.25.1
|
|
|