Skip to content
Snippets Groups Projects
Commit b4e249e0 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

Use NOSHOW to remove warning from test log

parent 6de988ac
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,14 @@ ...@@ -5,6 +5,14 @@
# #
############################################################################### ###############################################################################
function(run_example example_path)
get_filename_component(example_name ${example_path} NAME_WE)
set(test_name Example.run.${example_name})
add_test(${test_name}
env PYTHONPATH=${CMAKE_LIBRARY_OUTPUT_DIRECTORY} NOSHOW=TRUE
${Python3_EXECUTABLE} ${test_script} -s ${example_path} ${output_dir})
endfunction()
set(output_dir ${TEST_OUTPUT_DIR_PY_EXAMPLES}) set(output_dir ${TEST_OUTPUT_DIR_PY_EXAMPLES})
file(MAKE_DIRECTORY ${output_dir}) file(MAKE_DIRECTORY ${output_dir})
...@@ -22,11 +30,7 @@ list(REMOVE_ITEM examples ${EXAMPLES_DIR}/varia/SimulationParameters.py) ...@@ -22,11 +30,7 @@ list(REMOVE_ITEM examples ${EXAMPLES_DIR}/varia/SimulationParameters.py)
set(test_script ${TOOL_DIR}/code/batch-plot.py) set(test_script ${TOOL_DIR}/code/batch-plot.py)
foreach(example_path ${examples}) foreach(example_path ${examples})
get_filename_component(example_name ${example_path} NAME_WE) run_example(${example_path})
set(test_name Example.run.${example_name})
add_test(${test_name}
env PYTHONPATH=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
${Python3_EXECUTABLE} ${test_script} -s ${example_path} ${output_dir})
endforeach() endforeach()
############################################################################ ############################################################################
......
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