Tests: Rename RunCMake.CTestMemcheck internals to match CTestSubmit
This commit is contained in:
parent
09cdcc5430
commit
76e7c22b3c
|
@ -1,5 +1,5 @@
|
|||
cmake_minimum_required(VERSION 2.8.9)
|
||||
project(CTestTestMemcheck@SUBTEST_NAME@ NONE)
|
||||
project(CTestTestMemcheck@CASE_NAME@ NONE)
|
||||
include(CTest)
|
||||
|
||||
add_test(NAME RunCMake COMMAND "${CMAKE_COMMAND}" --version)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
set (CTEST_PROJECT_NAME "CTestTestMemcheck@SUBTEST_NAME@")
|
||||
set (CTEST_PROJECT_NAME "CTestTestMemcheck@CASE_NAME@")
|
||||
set (CTEST_NIGHTLY_START_TIME "21:00:00 EDT")
|
||||
set (CTEST_DART_SERVER_VERSION "2")
|
||||
set(CTEST_DROP_METHOD "http")
|
||||
|
|
|
@ -4,18 +4,18 @@ set(SITE test-site)
|
|||
set(BUILDNAME test-build)
|
||||
set(COVERAGE_COMMAND "")
|
||||
|
||||
function(run_mc_test SUBTEST_NAME CHECKER_COMMAND)
|
||||
function(run_mc_test CASE_NAME CHECKER_COMMAND)
|
||||
configure_file(${RunCMake_SOURCE_DIR}/test.cmake.in
|
||||
${RunCMake_BINARY_DIR}/${SUBTEST_NAME}/test.cmake @ONLY)
|
||||
${RunCMake_BINARY_DIR}/${CASE_NAME}/test.cmake @ONLY)
|
||||
configure_file(${RunCMake_SOURCE_DIR}/CTestConfig.cmake.in
|
||||
${RunCMake_BINARY_DIR}/${SUBTEST_NAME}/CTestConfig.cmake @ONLY)
|
||||
${RunCMake_BINARY_DIR}/${CASE_NAME}/CTestConfig.cmake @ONLY)
|
||||
configure_file(${RunCMake_SOURCE_DIR}/CMakeLists.txt.in
|
||||
${RunCMake_BINARY_DIR}/${SUBTEST_NAME}/CMakeLists.txt @ONLY)
|
||||
run_cmake_command(${SUBTEST_NAME} ${CMAKE_CTEST_COMMAND}
|
||||
${RunCMake_BINARY_DIR}/${CASE_NAME}/CMakeLists.txt @ONLY)
|
||||
run_cmake_command(${CASE_NAME} ${CMAKE_CTEST_COMMAND}
|
||||
-C Debug
|
||||
-S ${RunCMake_BINARY_DIR}/${SUBTEST_NAME}/test.cmake
|
||||
-S ${RunCMake_BINARY_DIR}/${CASE_NAME}/test.cmake
|
||||
-V
|
||||
--output-log ${RunCMake_BINARY_DIR}/${SUBTEST_NAME}-build/testOutput.log
|
||||
--output-log ${RunCMake_BINARY_DIR}/${CASE_NAME}-build/testOutput.log
|
||||
${ARGN}
|
||||
)
|
||||
endfunction()
|
||||
|
|
|
@ -2,10 +2,10 @@ cmake_minimum_required(VERSION 2.8.9)
|
|||
|
||||
# Settings:
|
||||
set(CTEST_SITE "@SITE@")
|
||||
set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-Memcheck@SUBTEST_NAME@")
|
||||
set(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-Memcheck@CASE_NAME@")
|
||||
|
||||
set(CTEST_SOURCE_DIRECTORY "@RunCMake_BINARY_DIR@/@SUBTEST_NAME@")
|
||||
set(CTEST_BINARY_DIRECTORY "@RunCMake_BINARY_DIR@/@SUBTEST_NAME@-build")
|
||||
set(CTEST_SOURCE_DIRECTORY "@RunCMake_BINARY_DIR@/@CASE_NAME@")
|
||||
set(CTEST_BINARY_DIRECTORY "@RunCMake_BINARY_DIR@/@CASE_NAME@-build")
|
||||
set(CTEST_CMAKE_GENERATOR "@RunCMake_GENERATOR@")
|
||||
set(CTEST_CMAKE_GENERATOR_PLATFORM "@RunCMake_GENERATOR_PLATFORM@")
|
||||
set(CTEST_CMAKE_GENERATOR_TOOLSET "@RunCMake_GENERATOR_TOOLSET@")
|
||||
|
|
Loading…
Reference in New Issue