diff options
author | David Cole <david.cole@kitware.com> | 2009-10-08 16:17:03 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2009-10-08 16:17:03 (GMT) |
commit | c16ac1a31d6e435eef4c8752acf0cfc4cce0cdef (patch) | |
tree | 823c0f62267402640f4ba619581756b1c1da4820 /Tests/CTestTest/SmallAndFast | |
parent | 65b6a8f54a90b2eff3dbacc01fbd25675308b77a (diff) | |
download | CMake-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/SmallAndFast')
-rw-r--r-- | Tests/CTestTest/SmallAndFast/CMakeLists.txt | 10 | ||||
-rw-r--r-- | Tests/CTestTest/SmallAndFast/echoargs.c | 11 |
2 files changed, 21 insertions, 0 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; +} |