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

3
# dorie run: ODE tests
4
5
6
dorie_add_metaini_test(TARGET dorie_test METAINI ode_homogeneous_sand.mini.in)
dorie_add_metaini_test(TARGET dorie_test METAINI ode_homogeneous_silt.mini.in)
dorie_add_metaini_test(TARGET dorie_test METAINI ode_layered.mini.in)
7

8
9
# add target for ODE tests
add_custom_target(test_run_ode
10
11
	COMMAND ctest --output-on-failure --tests-regex ^dorie_ode.+$)
add_dependencies(test_run_ode prepare_testing)
12

13
# dorie run: constant quantity tests
14
dorie_add_metaini_test(TARGET dorie_test METAINI const_solute.mini.in)
15
16

# add target for constant transport tests
17
18
19
add_custom_target(test_run_const
	COMMAND ctest --output-on-failure --tests-regex ^dorie_const.+$)
add_dependencies(test_run_const prepare_testing)
20

21
# dorie run: Reference tests
22
dorie_add_metaini_test(TARGET dorie_test METAINI muphi.mini.in)
23
24
25
26
27

add_custom_target(test_run_ref
	COMMAND ctest --output-on-failure --tests-regex ^.+_ref_.+$
)

28
29
30
31
# dorie_add_metaini_test(TARGET dorie_test METAINI reference_2d.mini.in)
# dorie_add_metaini_test(TARGET dorie_test METAINI reference_3d.mini.in)
# dorie_add_metaini_test(TARGET dorie_test METAINI reference_evaporation.mini.in)
# dorie_add_metaini_test(TARGET dorie_test METAINI reference_interpolators.mini.in)
32
33

# dorie in parallel
34
35
dorie_add_metaini_test(TARGET dorie_test METAINI parallel_reference.mini.in)
dorie_add_metaini_test(TARGET dorie_test METAINI parallel_reference_compare.mini.in)
36

37
38
39
set_tests_properties(dorie_test_parallel_reference PROPERTIES FIXTURES_SETUP dorie_par)
set_tests_properties(dorie_test_parallel_reference_compare_0000 PROPERTIES FIXTURES_REQUIRED dorie_par)
set_tests_properties(dorie_test_parallel_reference_compare_0001 PROPERTIES FIXTURES_REQUIRED dorie_par)
40
41

add_custom_target(test_run_parallel
42
	COMMAND ctest --output-on-failure --tests-regex ^dorie_test_parallel_.+$
43
)
44
add_dependencies(test_run_parallel prepare_testing)
45

46
# dorie exec tests
47
dorie_add_metaini_test(TARGET dorie_test METAINI create.mini.in)
48
dorie_add_metaini_test(TARGET dorie_test METAINI pfg.mini.in)
49

50
dorie_add_metaini_test(TARGET dorie_test METAINI run.mini.in)
51
52
set_tests_properties(dorie_test_exec_create PROPERTIES FIXTURES_SETUP dorie_create)
set_tests_properties(dorie_test_exec_run PROPERTIES FIXTURES_REQUIRED dorie_create)
53

54
55
56
dorie_add_metaini_test(TARGET dorie_test METAINI plot.mini.in)
set_tests_properties(dorie_test_exec_run PROPERTIES FIXTURES_SETUP dorie_plot)
set_tests_properties(dorie_test_exec_plot PROPERTIES FIXTURES_REQUIRED dorie_plot)
57

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

62
dorie_add_metaini_test(
63
	SOURCE test-mass-conservation.cc
64
	BASENAME mass-conservation
65
	CREATED_TARGETS mc_target
Lukas Riedel's avatar
Lukas Riedel committed
66
	METAINI mass_conservation.mini.in
67
	SCRIPT dune_execute.py
68
69
70
)

add_custom_target(test_mass_conservation
71
	COMMAND ctest --output-on-failure --tests-regex ^.+mass-conservation.+$
72
73
)

74
dorie_add_metaini_test(TARGET dorie_test METAINI conforming_flux_jumps.mini.in)
75

76
# add target for ODE tests
77
add_custom_target(test_conforming_flux_jumps
78
79
80
	COMMAND ctest --output-on-failure --tests-regex conforming_flux_jumps.+$)

add_dependencies(test_run_ode prepare_testing)
81

82
83
# Build the application for the system tests
add_dependencies(build_system_tests dorie)
84

85
# dune excludes test targets from 'make all'; undo that here where applicable
86
set_property(TARGET dorie_test PROPERTY EXCLUDE_FROM_ALL 0)
Lukas Riedel's avatar
Lukas Riedel committed
87
set_property(TARGET dorie-rfg PROPERTY EXCLUDE_FROM_ALL 0)