Commit 84d9cd3c authored by Jaroslava Fiedlerova's avatar Jaroslava Fiedlerova

CI: add channel pipeline tests to CTest and label CUDA tests

- add benchmark_channel_pipeline to CTest
- add test_channel_pipeline to CTest
- add `cuda` label to CUDA-dependent tests for easier execution and
  filtering
parent 45d106f1
...@@ -50,7 +50,14 @@ target_link_libraries(test_channel_pipeline PRIVATE UTIL SIMU PHY_COMMON LOG CON ...@@ -50,7 +50,14 @@ target_link_libraries(test_channel_pipeline PRIVATE UTIL SIMU PHY_COMMON LOG CON
if (CUDA_ENABLE) if (CUDA_ENABLE)
target_compile_definitions(test_channel_pipeline PRIVATE CUDA_ENABLE) target_compile_definitions(test_channel_pipeline PRIVATE CUDA_ENABLE)
add_dependencies(tests test_channel_pipeline)
add_test(NAME test_channel_pipeline COMMAND test_channel_pipeline)
set_tests_properties(test_channel_pipeline PROPERTIES LABELS "cuda")
target_compile_definitions(benchmark_channel_pipeline PRIVATE CUDA_ENABLE) target_compile_definitions(benchmark_channel_pipeline PRIVATE CUDA_ENABLE)
add_dependencies(tests benchmark_channel_pipeline)
add_test(NAME benchmark_channel_pipeline COMMAND benchmark_channel_pipeline)
set_tests_properties(benchmark_channel_pipeline PROPERTIES LABELS "cuda")
endif() endif()
if(CUDA_ENABLE) if(CUDA_ENABLE)
...@@ -59,12 +66,14 @@ target_link_libraries(test_multipath PRIVATE UTIL SIMU LOG CONFIG_LIB shlib_load ...@@ -59,12 +66,14 @@ target_link_libraries(test_multipath PRIVATE UTIL SIMU LOG CONFIG_LIB shlib_load
add_dependencies(tests test_multipath) add_dependencies(tests test_multipath)
add_test(NAME test_multipath COMMAND test_multipath) add_test(NAME test_multipath COMMAND test_multipath)
set_tests_properties(test_multipath PROPERTIES LABELS "cuda")
add_executable(test_noise test_noise.c) add_executable(test_noise test_noise.c)
target_link_libraries(test_noise PRIVATE UTIL SIMU PHY_COMMON LOG CONFIG_LIB shlib_loader m oai_cuda_lib) target_link_libraries(test_noise PRIVATE UTIL SIMU PHY_COMMON LOG CONFIG_LIB shlib_loader m oai_cuda_lib)
add_dependencies(tests test_noise) add_dependencies(tests test_noise)
add_test(NAME test_noise COMMAND test_noise) add_test(NAME test_noise COMMAND test_noise)
set_tests_properties(test_noise PROPERTIES LABELS "cuda")
add_executable(test_channel_simulation test_channel_simulation.c) add_executable(test_channel_simulation test_channel_simulation.c)
target_link_libraries(test_channel_simulation PRIVATE UTIL SIMU PHY_COMMON LOG CONFIG_LIB shlib_loader m oai_cuda_lib) target_link_libraries(test_channel_simulation PRIVATE UTIL SIMU PHY_COMMON LOG CONFIG_LIB shlib_loader m oai_cuda_lib)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment