Skip to content

Commit

Permalink
Add better label pathing for cub fail tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
alliepiper committed Oct 4, 2024
1 parent 9cce672 commit ace0408
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cub/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,16 @@ function(cub_add_test target_name_var test_name test_src cub_target launcher_id)
target_link_libraries(${test_target} nvtx3-cpp)
endif()


_cub_is_fail_test(is_fail_test "${test_src}")
if (is_fail_test)
set_target_properties(${test_target} PROPERTIES EXCLUDE_FROM_ALL true
EXCLUDE_FROM_DEFAULT_BUILD true)

# The name of the test without the config_prefix or .err_X suffix:
string(REGEX REPLACE ".+\\.([^.]+)\\.err_[0-9]+" "\\1" base_name ${test_target})

cccl_add_ctest(${test_target}
LABEL_MARKER ${base_name}
COMMAND ${CMAKE_COMMAND} --build "${CMAKE_BINARY_DIR}"
--target ${test_target}
--config $<CONFIGURATION>)
Expand Down

0 comments on commit ace0408

Please sign in to comment.