diff options
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; +} |