fixed: remove old test results before executing new tests

if not, old data is used for comparison and tests pass even
though their execution actually failed
This commit is contained in:
Arne Morten Kvarving 2015-07-10 11:30:52 +02:00
parent 836c4cf02c
commit 8efd7f2d55

View File

@ -125,3 +125,9 @@ if((DUNE_ISTL_VERSION_MAJOR GREATER 2) OR
add_test_upscale_elasticity(EightCells mpc)
add_test_upscale_elasticity(EightCells mortar)
endif()
add_custom_target(clear_test_data ${CMAKE_COMMAND} -E remove_directory ${RESULT_PATH}
COMMAND ${CMAKE_COMMAND} -E make_directory ${RESULT_PATH}
COMMENT "Removing old test results")
add_dependencies(check clear_test_data)