Repository navigation
Labels
infraShared CMake, github, etc infrastructure
Description
Is this a duplicate?
- I confirmed there appear to be no duplicate issues for this request and that I agree to the Code of Conduct
Area
General CCCL
Is your feature request related to a problem? Please describe.
CUB tests are able to have fail tests:
Lines 271 to 298 in a1e1337
| _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) | |
| add_test(NAME ${test_target} | |
| COMMAND ${CMAKE_COMMAND} --build "${CMAKE_BINARY_DIR}" | |
| --target ${test_target} | |
| --config $<CONFIGURATION>) | |
| string(REGEX MATCH "err_([0-9]+)" MATCH_RESULT "${test_name}") | |
| file(READ ${test_src} test_content) | |
| if(MATCH_RESULT) | |
| string(REGEX MATCH "// expected-error-${CMAKE_MATCH_1}+ {{\"([^\"]+)\"}}" expected_errors_matches ${test_content}) | |
| if (expected_errors_matches) | |
| set_tests_properties(${test_target} PROPERTIES PASS_REGULAR_EXPRESSION "${CMAKE_MATCH_1}") | |
| else() | |
| set_tests_properties(${test_target} PROPERTIES WILL_FAIL true) | |
| endif() | |
| else() | |
| string(REGEX MATCH "// expected-error {{\"([^\"]+)\"}}" expected_errors_matches ${test_content}) | |
| if (expected_errors_matches) | |
| set_tests_properties(${test_target} PROPERTIES PASS_REGULAR_EXPRESSION "${CMAKE_MATCH_1}") | |
| else() | |
| set_tests_properties(${test_target} PROPERTIES WILL_FAIL true) | |
| endif() | |
| endif() | |
| else() |
Describe the solution you'd like
We should consider hoisting this functionality to the CCCL level, and use it for compilation errors testing in cudax and Thrust.
Describe alternatives you've considered
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
infraShared CMake, github, etc infrastructure
Type
Projects
- StatusShow more project fieldsNo status
Activity