Skip to content
Snippets Groups Projects
Commit 9699cfeb authored by Julien Malik's avatar Julien Malik
Browse files

ENH: add macro to ease declaration of application tests

parent db0ace8d
No related branches found
No related tags found
No related merge requests found
...@@ -61,3 +61,24 @@ macro(OTB_CREATE_APPLICATION) ...@@ -61,3 +61,24 @@ macro(OTB_CREATE_APPLICATION)
CACHE STRING "List of all applications" FORCE) CACHE STRING "List of all applications" FORCE)
endmacro(OTB_CREATE_APPLICATION) endmacro(OTB_CREATE_APPLICATION)
macro(OTB_TEST_APPLICATION)
OTB_PARSE_ARGUMENTS(
TESTAPPLICATION
"NAME;APP;OPTIONS;VALID"
""
${ARGN})
add_test(NAME ${TESTAPPLICATION_NAME}
COMMAND otbTestDriver
${TESTAPPLICATION_VALIDATION}
Execute $<TARGET_FILE:otbApplicationLauncherCommandLine>
${TESTAPPLICATION_APP}
$<TARGET_FILE_DIR:otbapp_${TESTAPPLICATION_APP}>
${TESTAPPLICATION_OPTIONS})
endmacro(OTB_TEST_APPLICATION)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment