Skip to content
Snippets Groups Projects
Commit d9962243 authored by Christoph Lehmann's avatar Christoph Lehmann Committed by Dmitri Naumov
Browse files

[cmake] print test commands before run

parent 5b9b11e8
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,8 @@ if(VIS_FILES AND VTKJS_CONVERTER)
endforeach()
endif()
message(STATUS "running command checking test results: cd ${case_path} && ${TESTER_COMMAND}")
if(WIN32)
execute_process(
COMMAND cmd /C ${TESTER_COMMAND}
......
......@@ -4,6 +4,17 @@ foreach(FILE ${FILES_TO_DELETE})
file(REMOVE ${BINARY_PATH}/${FILE})
endforeach()
# taken from https://stackoverflow.com/a/7216542
function(JOIN VALUES GLUE OUTPUT)
string (REGEX REPLACE "([^\\]|^);" "\\1${GLUE}" _TMP_STR "${VALUES}")
string (REGEX REPLACE "[\\](.)" "\\1" _TMP_STR "${_TMP_STR}") #fixes escaping
set (${OUTPUT} "${_TMP_STR}" PARENT_SCOPE)
endfunction()
JOIN("${WRAPPER_ARGS}" " " WRAPPER_ARGS_STR)
JOIN("${EXECUTABLE_ARGS}" " " EXECUTABLE_ARGS_STR)
message(STATUS "running command generating test results: cd ${case_path} && ${WRAPPER_COMMAND} ${WRAPPER_ARGS_STR} ${EXECUTABLE} ${EXECUTABLE_ARGS_STR}")
execute_process(
COMMAND ${WRAPPER_COMMAND} ${WRAPPER_ARGS} ${EXECUTABLE} ${EXECUTABLE_ARGS}
WORKING_DIRECTORY ${case_path}
......
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