From 0223ba91f3aad2014df152612a805d3feb676ddb Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 29 Mar 2002 11:12:46 -0500 Subject: ENH: add test for set to create source lists --- Tests/TestDriver/CMakeLists.txt | 5 ++++- Tests/TestDriver/test1.cxx | 17 +++++++++++++++++ Tests/TestDriver/testExtraStuff.cxx | 4 ++++ Tests/TestDriver/testExtraStuff2.cxx | 4 ++++ Tests/TestDriver/testExtraStuff3.cxx | 4 ++++ 5 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 Tests/TestDriver/testExtraStuff.cxx create mode 100644 Tests/TestDriver/testExtraStuff2.cxx create mode 100644 Tests/TestDriver/testExtraStuff3.cxx diff --git a/Tests/TestDriver/CMakeLists.txt b/Tests/TestDriver/CMakeLists.txt index a94e8bc..a7f6332 100644 --- a/Tests/TestDriver/CMakeLists.txt +++ b/Tests/TestDriver/CMakeLists.txt @@ -1,10 +1,13 @@ PROJECT(TestDriverTest) +SET(Extra_SRCS testExtraStuff.cxx testExtraStuff2.cxx ) +SET(Extra_SRCS ${Extra_SRCS};testExtraStuff3.cxx ) + CREATE_TEST_SOURCELIST(testSrcs TestDriverTest test1 test2 subdir/test3) -ADD_EXECUTABLE(TestDriverTest testSrcs) +ADD_EXECUTABLE(TestDriverTest testSrcs ${Extra_SRCS}) diff --git a/Tests/TestDriver/test1.cxx b/Tests/TestDriver/test1.cxx index 40aa8d7..1ee7e99 100644 --- a/Tests/TestDriver/test1.cxx +++ b/Tests/TestDriver/test1.cxx @@ -1,6 +1,23 @@ #include +int testExtraStuff3(); +int testExtraStuff(); +int testExtraStuff2(); + int test1(int ac, char** av) { + if(!testExtraStuff2()) + { + return -1; + } + if(!testExtraStuff()) + { + return -1; + } + if(!testExtraStuff3()) + { + return -1; + } + printf("test1\n"); for(int i =0; i < ac; i++) printf("arg %d is %s\n", ac, av[i]); diff --git a/Tests/TestDriver/testExtraStuff.cxx b/Tests/TestDriver/testExtraStuff.cxx new file mode 100644 index 0000000..bfd073c --- /dev/null +++ b/Tests/TestDriver/testExtraStuff.cxx @@ -0,0 +1,4 @@ +int testExtraStuff() +{ + return 1; +} diff --git a/Tests/TestDriver/testExtraStuff2.cxx b/Tests/TestDriver/testExtraStuff2.cxx new file mode 100644 index 0000000..e755dbe --- /dev/null +++ b/Tests/TestDriver/testExtraStuff2.cxx @@ -0,0 +1,4 @@ +int testExtraStuff2() +{ + return 1; +} diff --git a/Tests/TestDriver/testExtraStuff3.cxx b/Tests/TestDriver/testExtraStuff3.cxx new file mode 100644 index 0000000..9c239d4 --- /dev/null +++ b/Tests/TestDriver/testExtraStuff3.cxx @@ -0,0 +1,4 @@ +int testExtraStuff3() +{ + return 1; +} -- cgit v0.12