The TS-GitLab will have to shut down towards the end of the year — please think about migrating your projects to GitLab.com or GitHub.
(This is still a very early message, meant to keep you informed. There will be more urgent ones in the future.)

CMakeLists.txt 2.32 KB
Newer Older
Dion Haefner's avatar
Dion Haefner committed
1
message(STATUS "Handling system tests")
Dion Haefner's avatar
Dion Haefner committed
2

3 4 5 6 7 8 9 10 11
function(dorie_add_system_test target metaini)
	configure_file(${metaini}.in ${CMAKE_CURRENT_LIST_DIR}/${metaini})
	dune_add_system_test(TARGET ${target} INIFILE ${metaini} SCRIPT test_dorie.py)
endfunction()

function(dorie_add_system_test_dependency test1 test2)
	set_tests_properties(${test1} PROPERTIES DEPENDS ${test2})
endfunction()

12
# dorie run: ODE tests
13 14 15
dorie_add_system_test(dorie ode_homogeneous_sand.mini)
dorie_add_system_test(dorie ode_homogeneous_silt.mini)
dorie_add_system_test(dorie ode_layered.mini)
16 17
dorie_add_system_test(dorie ode_linear_interpolator.mini)

18 19 20 21
# add target for ODE tests
add_custom_target(test_run_ode
    COMMAND ctest --output-on-failure --tests-regex ^dorie_ode.+$)

22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
# dorie_add_system_test(dorie muphi.mini)
# dorie_add_system_test_dependency(dorie_muphi dorie-rfg_muphi_pfg)
# dorie_add_system_test(dorie reference_2d.mini)
# dorie_add_system_test(dorie reference_3d.mini)
# dorie_add_system_test(dorie reference_evaporation.mini)
# dorie_add_system_test(dorie reference_interpolators.mini)

# # dorie in parallel
# dorie_add_system_test(dorie parallel_reference.mini)
# dorie_add_system_test(dorie parallel_reference_compare.mini)
# dorie_add_system_test_dependency(dorie_parallel_reference_compare_0000 dorie_parallel_reference_0000)
# dorie_add_system_test_dependency(dorie_parallel_reference_compare_0001 dorie_parallel_reference_0000)
# dorie_add_system_test_dependency(dorie_parallel_reference_compare_0002 dorie_parallel_reference_0001)
# dorie_add_system_test_dependency(dorie_parallel_reference_compare_0003 dorie_parallel_reference_0001)

37 38
# dorie pfg
dorie_add_system_test(dorie-rfg parfield.mini)
39 40
# dorie_add_system_test(dorie-rfg parfield_muphi.mini)

41 42
# dorie run
dorie_add_system_test(dorie run.mini)
43 44
set_tests_properties(dorie-rfg_exec_0000 PROPERTIES FIXTURES_SETUP dorie_run)
set_tests_properties(dorie_exec_run PROPERTIES FIXTURES_REQUIRED dorie_run)
45

46 47
# dorie plot
dorie_add_system_test(dorie plot.mini)
48
dorie_add_system_test_dependency(dorie_exec_plot dorie_exec_run)
49 50
set_tests_properties(dorie_exec_run PROPERTIES FIXTURES_SETUP dorie_plot)
set_tests_properties(dorie_exec_plot PROPERTIES FIXTURES_REQUIRED dorie_plot)
51 52

# dorie create
53 54 55 56 57
dorie_add_system_test(dorie create.mini)

add_custom_target(test_dorie_exec
	COMMAND ctest --output-on-failure --tests-regex ^.+_exec.+$
)