summaryrefslogtreecommitdiffstats
path: root/Tests/TestDriver
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/TestDriver')
-rw-r--r--Tests/TestDriver/CMakeLists.txt4
-rw-r--r--Tests/TestDriver/test1.cxx8
-rw-r--r--Tests/TestDriver/test2.cxx8
-rw-r--r--Tests/TestDriver/test3.cxx8
4 files changed, 28 insertions, 0 deletions
diff --git a/Tests/TestDriver/CMakeLists.txt b/Tests/TestDriver/CMakeLists.txt
new file mode 100644
index 0000000..0b3d07f
--- /dev/null
+++ b/Tests/TestDriver/CMakeLists.txt
@@ -0,0 +1,4 @@
+PROJECT(TestDriverTest)
+CREATE_TEST_SOURCELIST(testSrcs TestDriverTest test1 test2 test3)
+ADD_EXECUTABLE(TestDriverTest testSrcs)
+
diff --git a/Tests/TestDriver/test1.cxx b/Tests/TestDriver/test1.cxx
new file mode 100644
index 0000000..40aa8d7
--- /dev/null
+++ b/Tests/TestDriver/test1.cxx
@@ -0,0 +1,8 @@
+#include <stdio.h>
+int test1(int ac, char** av)
+{
+ printf("test1\n");
+ for(int i =0; i < ac; i++)
+ printf("arg %d is %s\n", ac, av[i]);
+ return 0;
+}
diff --git a/Tests/TestDriver/test2.cxx b/Tests/TestDriver/test2.cxx
new file mode 100644
index 0000000..2c1f2af
--- /dev/null
+++ b/Tests/TestDriver/test2.cxx
@@ -0,0 +1,8 @@
+#include <stdio.h>
+int test2(int ac, char** av)
+{
+ printf("test2\n");
+ for(int i =0; i < ac; i++)
+ printf("arg %d is %s\n", ac, av[i]);
+ return 0;
+}
diff --git a/Tests/TestDriver/test3.cxx b/Tests/TestDriver/test3.cxx
new file mode 100644
index 0000000..b6bcd91
--- /dev/null
+++ b/Tests/TestDriver/test3.cxx
@@ -0,0 +1,8 @@
+#include <stdio.h>
+int test3(int ac, char** av)
+{
+ printf("test3\n");
+ for(int i =0; i < ac; i++)
+ printf("arg %d is %s\n", ac, av[i]);
+ return 0;
+}