Skip to content
Snippets Groups Projects
Commit 33d389a8 authored by Linus Seelinger's avatar Linus Seelinger Committed by Christian Engwer
Browse files

[Tests] Include deprecation checks in yaspgrid tests

(cherry picked from commit af489648c2f285c570e7b31bd9e1a4b2ad2bcff6)
parent 35382400
No related branches found
No related tags found
1 merge request!3Split YaspGrid tests into more tests and introduce parallel testing
......@@ -11,18 +11,46 @@ set(TESTS
test-yaspgrid-yaspfactory-3d
)
# Add all tests
# Add tests to test target
add_directory_test_target(_test_target)
# Add all tests, do not check deprecation
foreach(_test ${TESTS})
add_executable(${_test} EXCLUDE_FROM_ALL ${_test}.cc)
add_dune_mpi_flags(${_test})
target_compile_definitions(${_test}
PUBLIC
DISABLE_DEPRECATED_METHOD_CHECK=1
)
target_compile_options(${_test}
PUBLIC
-Wall
-Werror
)
target_link_libraries(${_test} "dunegrid" ${DUNE_LIBS})
add_test(${_test} ${_test})
add_dependencies(${_test_target} ${_test})
endforeach(_test ${TESTS})
# Add all tests again, this time with deprecation check
foreach(_test ${TESTS})
add_executable(${_test}_dep EXCLUDE_FROM_ALL ${_test}.cc)
add_dune_mpi_flags(${_test}_dep)
target_compile_options(${_test}_dep
PUBLIC
-Wall
-Wno-deprecated-declarations
-Werror
)
target_link_libraries(${_test}_dep "dunegrid" ${DUNE_LIBS})
add_test(${_test}_dep ${_test}_dep)
add_dependencies(${_test_target} ${_test}_dep)
endforeach(_test ${TESTS})
# Add tests to test target
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${TESTS})
# If we have MPI, include parallel tests
if(MPI_FOUND)
......
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