Commit 317dc0be authored by Timo Koch's avatar Timo Koch
Browse files

[cmake] Use dumux_add_test for backwards-compatibility with dune 2.6.0

parent d054a2bc
dune_symlink_to_source_files(FILES "params.input")
dune_add_test(NAME example_1ptracer
LABELS porousmediumflow tracer
SOURCES main.cc
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/test_1ptracer_transport-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/example_1ptracer-00010.vtu
${CMAKE_SOURCE_DIR}/test/references/test_1ptracer_pressure-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/1p.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/example_1ptracer params.input -Problem.Name example_1ptracer")
dumux_add_test(NAME example_1ptracer
LABELS porousmediumflow tracer
SOURCES main.cc
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/test_1ptracer_transport-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/example_1ptracer-00010.vtu
${CMAKE_SOURCE_DIR}/test/references/test_1ptracer_pressure-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/1p.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/example_1ptracer params.input -Problem.Name example_1ptracer")
......@@ -2,12 +2,12 @@ dune_symlink_to_source_files(FILES "params.input")
dune_symlink_to_source_files(FILES "initialsolutioncc.txt")
# using tpfa and point source
dune_add_test(NAME example_2p_pointsource_adaptive
LABELS porousmediumflow 2p
SOURCES main.cc
CMAKE_GUARD dune-alugrid_FOUND
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/example-2padaptive-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/example_2p_pointsource_adaptive-00007.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/example_2p_pointsource_adaptive params.input -TimeLoop.TEnd 100 -TimeLoop.DtInitial 10 -Problem.Name example_2p_pointsource_adaptive")
dumux_add_test(NAME example_2p_pointsource_adaptive
LABELS porousmediumflow 2p
SOURCES main.cc
CMAKE_GUARD dune-alugrid_FOUND
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/example-2padaptive-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/example_2p_pointsource_adaptive-00007.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/example_2p_pointsource_adaptive params.input -TimeLoop.TEnd 100 -TimeLoop.DtInitial 10 -Problem.Name example_2p_pointsource_adaptive")
dune_symlink_to_source_files(FILES "params.input")
dune_add_test(NAME example_shallowwaterfriction
SOURCES main.cc
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/example_shallowwaterfriction-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/example_shallowwaterfriction-00001.vtu
--zeroThreshold {"velocityY":1e-14}
--command "${CMAKE_CURRENT_BINARY_DIR}/example_shallowwaterfriction params.input
-Problem.Name example_shallowwaterfriction")
dumux_add_test(NAME example_shallowwaterfriction
SOURCES main.cc
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/example_shallowwaterfriction-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/example_shallowwaterfriction-00001.vtu
--zeroThreshold {"velocityY":1e-14}
--command "${CMAKE_CURRENT_BINARY_DIR}/example_shallowwaterfriction params.input
-Problem.Name example_shallowwaterfriction")
......@@ -8,4 +8,4 @@ add_subdirectory(spline)
add_subdirectory(timeloop)
add_subdirectory(typetraits)
dune_add_test(SOURCES test_partial.cc)
dumux_add_test(SOURCES test_partial.cc)
# build the tests for the bounding box tree
dune_add_test(NAME test_bboxtree_dim1
dumux_add_test(NAME test_bboxtree_dim1
SOURCES test_bboxtree.cc
COMPILE_DEFINITIONS WORLD_DIMENSION=1
LABELS unit)
dune_add_test(NAME test_bboxtree_dim2
dumux_add_test(NAME test_bboxtree_dim2
SOURCES test_bboxtree.cc
COMPILE_DEFINITIONS WORLD_DIMENSION=2
LABELS unit)
dune_add_test(NAME test_bboxtree_dim3
dumux_add_test(NAME test_bboxtree_dim3
SOURCES test_bboxtree.cc
COMPILE_DEFINITIONS WORLD_DIMENSION=3
LABELS unit)
dune_add_test(NAME test_geometry_fracture
dumux_add_test(NAME test_geometry_fracture
SOURCES test_geometry_fracture.cc
CMAKE_GUARD dune-foamgrid_FOUND
LABELS unit)
......
dune_add_test(SOURCES test_function_l2norm.cc
dumux_add_test(SOURCES test_function_l2norm.cc
CMAKE_GUARD dune-functions_FOUND
LABELS unit)
dune_add_test(SOURCES test_0d1d_intersection.cc LABELS unit)
dune_add_test(SOURCES test_1d1d_intersection.cc LABELS unit)
dune_add_test(SOURCES test_1d3d_intersection.cc LABELS unit)
dune_add_test(SOURCES test_1d2d_intersection.cc LABELS unit)
dune_add_test(SOURCES test_2d2d_intersection.cc LABELS unit)
dune_add_test(SOURCES test_2d3d_intersection.cc LABELS unit)
dune_add_test(SOURCES test_graham_convex_hull.cc LABELS unit)
dune_add_test(SOURCES test_makegeometry.cc LABELS unit)
dumux_add_test(SOURCES test_0d1d_intersection.cc LABELS unit)
dumux_add_test(SOURCES test_1d1d_intersection.cc LABELS unit)
dumux_add_test(SOURCES test_1d3d_intersection.cc LABELS unit)
dumux_add_test(SOURCES test_1d2d_intersection.cc LABELS unit)
dumux_add_test(SOURCES test_2d2d_intersection.cc LABELS unit)
dumux_add_test(SOURCES test_2d3d_intersection.cc LABELS unit)
dumux_add_test(SOURCES test_graham_convex_hull.cc LABELS unit)
dumux_add_test(SOURCES test_makegeometry.cc LABELS unit)
# build the test for the math header
dune_add_test(SOURCES test_math.cc
dumux_add_test(SOURCES test_math.cc
LABELS unit)
dune_add_test(SOURCES test_loggingparametertree.cc
dumux_add_test(SOURCES test_loggingparametertree.cc
LABELS unit)
dune_symlink_to_source_files(FILES "params.input")
# build the test for the property system
dune_add_test(SOURCES test_propertysystem.cc
dumux_add_test(SOURCES test_propertysystem.cc
LABELS unit)
# build the test for the property system using the old macros (deprecated)
dune_add_test(SOURCES test_propertysystem_macros.cc
dumux_add_test(SOURCES test_propertysystem_macros.cc
LABELS unit)
dune_add_test(SOURCES test_spline.cc
dumux_add_test(SOURCES test_spline.cc
LABELS unit)
dune_add_test(SOURCES test_cubicspline.cc
dumux_add_test(SOURCES test_cubicspline.cc
LABELS unit)
dune_add_test(SOURCES test_monotonecubicspline.cc
dumux_add_test(SOURCES test_monotonecubicspline.cc
LABELS unit)
dune_add_test(SOURCES test_timeloop.cc
dumux_add_test(SOURCES test_timeloop.cc
LABELS unit)
dune_add_test(SOURCES test_isvalid.cc
dumux_add_test(SOURCES test_isvalid.cc
LABELS unit)
dune_add_test(NAME test_boxfvgeometry
dumux_add_test(NAME test_boxfvgeometry
SOURCES test_boxfvgeometry.cc
COMPILE_DEFINITIONS ENABLE_CACHING=false
LABELS unit discretization)
dune_add_test(NAME test_boxfvgeometry_caching
dumux_add_test(NAME test_boxfvgeometry_caching
SOURCES test_boxfvgeometry.cc
COMPILE_DEFINITIONS ENABLE_CACHING=true
LABELS unit discretization)
dune_add_test(NAME test_tpfafvgeometry
dumux_add_test(NAME test_tpfafvgeometry
SOURCES test_tpfafvgeometry.cc
COMPILE_DEFINITIONS ENABLE_CACHING=false
LABELS unit discretization)
dune_add_test(NAME test_tpfafvgeometry_caching
dumux_add_test(NAME test_tpfafvgeometry_caching
SOURCES test_tpfafvgeometry.cc
COMPILE_DEFINITIONS ENABLE_CACHING=true
LABELS unit discretization)
dune_add_test(NAME test_tpfafvgeometry_nonconforming
dumux_add_test(NAME test_tpfafvgeometry_nonconforming
SOURCES test_tpfafvgeometry_nonconforming.cc
COMPILE_DEFINITIONS ENABLE_CACHING=false
CMAKE_GUARD dune-alugrid_FOUND
LABELS unit discretization)
dune_add_test(NAME test_cachedtpfafvgeometry_nonconforming
dumux_add_test(NAME test_cachedtpfafvgeometry_nonconforming
SOURCES test_tpfafvgeometry_nonconforming.cc
COMPILE_DEFINITIONS ENABLE_CACHING=true
CMAKE_GUARD dune-alugrid_FOUND
......
dune_symlink_to_source_files(FILES "params.input")
dune_add_test(NAME test_projection_2d1d
dumux_add_test(NAME test_projection_2d1d
SOURCES test_projection_2d1d.cc
CMAKE_GUARD "( dune-foamgrid_FOUND AND dune-functions_FOUND )"
LABELS unit discretization)
dune_add_test(SOURCES test_rotationsymmetric_gridgeometry.cc
LABELS unit discretization)
dumux_add_test(SOURCES test_rotationsymmetric_gridgeometry.cc
LABELS unit discretization)
dune_symlink_to_source_files(FILES "params.input")
dune_add_test(NAME test_staggeredfvgeometry
dumux_add_test(NAME test_staggeredfvgeometry
SOURCES test_staggeredfvgeometry.cc
LABELS unit discretization)
dune_add_test(NAME test_staggered_free_flow_geometry
dumux_add_test(NAME test_staggered_free_flow_geometry
SOURCES test_staggered_free_flow_geometry.cc
LABELS unit discretization)
dune_add_test(NAME test_ff_navierstokes_angeli
dumux_add_test(NAME test_ff_navierstokes_angeli
LABELS freeflow navierstokes
SOURCES main.cc
CMAKE_GUARD HAVE_UMFPACK
......
dune_add_test(NAME test_ff_navierstokes_1d
dumux_add_test(NAME test_ff_navierstokes_1d
LABELS freeflow navierstokes
SOURCES main.cc
CMAKE_GUARD HAVE_UMFPACK
......
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