summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ctest_update/RunCMakeTest.cmake
blob: f7a31e505b9ac979ce9314352f5e65e215573fb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
include(RunCTest)
set(CASE_CTEST_UPDATE_ARGS "")
function(run_ctest_update CASE_NAME)
  set(CASE_CTEST_UPDATE_ARGS "${ARGN}")
  run_ctest(${CASE_NAME})
endfunction()

run_ctest_update(UpdateQuiet QUIET)

function(run_UpdateChangeId)
  set(CASE_TEST_PREFIX_CODE [[
    set(CTEST_CHANGE_ID "<>1")
  ]])

  run_ctest(UpdateChangeId)
endfunction()
run_UpdateChangeId()