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
This commit is contained in:
@@ -50,7 +50,14 @@ target_link_libraries(test_channel_pipeline PRIVATE UTIL SIMU PHY_COMMON LOG CON
|
||||
|
||||
if (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)
|
||||
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()
|
||||
|
||||
if(CUDA_ENABLE)
|
||||
@@ -59,12 +66,14 @@ target_link_libraries(test_multipath PRIVATE UTIL SIMU LOG CONFIG_LIB shlib_load
|
||||
|
||||
add_dependencies(tests 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)
|
||||
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_test(NAME test_noise COMMAND test_noise)
|
||||
set_tests_properties(test_noise PROPERTIES LABELS "cuda")
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user