Commit 1623dc21 authored by Sebastien Barre's avatar Sebastien Barre
Browse files

ENH: add testdriver test with source file in subdir

parent 6d5bef7d
......@@ -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)
......
PROJECT(TestDriverTest)
CREATE_TEST_SOURCELIST(testSrcs TestDriverTest test1 test2 test3)
CREATE_TEST_SOURCELIST(testSrcs
TestDriverTest
test1
test2
subdir/test3)
ADD_EXECUTABLE(TestDriverTest testSrcs)
#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++)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment