blob: 7adf7e35cca9241420113a647986fc53fc50bf07 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
From 400797728d50d335c2399bc44ab2b1330d0c6dc4 Mon Sep 17 00:00:00 2001
From: Harmen Stoppels <harmenstoppels@gmail.com>
Date: Wed, 4 Aug 2021 15:10:00 +0200
Subject: [PATCH] tests
---
CMakeLists.txt | 42 ------------------------------------------
1 file changed, 42 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 055543a..7e408b6 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -661,48 +661,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_CTEST_CONFIG_DEFAULT} ${HIP_SRC_PATH}/tests/src "directed_tests")
-
- # Add unit tests
- include_directories(${HIP_SRC_PATH}/tests/unit)
- hit_add_directory_recursive(${HIP_CTEST_CONFIG_DEFAULT} ${HIP_SRC_PATH}/tests/unit "unit_tests")
-
- # Add performance tests
- include_directories(${HIP_SRC_PATH}/tests/performance)
- hit_add_directory_recursive(${HIP_CTEST_CONFIG_PERFORMANCE} ${HIP_SRC_PATH}/tests/performance "performance_tests")
-
- # Add top-level tests to build_tests
- add_custom_target(build_tests DEPENDS directed_tests unit_tests)
-
- # Add top-level tests to build performance_tests.
- # To build performance tests, just run "make build_perf"
- add_custom_target(build_perf DEPENDS performance_tests)
-
- # Add custom target: perf.
- # To run performance tests, just run "make perf"
- add_custom_target(perf COMMAND "${CMAKE_CTEST_COMMAND}" -C "${HIP_CTEST_CONFIG_PERFORMANCE}" -R "performance_tests/" --verbose)
-
- # 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
|