Fix RunScript test; it should now work on all platforms

This commit is contained in:
Zach Mullen 2009-10-29 10:00:28 -04:00
parent 6eff237c56
commit 5075c255f7
4 changed files with 17 additions and 4 deletions

View File

@ -1225,10 +1225,10 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Rel
"${CMake_SOURCE_DIR}/Tests/CTestTestRunScript/hello.cmake.in" "${CMake_SOURCE_DIR}/Tests/CTestTestRunScript/hello.cmake.in"
"${CMake_BINARY_DIR}/Tests/CTestTestRunScript/hello.cmake" "${CMake_BINARY_DIR}/Tests/CTestTestRunScript/hello.cmake"
@ONLY ESCAPE_QUOTES) @ONLY ESCAPE_QUOTES)
#ADD_TEST(CTestTestRunScript ${CMAKE_CTEST_COMMAND} ADD_TEST(CTestTestRunScript ${CMAKE_CTEST_COMMAND}
# -S "${CMake_BINARY_DIR}/Tests/CTestTestRunScript/test.cmake" -V -S "${CMake_BINARY_DIR}/Tests/CTestTestRunScript/test.cmake" -V
# --output-log "${CMake_BINARY_DIR}/Tests/CTestTestRunScript/testOutput.log" --output-log "${CMake_BINARY_DIR}/Tests/CTestTestRunScript/testOutput.log"
# ) )
ADD_TEST(CTestTestShowOnly ${CMAKE_CTEST_COMMAND} -N) ADD_TEST(CTestTestShowOnly ${CMAKE_CTEST_COMMAND} -N)

View File

@ -0,0 +1,2 @@
cmake_minimum_required (VERSION 2.6)
PROJECT(CTestTestRunScript)

View File

@ -0,0 +1,7 @@
set(CTEST_PROJECT_NAME "CTestTestRunScript")
set(CTEST_NIGHTLY_START_TIME "21:00:00 EDT")
set(CTEST_DART_SERVER_VERSION "2")
set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "www.cdash.org")
set(CTEST_DROP_LOCATION "/CDash/submit.php?project=PublicDashboard")
set(CTEST_DROP_SITE_CDASH TRUE)

View File

@ -3,5 +3,9 @@ GET_FILENAME_COMPONENT(CTEST_COMMAND "${CMAKE_COMMAND}" PATH)
SET(CTEST_COMMAND "${CTEST_COMMAND}/ctest") SET(CTEST_COMMAND "${CTEST_COMMAND}/ctest")
SET(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestRunScript") SET(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestRunScript")
SET(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestRunScript") SET(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestRunScript")
SET(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
CTEST_START(Experimental)
CTEST_CONFIGURE(BUILD "${CTEST_BINARY_DIRECTORY}")
CTEST_BUILD(BUILD "${CTEST_BINARY_DIRECTORY}")
CTEST_RUN_SCRIPT("${CTEST_BINARY_DIRECTORY}/hello.cmake") CTEST_RUN_SCRIPT("${CTEST_BINARY_DIRECTORY}/hello.cmake")