Skip to content

Commit aacaca9

Browse files
committed
Merge pull request #37 from thewtex/test-data-dir
BUG: Fix ModuleDescriptionParser test data dir.
2 parents a6616b5 + e84d231 commit aacaca9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

ModuleDescriptionParser/Testing/CMakeLists.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
2-
# --------------------------------------------------------------------------
3-
set(INPUT ${CMAKE_CURRENT_SOURCE_DIR}/TestData)
4-
51
# --------------------------------------------------------------------------
62
# Build tests
73
# --------------------------------------------------------------------------
@@ -34,7 +30,7 @@ target_link_libraries(Parser1Test ModuleDescriptionParser )
3430
# --------------------------------------------------------------------------
3531
# Add tests
3632
# --------------------------------------------------------------------------
37-
set(TEST_DATA ${ModuleDescriptionParserTesting_SOURCE_DIR}/TestData)
33+
set(TEST_DATA ${CMAKE_CURRENT_SOURCE_DIR}/TestData)
3834
add_test(
3935
NAME Parser1Test1
4036
COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:Parser1Test> ${TEST_DATA}/ParserTest1.xml
@@ -46,7 +42,7 @@ add_test(
4642

4743
add_test(
4844
NAME ModuleDescriptionTest
49-
COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:${KIT}CxxTests> ModuleDescriptionTest ${INPUT}
45+
COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:${KIT}CxxTests> ModuleDescriptionTest ${TEST_DATA}
5046
)
5147

5248
#add_test(

0 commit comments

Comments
 (0)