summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CTestSubmit
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-02-19 16:07:34 (GMT)
committerBrad King <brad.king@kitware.com>2015-02-19 16:26:44 (GMT)
commit9b50388b0989fab1d77fbb3d48e648c86427d808 (patch)
treee8aa7b1eda503eb170b90a066809f8b46cde2982 /Tests/RunCMake/CTestSubmit
parent76e7c22b3c37f382d6232ee95fe77e39e7aa269d (diff)
downloadCMake-9b50388b0989fab1d77fbb3d48e648c86427d808.zip
CMake-9b50388b0989fab1d77fbb3d48e648c86427d808.tar.gz
CMake-9b50388b0989fab1d77fbb3d48e648c86427d808.tar.bz2
Tests: Split RunCTest helper out of RunCMake.CTest(Submit|Memcheck)
Provide the "run_ctest" macro for use in other tests that also want to cover running "ctest" scripts.
Diffstat (limited to 'Tests/RunCMake/CTestSubmit')
-rw-r--r--Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake18
1 files changed, 1 insertions, 17 deletions
diff --git a/Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake b/Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake
index 797365d..c004e97 100644
--- a/Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CTestSubmit/RunCMakeTest.cmake
@@ -1,26 +1,10 @@
-include(RunCMake)
+include(RunCTest)
# Default case parameters.
set(CASE_DROP_METHOD "http")
set(CASE_DROP_SITE "-no-site-")
set(CASE_CTEST_SUBMIT_ARGS "")
-function(run_ctest CASE_NAME)
- configure_file(${RunCMake_SOURCE_DIR}/test.cmake.in
- ${RunCMake_BINARY_DIR}/${CASE_NAME}/test.cmake @ONLY)
- configure_file(${RunCMake_SOURCE_DIR}/CTestConfig.cmake.in
- ${RunCMake_BINARY_DIR}/${CASE_NAME}/CTestConfig.cmake @ONLY)
- configure_file(${RunCMake_SOURCE_DIR}/CMakeLists.txt.in
- ${RunCMake_BINARY_DIR}/${CASE_NAME}/CMakeLists.txt @ONLY)
- run_cmake_command(${CASE_NAME} ${CMAKE_CTEST_COMMAND}
- -C Debug
- -S ${RunCMake_BINARY_DIR}/${CASE_NAME}/test.cmake
- -V
- --output-log ${RunCMake_BINARY_DIR}/${CASE_NAME}-build/testOutput.log
- ${ARGN}
- )
-endfunction()
-
#-----------------------------------------------------------------------------
# Test bad argument combinations.