ENH: add testdriver test with source file in subdir

This commit is contained in:
Sebastien Barre 2002-03-27 13:47:05 -05:00
parent 6d5bef7daf
commit 1623dc2183
3 changed files with 11 additions and 3 deletions

View File

@ -137,18 +137,20 @@ IF(BUILD_TESTING)
TestDriverTest
${CMake_BINARY_DIR}/Tests/Wrapping/bin
TestDriverTest test1)
ADD_TEST(testdriver2 ${CMake_BINARY_DIR}/Source/cmaketest
${CMake_SOURCE_DIR}/Tests/TestDriver
${CMake_BINARY_DIR}/Tests/TestDriver
TestDriverTest
${CMake_BINARY_DIR}/Tests/Wrapping/bin
TestDriverTest test2)
ADD_TEST(testdriver3 ${CMake_BINARY_DIR}/Source/cmaketest
${CMake_SOURCE_DIR}/Tests/TestDriver
${CMake_BINARY_DIR}/Tests/TestDriver
TestDriverTest
${CMake_BINARY_DIR}/Tests/Wrapping/bin
TestDriverTest test3)
TestDriverTest subdir/test3)
ENDIF (DART_ROOT)
ENDIF(BUILD_TESTING)

View File

@ -1,4 +1,10 @@
PROJECT(TestDriverTest)
CREATE_TEST_SOURCELIST(testSrcs TestDriverTest test1 test2 test3)
CREATE_TEST_SOURCELIST(testSrcs
TestDriverTest
test1
test2
subdir/test3)
ADD_EXECUTABLE(TestDriverTest testSrcs)

View File

@ -1,5 +1,5 @@
#include <stdio.h>
int test3(int ac, char** av)
int subdir_test3(int ac, char** av)
{
printf("test3\n");
for(int i =0; i < ac; i++)