summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestUpload/test.cmake.in
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2011-02-18 17:11:51 (GMT)
committerBrad King <brad.king@kitware.com>2011-03-15 19:07:37 (GMT)
commit350546db3aa956e34487bd38dd048fe9a0689e4a (patch)
tree3f0bda38ef56ddba39d93cb172e5cec8e6fb3fe7 /Tests/CTestTestUpload/test.cmake.in
parent0554e5e50f6eb3117b4e207f4b01876dbe5a75a4 (diff)
downloadCMake-350546db3aa956e34487bd38dd048fe9a0689e4a.zip
CMake-350546db3aa956e34487bd38dd048fe9a0689e4a.tar.gz
CMake-350546db3aa956e34487bd38dd048fe9a0689e4a.tar.bz2
Implement ctest_upload command
Diffstat (limited to 'Tests/CTestTestUpload/test.cmake.in')
-rw-r--r--Tests/CTestTestUpload/test.cmake.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/CTestTestUpload/test.cmake.in b/Tests/CTestTestUpload/test.cmake.in
new file mode 100644
index 0000000..2ab98d7
--- /dev/null
+++ b/Tests/CTestTestUpload/test.cmake.in
@@ -0,0 +1,17 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.1)
+
+# Settings:
+SET(CTEST_DASHBOARD_ROOT "@CMake_BINARY_DIR@/Tests/CTestTest")
+SET(CTEST_SITE "@SITE@")
+SET(CTEST_BUILD_NAME "CTestTest-@BUILDNAME@-Upload")
+
+SET(CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTestUpload")
+SET(CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTestUpload")
+SET(CTEST_CMAKE_GENERATOR "@CMAKE_TEST_GENERATOR@")
+SET(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}")
+
+CTEST_START(Experimental)
+CTEST_CONFIGURE(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
+CTEST_BUILD(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
+CTEST_UPLOAD("${CTEST_SOURCE_DIRECTORY}/sleep.c" "${CTEST_BINARY_DIRECTORY}/CMakeCache.txt")
+CTEST_SUBMIT()