summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CTestTimeoutAfterMatch/RunCMakeTest.cmake
blob: ee4db839f7d1364f3b17c3b9e8990fb0979a97c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
include(RunCTest)

function(run_ctest_TimeoutAfterMatch CASE_NAME)
  set(CASE_PROPERTY_ARGS "${ARGN}")
  run_ctest(${CASE_NAME})
endfunction()

run_ctest_TimeoutAfterMatch(MissingArg1 "\"-Darg2=Test started\"")
run_ctest_TimeoutAfterMatch(MissingArg2 "\"-Darg1=2\"")
run_ctest_TimeoutAfterMatch(ShouldTimeout "\"-Darg1=1\" \"-Darg2=Test started\"")
run_ctest_TimeoutAfterMatch(ShouldPass "\"-Darg1=15\" \"-Darg2=Test started\"")