summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/add_test/TestLauncher-check.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-01-26 19:04:42 (GMT)
committerBrad King <brad.king@kitware.com>2024-01-27 16:34:35 (GMT)
commitfb766ff638c31264ca70f588c26a38ea365668a0 (patch)
tree9650a5bc6f0e30f8735bc06f2a0e53ebfbbb92d0 /Tests/RunCMake/add_test/TestLauncher-check.cmake
parentc5b58b0842925b7de0e36dfb30cfc47383f4d5c6 (diff)
downloadCMake-fb766ff638c31264ca70f588c26a38ea365668a0.zip
CMake-fb766ff638c31264ca70f588c26a38ea365668a0.tar.gz
CMake-fb766ff638c31264ca70f588c26a38ea365668a0.tar.bz2
Tests: Improve RunCMake.add_test TEST_LAUNCHER coverage
Verify that ctest actually runs the test command lines as expected.
Diffstat (limited to 'Tests/RunCMake/add_test/TestLauncher-check.cmake')
-rw-r--r--Tests/RunCMake/add_test/TestLauncher-check.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/Tests/RunCMake/add_test/TestLauncher-check.cmake b/Tests/RunCMake/add_test/TestLauncher-check.cmake
index d6e795c..add1105 100644
--- a/Tests/RunCMake/add_test/TestLauncher-check.cmake
+++ b/Tests/RunCMake/add_test/TestLauncher-check.cmake
@@ -8,27 +8,27 @@ endif()
set(error_details "There is a problem with generated test file:\n ${testfile}")
-if(testfile_contents MATCHES "add_test[(]DoesNotUseTestLauncher [^\n]+pseudo_test_launcher[^\n]+\n")
+if(testfile_contents MATCHES "add_test[(]DoesNotUseTestLauncher [^\n]+pseudo_emulator[^\n]+\n")
set(RunCMake_TEST_FAILED "Used test launcher when it should not be used. ${error_details}")
return()
endif()
-if(NOT testfile_contents MATCHES "add_test[(]UsesTestLauncher [^\n]+pseudo_test_launcher[^\n]+\n")
+if(NOT testfile_contents MATCHES "add_test[(]UsesTestLauncher [^\n]+pseudo_emulator[^\n]+\n")
set(RunCMake_TEST_FAILED "Did not use test launcher when it should be used. ${error_details}")
return()
endif()
-if(testfile_contents MATCHES "add_test[(]DoesNotUseTestLauncherWithGenex [^\n]+pseudo_test_launcher[^\n]+\n")
+if(testfile_contents MATCHES "add_test[(]DoesNotUseTestLauncherWithGenex [^\n]+pseudo_emulator[^\n]+\n")
set(RunCMake_TEST_FAILED "Used test launcher when it should not be used. ${error_details}")
return()
endif()
-if(NOT testfile_contents MATCHES "add_test[(]UsesTestLauncherWithExecTargetFromSubdirAddedWithoutGenex [^\n]+pseudo_test_launcher[^\n]+\n")
+if(NOT testfile_contents MATCHES "add_test[(]UsesTestLauncherWithExecTargetFromSubdirAddedWithoutGenex [^\n]+pseudo_emulator[^\n]+\n")
set(RunCMake_TEST_FAILED "Did not use test launcher when it should be used. ${error_details}")
return()
endif()
-if(testfile_contents MATCHES "add_test[(]DoesNotUseTestLauncherWithExecTargetFromSubdirAddedWithGenex [^\n]+pseudo_test_launcher[^\n]+\n")
+if(testfile_contents MATCHES "add_test[(]DoesNotUseTestLauncherWithExecTargetFromSubdirAddedWithGenex [^\n]+pseudo_emulator[^\n]+\n")
set(RunCMake_TEST_FAILED "Used test launcher when it should not be used. ${error_details}")
return()
endif()