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

CMake PyExamples: merge lines, update file comment

parent dbc82ddc
No related branches found
No related tags found
No related merge requests found
############################################################################### ###############################################################################
# Tests/Functional/PyExamples/CMakeLists.txt # Tests/Functional/PyExamples/CMakeLists.txt
# #
# > Test functionality of all examples found in PY_EXAMPLES_DIR = <BornAgain>/Examples/python # Runs check_functionality.py over example scripts found in PY_EXAMPLES_DIR
# > Validates selected examples against reference files
# #
############################################################################### ###############################################################################
...@@ -15,15 +14,12 @@ file(GLOB fit_examples ...@@ -15,15 +14,12 @@ file(GLOB fit_examples
set(examples ${sim_examples} ${fit_examples}) set(examples ${sim_examples} ${fit_examples})
set(test_script ${output_dir}/check_functionality.py) set(test_script ${output_dir}/check_functionality.py)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/check_functionality.py ${test_script} @ONLY) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/check_functionality.py ${test_script} @ONLY)
foreach(example ${examples}) foreach(example_path ${examples})
set(script_path ${example}) get_filename_component(example_name ${example_path} NAME_WE)
set(test_name PyExamples.${example_name})
get_filename_component(script_name ${script_path} NAME_WE)
set(test_name PyExamples.${script_name})
add_test(${test_name} ${Python3_EXECUTABLE} ${test_script} ${script_path}) add_test(${test_name} ${Python3_EXECUTABLE} ${test_script} ${example_path})
set_tests_properties(${test_name} PROPERTIES LABELS "Fullcheck") set_tests_properties(${test_name} PROPERTIES LABELS "Fullcheck")
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