Commit 8b6cd283 authored by Emmanuel Promayon's avatar Emmanuel Promayon
Browse files

FIXED (tentative) include bash test in ci

parent 3f05e210
......@@ -49,6 +49,8 @@ camitk_add_test(EXECUTABLE_ARGS "-f ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp -d badd
# Add config test
find_program(BASH_PROGRAM bash)
if(BASH_PROGRAM)
# use "ctest -VV -R cepgenerator-test" to run just this test
add_test(${APPLICATION_TARGET_NAME}-bash-test ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/testing/cepgenerator-test.sh -inbuild ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR})
# 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}
)
endif(BASH_PROGRAM)
......@@ -15,6 +15,8 @@ set(SHIBOKEN_CAMITK_SDK_PATH ${SHIBOKEN_CAMITK_SDK_PATH}:${CMAKE_CURRENT_SOURCE_
# Add config test
find_program (BASH_PROGRAM bash)
if (BASH_PROGRAM)
add_test(${APPLICATION_TARGET_NAME}-bash-test ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/testing/config-test.sh -inbuild ${PROJECT_BINARY_DIR})
endif (BASH_PROGRAM)
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}
)
endif(BASH_PROGRAM)
......@@ -78,7 +78,7 @@ macro(camitk_add_test)
# check which test is to be done
if(CAMITK_ADD_TEST_PASS_FILE)
add_test(NAME ${CAMITK_TEST_NAME}
COMMAND ${CMAKE_COMMAND}
COMMAND ${CMAKE_COMMAND}
-DCAMITK_TEST_COMMAND=${CAMITK_INIT_TEST_EXECUTABLE}
-DCAMITK_TEST_COMMAND_ARG=${CAMITK_ADD_TEST_EXECUTABLE_ARGS}
-DCAMITK_TEST_PASS_FILE=${CAMITK_ADD_TEST_PASS_FILE}
......@@ -88,7 +88,7 @@ macro(camitk_add_test)
)
elseif(CAMITK_ADD_TEST_PASS_FILE_OUTPUT)
add_test(NAME ${CAMITK_TEST_NAME}
COMMAND ${CMAKE_COMMAND}
COMMAND ${CMAKE_COMMAND}
-DCAMITK_TEST_COMMAND=${CAMITK_INIT_TEST_EXECUTABLE}
-DCAMITK_TEST_COMMAND_ARG=${CAMITK_ADD_TEST_EXECUTABLE_ARGS}
-DCAMITK_TEST_PASS_FILE=${CAMITK_ADD_TEST_PASS_FILE_OUTPUT}
......@@ -112,7 +112,7 @@ macro(camitk_add_test)
# add the simple test command
add_test(NAME ${CAMITK_TEST_NAME}
COMMAND ${CAMITK_INIT_TEST_EXECUTABLE} ${CAMITK_TEST_COMMAND_ARG_LIST}
COMMAND ${CAMITK_INIT_TEST_EXECUTABLE} ${CAMITK_TEST_COMMAND_ARG_LIST}
)
# add properties if needed
......
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