Commit 3318582b authored by Emmanuel Promayon's avatar Emmanuel Promayon
Browse files

FIXED add test to subproject so that it can be ran during ci

parent 42269961
......@@ -51,6 +51,8 @@ find_program(BASH_PROGRAM bash)
if(BASH_PROGRAM)
# use "ctest -VV -R cepgenerator-test" to run just this test
add_test(NAME ${APPLICATION_TARGET_NAME}-bash-test
COMMAND ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/testing/cepgenerator-test.sh -inbuild ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR}
COMMAND ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/testing/cepgenerator-test.sh -inbuild ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR}
)
# add test to this subproject
set_tests_properties(${APPLICATION_TARGET_NAME}-bash-test PROPERTIES LABELS ${APPLICATION_TARGET_NAME})
endif(BASH_PROGRAM)
......@@ -19,4 +19,6 @@ if(BASH_PROGRAM)
add_test(NAME ${APPLICATION_TARGET_NAME}-bash-test
COMMAND ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/testing/config-test.sh -inbuild ${PROJECT_BINARY_DIR}
)
# add test to this subproject (can be tested in local build dir using "ctest -L application-config")
set_tests_properties(${APPLICATION_TARGET_NAME}-bash-test PROPERTIES LABELS ${APPLICATION_TARGET_NAME})
endif(BASH_PROGRAM)
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