Commit 9fa5b610 authored by Bernd Flemisch's avatar Bernd Flemisch Committed by Timo Koch
Browse files

[io][restart] run restart tests after the original tests

Otherwise, the corresponding vtu file might not be present.
Enforce this with CMake's `set_tests_properties`.
parent 721c5a22
......@@ -20,6 +20,9 @@ dune_add_test(NAME test_2p_incompressible_tpfa_restart
${CMAKE_CURRENT_BINARY_DIR}/2p_tpfa_restart-00003.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_2p_incompressible_tpfa_restart test_2p.input -Problem.Name 2p_tpfa_restart -TimeLoop.DtInitial 526.62 -Restart.Time 1859.95 -Restart.File 2p_tpfa-00005.vtu")
# the restart test has to run after the test that produces the corresponding vtu file
set_tests_properties(test_2p_incompressible_tpfa_restart PROPERTIES DEPENDS test_2p_incompressible_tpfa)
# using box
dune_add_test(NAME test_2p_incompressible_box
SOURCES test_2p_fv.cc
......
......@@ -21,6 +21,9 @@ dune_add_test(NAME test_2p2c_box_restart
${CMAKE_CURRENT_BINARY_DIR}/injection_box_restart-00004.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_2p2c_box test_2p2c_fv.input -Problem.Name injection_box_restart -TimeLoop.DtInitial 1488.5 -Restart.Time 2158.85 -Restart.File injection_box-00004.vtu")
# the restart test has to run after the test that produces the corresponding vtu file
set_tests_properties(test_2p2c_box_restart PROPERTIES DEPENDS test_2p2c_box)
dune_add_test(NAME test_2p2c_tpfa
SOURCES test_2p2c_fv.cc
COMPILE_DEFINITIONS TYPETAG=InjectionCCTpfaTypeTag ENABLECACHING=0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment