diff options
author | Brad King <brad.king@kitware.com> | 2020-06-12 15:02:28 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-06-12 15:02:36 (GMT) |
commit | 30444546eda6e6320fa016e1e2d9028304e0d640 (patch) | |
tree | d72a578c2a69a4ce474327b7e2a310845edf4eb6 /Tests/Cuda/CMakeLists.txt | |
parent | 068551cfb24c9cd3606ef698cfcc2403c44469fc (diff) | |
parent | 2e7cefec03e580ea09c5479247d8d1991618e5ab (diff) | |
download | CMake-30444546eda6e6320fa016e1e2d9028304e0d640.zip CMake-30444546eda6e6320fa016e1e2d9028304e0d640.tar.gz CMake-30444546eda6e6320fa016e1e2d9028304e0d640.tar.bz2 |
Merge topic 'gitlab-ci-ext-test-sets'
2e7cefec03 gitlab-ci: add a cuda10.2 builder
1a2961b895 Tests: add CUDA labels to tests which are affected by CUDA
2caa7502d5 ci: support running just a set of tests with external builders
26b4cbcf93 gitlab-ci: move Makefiles Linux tests to use the package
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4877
Diffstat (limited to 'Tests/Cuda/CMakeLists.txt')
-rw-r--r-- | Tests/Cuda/CMakeLists.txt | 41 |
1 files changed, 23 insertions, 18 deletions
diff --git a/Tests/Cuda/CMakeLists.txt b/Tests/Cuda/CMakeLists.txt index 630cea2..35ceb33 100644 --- a/Tests/Cuda/CMakeLists.txt +++ b/Tests/Cuda/CMakeLists.txt @@ -1,30 +1,35 @@ +macro (add_cuda_test_macro name) + add_test_macro("${name}" ${ARGN}) + set_property(TEST "${name}" APPEND + PROPERTY LABELS "CUDA") +endmacro () -ADD_TEST_MACRO(Cuda.ConsumeCompileFeatures CudaConsumeCompileFeatures) -ADD_TEST_MACRO(Cuda.CXXStandardSetTwice CXXStandardSetTwice) -ADD_TEST_MACRO(Cuda.ObjectLibrary CudaObjectLibrary) -ADD_TEST_MACRO(Cuda.MixedStandardLevels1 MixedStandardLevels1) -ADD_TEST_MACRO(Cuda.MixedStandardLevels2 MixedStandardLevels2) -ADD_TEST_MACRO(Cuda.MixedStandardLevels3 MixedStandardLevels3) -ADD_TEST_MACRO(Cuda.MixedStandardLevels4 MixedStandardLevels4) -ADD_TEST_MACRO(Cuda.MixedStandardLevels5 MixedStandardLevels5) -ADD_TEST_MACRO(Cuda.NotEnabled CudaNotEnabled) -ADD_TEST_MACRO(Cuda.SeparableCompCXXOnly SeparableCompCXXOnly) -ADD_TEST_MACRO(Cuda.Toolkit Toolkit) -ADD_TEST_MACRO(Cuda.IncludePathNoToolkit IncludePathNoToolkit) -ADD_TEST_MACRO(Cuda.SharedRuntimePlusToolkit SharedRuntimePlusToolkit) +add_cuda_test_macro(Cuda.ConsumeCompileFeatures CudaConsumeCompileFeatures) +add_cuda_test_macro(Cuda.CXXStandardSetTwice CXXStandardSetTwice) +add_cuda_test_macro(Cuda.ObjectLibrary CudaObjectLibrary) +add_cuda_test_macro(Cuda.MixedStandardLevels1 MixedStandardLevels1) +add_cuda_test_macro(Cuda.MixedStandardLevels2 MixedStandardLevels2) +add_cuda_test_macro(Cuda.MixedStandardLevels3 MixedStandardLevels3) +add_cuda_test_macro(Cuda.MixedStandardLevels4 MixedStandardLevels4) +add_cuda_test_macro(Cuda.MixedStandardLevels5 MixedStandardLevels5) +add_cuda_test_macro(Cuda.NotEnabled CudaNotEnabled) +add_cuda_test_macro(Cuda.SeparableCompCXXOnly SeparableCompCXXOnly) +add_cuda_test_macro(Cuda.Toolkit Toolkit) +add_cuda_test_macro(Cuda.IncludePathNoToolkit IncludePathNoToolkit) +add_cuda_test_macro(Cuda.SharedRuntimePlusToolkit SharedRuntimePlusToolkit) # Separable compilation is currently only supported on NVCC. Disable tests # using it for other compilers. if(CMake_TEST_CUDA AND NOT CMake_TEST_CUDA STREQUAL "Clang") - ADD_TEST_MACRO(Cuda.Complex CudaComplex) - ADD_TEST_MACRO(Cuda.ProperDeviceLibraries ProperDeviceLibraries) - ADD_TEST_MACRO(Cuda.ProperLinkFlags ProperLinkFlags) + add_cuda_test_macro(Cuda.Complex CudaComplex) + add_cuda_test_macro(Cuda.ProperDeviceLibraries ProperDeviceLibraries) + add_cuda_test_macro(Cuda.ProperLinkFlags ProperLinkFlags) endif() # The CUDA only ships the shared version of the toolkit libraries # on windows if(NOT WIN32) - ADD_TEST_MACRO(Cuda.StaticRuntimePlusToolkit StaticRuntimePlusToolkit) + add_cuda_test_macro(Cuda.StaticRuntimePlusToolkit StaticRuntimePlusToolkit) endif() -ADD_TEST_MACRO(Cuda.WithC CudaWithC) +add_cuda_test_macro(Cuda.WithC CudaWithC) |