ENH: add testdriver test with source file in subdir
This commit is contained in:
parent
6d5bef7daf
commit
1623dc2183
|
@ -137,18 +137,20 @@ IF(BUILD_TESTING)
|
||||||
TestDriverTest
|
TestDriverTest
|
||||||
${CMake_BINARY_DIR}/Tests/Wrapping/bin
|
${CMake_BINARY_DIR}/Tests/Wrapping/bin
|
||||||
TestDriverTest test1)
|
TestDriverTest test1)
|
||||||
|
|
||||||
ADD_TEST(testdriver2 ${CMake_BINARY_DIR}/Source/cmaketest
|
ADD_TEST(testdriver2 ${CMake_BINARY_DIR}/Source/cmaketest
|
||||||
${CMake_SOURCE_DIR}/Tests/TestDriver
|
${CMake_SOURCE_DIR}/Tests/TestDriver
|
||||||
${CMake_BINARY_DIR}/Tests/TestDriver
|
${CMake_BINARY_DIR}/Tests/TestDriver
|
||||||
TestDriverTest
|
TestDriverTest
|
||||||
${CMake_BINARY_DIR}/Tests/Wrapping/bin
|
${CMake_BINARY_DIR}/Tests/Wrapping/bin
|
||||||
TestDriverTest test2)
|
TestDriverTest test2)
|
||||||
|
|
||||||
ADD_TEST(testdriver3 ${CMake_BINARY_DIR}/Source/cmaketest
|
ADD_TEST(testdriver3 ${CMake_BINARY_DIR}/Source/cmaketest
|
||||||
${CMake_SOURCE_DIR}/Tests/TestDriver
|
${CMake_SOURCE_DIR}/Tests/TestDriver
|
||||||
${CMake_BINARY_DIR}/Tests/TestDriver
|
${CMake_BINARY_DIR}/Tests/TestDriver
|
||||||
TestDriverTest
|
TestDriverTest
|
||||||
${CMake_BINARY_DIR}/Tests/Wrapping/bin
|
${CMake_BINARY_DIR}/Tests/Wrapping/bin
|
||||||
TestDriverTest test3)
|
TestDriverTest subdir/test3)
|
||||||
|
|
||||||
ENDIF (DART_ROOT)
|
ENDIF (DART_ROOT)
|
||||||
ENDIF(BUILD_TESTING)
|
ENDIF(BUILD_TESTING)
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
PROJECT(TestDriverTest)
|
PROJECT(TestDriverTest)
|
||||||
CREATE_TEST_SOURCELIST(testSrcs TestDriverTest test1 test2 test3)
|
|
||||||
|
CREATE_TEST_SOURCELIST(testSrcs
|
||||||
|
TestDriverTest
|
||||||
|
test1
|
||||||
|
test2
|
||||||
|
subdir/test3)
|
||||||
|
|
||||||
ADD_EXECUTABLE(TestDriverTest testSrcs)
|
ADD_EXECUTABLE(TestDriverTest testSrcs)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
int test3(int ac, char** av)
|
int subdir_test3(int ac, char** av)
|
||||||
{
|
{
|
||||||
printf("test3\n");
|
printf("test3\n");
|
||||||
for(int i =0; i < ac; i++)
|
for(int i =0; i < ac; i++)
|
Loading…
Reference in New Issue