Skip to content

Commit

Permalink
Generated CTestTestfile.cmake needs to use simple add_test signature
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed Jan 3, 2023
1 parent 3d0e914 commit a892495
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rapids-cmake/test/install_relocatable.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function(rapids_test_install_relocatable)
get_test_property(${test} INSTALL_COMMAND command)
get_test_property(${test} RESOURCE_GROUPS resources)
get_test_property(${test} LABELS labels)
string(APPEND content "add_test(NAME [=[${test}]=] COMMAND ${command})\n")
string(APPEND content "add_test([=[${test}]=] ${command})\n")
if(resources)
string(APPEND content
"set_tests_properties([=[${test}]=] PROPERTIES RESOURCE_GROUPS ${resources})\n")
Expand Down
2 changes: 1 addition & 1 deletion testing/test/install_relocatable-simple.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ set(generated_testfile "${CMAKE_CURRENT_BINARY_DIR}/rapids-cmake/testing/CTestTe
file(READ "${generated_testfile}" contents)


set(add_test_match_strings [===[add_test(NAME [=[verify_]=] COMMAND cmake;-Dcommand_to_run=ls;-Dcommand_args=;-P;./run_gpu_test.cmake)]===])
set(add_test_match_strings [===[add_test([=[verify_]=] cmake;-Dcommand_to_run=ls;-Dcommand_args=;-P;./run_gpu_test.cmake)]===])
foreach(item IN LISTS add_test_match_strings)
string(FIND "${contents}" ${item} is_found)
if(is_found EQUAL -1)
Expand Down

0 comments on commit a892495

Please sign in to comment.