diff options
-rw-r--r-- | Tests/CTestTest/SmallAndFast/CMakeLists.txt | 10 | ||||
-rw-r--r-- | Tests/CTestTest/SmallAndFast/echoargs.c | 11 | ||||
-rw-r--r-- | Tests/CTestTest/test.cmake.in | 17 |
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}") |