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

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

parent 67757e0a
dune_symlink_to_source_files(FILES "params.input")
dune_add_test(NAME example_1ptracer
dumux_add_test(NAME example_1ptracer
LABELS porousmediumflow tracer
SOURCES main.cc
CMAKE_GUARD HAVE_UMFPACK
......
......@@ -2,7 +2,7 @@ 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
dumux_add_test(NAME example_2p_pointsource_adaptive
LABELS porousmediumflow 2p
SOURCES main.cc
CMAKE_GUARD dune-alugrid_FOUND
......
dune_symlink_to_source_files(FILES "params.input")
dune_add_test(NAME example_shallowwaterfriction
dumux_add_test(NAME example_shallowwaterfriction
SOURCES main.cc
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
......
......@@ -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_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
......
......@@ -2,7 +2,7 @@ dune_symlink_to_source_files(FILES "params.input" "params_navierstokes.input" "p
add_executable(test_ff_channel EXCLUDE_FROM_ALL main.cc)
dune_add_test(NAME test_ff_stokes_channel_outflow
dumux_add_test(NAME test_ff_stokes_channel_outflow
TARGET test_ff_channel
LABELS freeflow navierstokes
CMAKE_GUARD HAVE_UMFPACK
......@@ -13,7 +13,7 @@ dune_add_test(NAME test_ff_stokes_channel_outflow
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_channel params.input -Problem.OutletCondition Outflow
-Problem.Name test_ff_stokes_channel_outflow")
dune_add_test(NAME test_ff_stokes_channel_neumann_x_dirichlet_y
dumux_add_test(NAME test_ff_stokes_channel_neumann_x_dirichlet_y
TARGET test_ff_channel
LABELS freeflow navierstokes
CMAKE_GUARD HAVE_UMFPACK
......@@ -24,7 +24,7 @@ dune_add_test(NAME test_ff_stokes_channel_neumann_x_dirichlet_y
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_channel params.input -Problem.OutletCondition NeumannX_DirichletY
-Problem.Name test_ff_stokes_channel_nxdy")
dune_add_test(NAME test_ff_stokes_channel_neumann_x_neumann_y
dumux_add_test(NAME test_ff_stokes_channel_neumann_x_neumann_y
TARGET test_ff_channel
LABELS freeflow navierstokes
CMAKE_GUARD HAVE_UMFPACK
......@@ -35,7 +35,7 @@ dune_add_test(NAME test_ff_stokes_channel_neumann_x_neumann_y
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_channel params.input -Grid.UpperRight \"2 1\" -Grid.Cells \"50 25\"
-Problem.Name test_ff_stokes_channel_nxny -Problem.OutletCondition NeumannX_NeumannY -Problem.UseVelocityProfile true -Problem.OutletPressure 0")
dune_add_test(NAME test_ff_stokes_channel_do_nothing
dumux_add_test(NAME test_ff_stokes_channel_do_nothing
TARGET test_ff_channel
LABELS freeflow navierstokes
CMAKE_GUARD HAVE_UMFPACK
......@@ -46,7 +46,7 @@ dune_add_test(NAME test_ff_stokes_channel_do_nothing
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_channel params.input -Problem.OutletCondition DoNothing -Grid.UpperRight \"2 1\" -Grid.Cells \"50 25\"
-Problem.Name test_ff_stokes_channel_do_nothing -Problem.OutletCondition DoNothing -Problem.UseVelocityProfile true -Problem.OutletPressure 0")
dune_add_test(NAME test_ff_navierstokes_channel
dumux_add_test(NAME test_ff_navierstokes_channel
TARGET test_ff_channel
LABELS freeflow navierstokes
CMAKE_GUARD HAVE_UMFPACK
......@@ -61,7 +61,7 @@ dune_add_test(NAME test_ff_navierstokes_channel
add_executable(test_ff_stokesni_channel EXCLUDE_FROM_ALL main.cc)
target_compile_definitions(test_ff_stokesni_channel PUBLIC "NONISOTHERMAL=1")
dune_add_test(NAME test_ff_stokesni_channel_convection
dumux_add_test(NAME test_ff_stokesni_channel_convection
TARGET test_ff_stokesni_channel
LABELS freeflow navierstokes
CMAKE_GUARD HAVE_UMFPACK
......@@ -72,7 +72,7 @@ dune_add_test(NAME test_ff_stokesni_channel_convection
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_stokesni_channel params_convection.input
-Problem.Name test_ff_stokesni_channel_convection")
dune_add_test(NAME test_ff_stokesni_channel_conduction
dumux_add_test(NAME test_ff_stokesni_channel_conduction
TARGET test_ff_stokesni_channel
LABELS freeflow navierstokes
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