File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed
Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -33,4 +33,8 @@ include_directories(
3333
3434SC_ADDEXEC (exp2cxx "${exp2cxx_SOURCES} " "libexppp;express;base" )
3535
36- add_dependencies ( exp2cxx version_string )
36+ add_dependencies ( exp2cxx version_string )
37+
38+ if ( SC_ENABLE_TESTING )
39+ add_subdirectory (test )
40+ endif ( SC_ENABLE_TESTING )
Original file line number Diff line number Diff line change @@ -18,17 +18,21 @@ set_tests_properties( test_breakLongStr PROPERTIES DEPENDS build_tst_breakLongSt
1818
1919#could run test schemas through exppp, then check line length...
2020
21+
22+ # ---- syntax tests ----
23+ set ( unitary_dir ${SC_SOURCE_DIR} /test/unitary_schemas )
24+
2125add_test ( NAME test_exppp_unique_qualifiers
2226 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
2327 COMMAND ${CMAKE_COMMAND} -DEXPPP=$<TARGET_FILE:exppp>
24- -DINFILE=${SC_SOURCE_DIR}/test/unitary_schemas /unique_qualifiers.exp
28+ -DINFILE=${unitary_dir} /unique_qualifiers.exp
2529 -P ${CMAKE_CURRENT_SOURCE_DIR} /unique_qualifiers.cmake
2630 )
2731
2832add_test ( NAME test_exppp_inverse_qualifiers
2933 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
3034 COMMAND ${CMAKE_COMMAND} -DEXPPP=$<TARGET_FILE:exppp>
31- -DINFILE=${SC_SOURCE_DIR}/test/unitary_schemas /inverse_qualifiers.exp
35+ -DINFILE=${unitary_dir} /inverse_qualifiers.exp
3236 -P ${CMAKE_CURRENT_SOURCE_DIR} /inverse_qualifiers.cmake
3337 )
3438set_tests_properties ( test_exppp_unique_qualifiers test_exppp_inverse_qualifiers PROPERTIES DEPENDS exppp )
Original file line number Diff line number Diff line change @@ -117,7 +117,9 @@ add_dependencies(express express_verify)
117117add_dependencies (express version_string )
118118SC_ADDEXEC ("check-express" "${CHECK_EXPRESS_SOURCES} " "express;base" )
119119
120- add_subdirectory (test )
120+ if ( SC_ENABLE_TESTING )
121+ add_subdirectory (test )
122+ endif ( SC_ENABLE_TESTING )
121123
122124# Local Variables:
123125# tab-width: 8
You can’t perform that action at this time.
0 commit comments