summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTest
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2009-10-08 16:17:03 (GMT)
committerDavid Cole <david.cole@kitware.com>2009-10-08 16:17:03 (GMT)
commitc16ac1a31d6e435eef4c8752acf0cfc4cce0cdef (patch)
tree823c0f62267402640f4ba619581756b1c1da4820 /Tests/CTestTest
parent65b6a8f54a90b2eff3dbacc01fbd25675308b77a (diff)
downloadCMake-c16ac1a31d6e435eef4c8752acf0cfc4cce0cdef.zip
CMake-c16ac1a31d6e435eef4c8752acf0cfc4cce0cdef.tar.gz
CMake-c16ac1a31d6e435eef4c8752acf0cfc4cce0cdef.tar.bz2
Reduce duration of ctest_sleep arguments. Add SmallAndFast project. Replace kwsys with SmallAndFast to make CTestTest faster. (I will keep an eye on coverage results after this commit and make sure we still have equivalent ctest coverage.)
Diffstat (limited to 'Tests/CTestTest')
-rw-r--r--Tests/CTestTest/SmallAndFast/CMakeLists.txt10
-rw-r--r--Tests/CTestTest/SmallAndFast/echoargs.c11
-rw-r--r--Tests/CTestTest/test.cmake.in17
3 files changed, 28 insertions, 10 deletions
diff --git a/Tests/CTestTest/SmallAndFast/CMakeLists.txt b/Tests/CTestTest/SmallAndFast/CMakeLists.txt
new file mode 100644
index 0000000..51aa887
--- /dev/null
+++ b/Tests/CTestTest/SmallAndFast/CMakeLists.txt
@@ -0,0 +1,10 @@
+cmake_minimum_required(VERSION 2.8)
+project(SmallAndFast)
+
+include(CTest)
+
+add_executable(echoargs echoargs.c)
+
+add_test(test0 echoargs)
+add_test(test1 echoargs 1)
+add_test(test2 echoargs 1 2)
diff --git a/Tests/CTestTest/SmallAndFast/echoargs.c b/Tests/CTestTest/SmallAndFast/echoargs.c
new file mode 100644
index 0000000..6e17464
--- /dev/null
+++ b/Tests/CTestTest/SmallAndFast/echoargs.c
@@ -0,0 +1,11 @@
+#include <stdio.h>
+
+int main(int argc, const char* argv[])
+{
+ int i = 0;
+ for (; i<argc; ++i)
+ {
+ fprintf(stdout, "%s\n", argv[i]);
+ }
+ return 0;
+}
diff --git a/Tests/CTestTest/test.cmake.in b/Tests/CTestTest/test.cmake.in
index 3efe52a..eac5eab 100644
--- a/Tests/CTestTest/test.cmake.in
+++ b/Tests/CTestTest/test.cmake.in
@@ -4,12 +4,12 @@
###################################################################
# this is the cvs module name that should be checked out
-SET (CTEST_MODULE_NAME kwsys)
+SET (CTEST_MODULE_NAME SmallAndFast)
# these are the the name of the source and binary directory on disk.
# They will be appended to DASHBOARD_ROOT
-SET (CTEST_SOURCE_NAME kwsys)
-SET (CTEST_BINARY_NAME kwsysBin)
+SET (CTEST_SOURCE_NAME SmallAndFast)
+SET (CTEST_BINARY_NAME SmallAndFastBuild)
# which ctest command to use for running the dashboard
SET (CTEST_COMMAND
@@ -24,8 +24,8 @@ SET(CTEST_CMAKE_COMMAND "\"${CTEST_EXECUTABLE_PATH}/cmake\"")
MESSAGE("CTest executable: ${CTEST_EXECUTABLE_NAME}")
MESSAGE("CMake executable: ${CTEST_CMAKE_COMMAND}")
-CTEST_SLEEP(5)
-CTEST_SLEEP(5 5 7)
+CTEST_SLEEP(1)
+CTEST_SLEEP(1 1 1)
####################################################################
# The values in this section are optional you can either
@@ -39,7 +39,7 @@ SET (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)
# any quotes inside of this string if you use it
SET (CTEST_INITIAL_CACHE "
SITE:STRING=@SITE@
-BUILDNAME:STRING=KWSys-@BUILDNAME@
+BUILDNAME:STRING=SmallAndFast-@BUILDNAME@
CMAKE_GENERATOR:INTERNAL=@CMAKE_GENERATOR@
CMAKE_CXX_FLAGS:STRING=@CMAKE_CXX_FLAGS@
CMAKE_C_FLAGS:STRING=@CMAKE_C_FLAGS@
@@ -52,9 +52,6 @@ MEMORYCHECK_COMMAND:STRING=@MEMORYCHECK_COMMAND@
MEMORYCHECK_SUPPRESSIONS_FILE:FILEPATH=@MEMORYCHECK_SUPPRESSIONS_FILE@
MEMORYCHECK_COMMAND_OPTIONS:STRING=@MEMORYCHECK_COMMAND_OPTIONS@
COVERAGE_COMMAND:FILEPATH=@COVERAGE_COMMAND@
-
-# This one is needed for testing advanced ctest features
-CTEST_TEST_KWSYS:BOOL=ON
")
# if you do not want to use the default location for a
@@ -67,5 +64,5 @@ SET (CTEST_DASHBOARD_ROOT "@CMAKE_CURRENT_BINARY_DIR@/Tests/CTestTest")
SET (CTEST_ENVIRONMENT
)
-SET (CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Source/kwsys")
+SET (CTEST_SOURCE_DIRECTORY "@CMake_SOURCE_DIR@/Tests/CTestTest/SmallAndFast")
SET (CTEST_BINARY_DIRECTORY "@CMake_BINARY_DIR@/Tests/CTestTest/${CTEST_BINARY_NAME}")