Skip to content
Snippets Groups Projects
Commit f4498332 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[CMake] Build test in make dependant if according parameter is set.

Tests are still built only for ctest calls, not for plain make.
Tests are built for make if -DDUMUX_BUILD_ALL_TESTS:BOOL=TRUE is set.
This change is needed for CDash, otherwise compile errors and warnings
where not displayed.

(reviewed by bernd)


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@11537 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent a1a194bf
No related branches found
No related tags found
No related merge requests found
Showing
with 107 additions and 388 deletions
# checks
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/CheckAlwaysInline.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/CheckConstexpr.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/CheckPatchedPDELab.cmake)
\ No newline at end of file
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/CheckPatchedPDELab.cmake)
# additional macros
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/DumuxTestMacros.cmake)
###
# Add a test. All necessary calls to dune CMake macros for adding a
# test are called from this macro.
# The added test is automatically build if cmake is invode with the command
# line argument -DDUMUX_BUILD_ALL_TESTS:BOOL=TRUE otherwise the test is
# built only when "ctest" / "make test" is invoked.
# The test is only built if it does not already exist.
#
# Arguments:
# - dumux_test: name of the new test
# - dumux_test_executable: name of the executable required by the test
# - dumux_test_executable_source: source file (.cc) of the new test
# - further arguments: are optional and are used as arguments for calling the test
###
macro(add_dumux_test dumux_test dumux_test_executable dumux_test_executable_source)
# create test target for directory, but only if not yet created
get_directory_test_target(potential_test_target "${CMAKE_CURRENT_BINARY_DIR}")
if(NOT TARGET ${potential_test_target})
add_directory_test_target(_test_target)
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_BINARY_DIR}/BuildTests.cmake)
endif(NOT TARGET ${potential_test_target})
# add executable
# check whether executable already exists
if(NOT TARGET ${dumux_test_executable})
#set property whether it has to be built with make or only with make test
if(${DUMUX_BUILD_ALL_TESTS})
add_executable(${dumux_test_executable} ${dumux_test_executable_source})
else()
add_executable(${dumux_test_executable} EXCLUDE_FROM_ALL ${dumux_test_executable_source})
endif(${DUMUX_BUILD_ALL_TESTS})
endif(NOT TARGET ${dumux_test_executable})
# link all libraries to executable
target_link_libraries(${dumux_test_executable} ${DUNE_LIBS})
# get optional arguments
# cannot use ARGN directly with list() command, copy to a variable first
set(dumux_test_args ${ARGN})
list(LENGTH dumux_test_args num_dumux_test_args)
# add test
add_test(${dumux_test} ${dumux_test_args})
add_dependencies(${_test_target} ${dumux_test})
endmacro(add_dumux_test)
# build target for the simple twophase lens problem in a general
# definition for both box and decoupled model
add_executable("test_generalproblem2p" EXCLUDE_FROM_ALL test_generalproblem2p.cc)
add_test(test_general_box
add_dumux_test(test_general_box test_generalproblem2p test_generalproblem2p.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/generallens_box-reference.vtu
......@@ -13,7 +9,7 @@ add_test(test_general_box
-TimeManager.TEnd 1e2
-TimeManager.DtInitial 2e1)
add_test(test_general_dec
add_dumux_test(test_general_dec test_generalproblem2p test_generalproblem2p.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/generallens_decoupled-reference.vtu
......@@ -24,17 +20,3 @@ add_test(test_general_dec
-TimeManager.TEnd 1e2
-TimeManager.DtInitial 2e1)
set(NORMALTESTS
test_generalproblem2p)
set(ALLTESTS ${NORMALTESTS})
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${ALLTESTS})
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_BINARY_DIR}/BuildTests.cmake)
foreach(_exe ${ALLTESTS})
target_link_libraries(${_exe} ${DUNE_LIBS})
endforeach(_exe ${ALLTESTS})
# build the test for the property system
add_executable("test_propertysystem" EXCLUDE_FROM_ALL test_propertysystem.cc)
add_test(test_propertysystem
add_dumux_test(test_propertysystem test_propertysystem test_propertysystem.cc
${CMAKE_CURRENT_BINARY_DIR}/test_propertysystem)
set(NORMALTESTS test_propertysystem)
set(ALLTESTS ${NORMALTESTS})
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${ALLTESTS})
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_BINARY_DIR}/BuildTests.cmake)
foreach(_exe ${ALLTESTS})
target_link_libraries(${_exe} ${DUNE_LIBS})
endforeach(_exe ${ALLTESTS})
\ No newline at end of file
# add build targets
add_executable("test_spline" EXCLUDE_FROM_ALL test_spline.cc)
add_test(test_spline
add_dumux_test(test_spline test_spline test_spline.cc
${CMAKE_CURRENT_BINARY_DIR}/test_spline)
set(NORMALTESTS test_spline)
set(ALLTESTS ${NORMALTESTS})
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${ALLTESTS})
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_BINARY_DIR}/BuildTests.cmake)
foreach(_exe ${ALLTESTS})
target_link_libraries(${_exe} ${DUNE_LIBS})
endforeach(_exe ${ALLTESTS})
# add build targets
add_executable("test_dec1p" EXCLUDE_FROM_ALL test_1p.cc)
add_test(test_dec1p
add_dumux_test(test_dec1p test_dec1p test_1p.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/test_1p-reference.vtu
......@@ -8,8 +6,7 @@ add_test(test_dec1p
${CMAKE_CURRENT_BINARY_DIR}/test_dec1p
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_1p.input)
add_executable("test_diffusion" EXCLUDE_FROM_ALL test_diffusion.cc)
add_test(test_diffusion
add_dumux_test(test_diffusion test_diffusion test_diffusion.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/diffusion-reference.vtu
......@@ -17,10 +14,7 @@ add_test(test_diffusion
${CMAKE_CURRENT_BINARY_DIR}/test_diffusion
3)
add_executable("test_diffusion3d" EXCLUDE_FROM_ALL test_diffusion3d.cc)
add_dune_alugrid_flags(test_diffusion3d)
add_dune_ug_flags(test_diffusion3d)
add_test(test_diffusion3d
add_dumux_test(test_diffusion3d test_diffusion3d test_diffusion3d.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/test_diffusion3d-reference.vtu
......@@ -28,20 +22,5 @@ add_test(test_diffusion3d
${CMAKE_CURRENT_BINARY_DIR}/test_diffusion3d
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_diffusion3d.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_diffusion3d_ug1.dgf)
set(NORMALTESTS
test_dec1p
test_diffusion
test_diffusion3d)
set(ALLTESTS ${NORMALTESTS})
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${ALLTESTS})
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_BINARY_DIR}/BuildTests.cmake)
foreach(_exe ${ALLTESTS})
target_link_libraries(${_exe} ${DUNE_LIBS})
endforeach(_exe ${ALLTESTS})
add_dune_alugrid_flags(test_diffusion3d)
add_dune_ug_flags(test_diffusion3d)
# add build targets
add_executable("test_impes" EXCLUDE_FROM_ALL test_impes.cc)
add_test(test_impes
add_dumux_test(test_impes test_impes test_impes.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/test_impes-reference.vtu
......@@ -8,21 +6,18 @@ add_test(test_impes
${CMAKE_CURRENT_BINARY_DIR}/test_impes
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_impes.input)
add_executable("test_impesadaptive" EXCLUDE_FROM_ALL test_impesadaptive.cc)
add_dune_alugrid_flags(test_impesadaptive)
add_test(test_impesadaptive
add_dumux_test(test_impesadaptive test_impesadaptive test_impesadaptive.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/test_2padaptive-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_2padaptive-00007.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_impesadaptive
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_impesadaptive.input)
add_dune_alugrid_flags(test_impesadaptive)
add_executable("test_impeswithamg" EXCLUDE_FROM_ALL test_impeswithamg.cc)
if(MPI_FOUND)
add_dune_superlu_flags(test_impeswithamg)
add_dune_mpi_flags(test_impeswithamg)
add_test(test_impeswithamg
add_dumux_test(test_impeswithamg test_impeswithamg test_impeswithamg.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/test_impes-reference-parallel.vtu
......@@ -31,8 +26,10 @@ if(MPI_FOUND)
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_impeswithamg.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_impeswithamg.dgf
-TimeManager.TEnd 7e7)
else(MPI_FOUND)
add_test(test_impeswithamg
add_dune_superlu_flags(test_impeswithamg)
add_dune_mpi_flags(test_impeswithamg)
else()
add_dumux_test(test_impeswithamg test_impeswithamg test_impeswithamg.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/test_impes-reference.vtu
......@@ -42,8 +39,7 @@ else(MPI_FOUND)
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_impeswithamg.dgf)
endif(MPI_FOUND)
add_executable("test_transport" EXCLUDE_FROM_ALL test_transport.cc)
add_test(test_transport
add_dumux_test(test_transport test_transport test_transport.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/test_transport-reference.vtu
......@@ -52,10 +48,7 @@ add_test(test_transport
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_transport.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_transport.dgf)
add_executable("test_mpfa2p" EXCLUDE_FROM_ALL test_mpfa2p.cc)
add_dune_alugrid_flags(test_mpfa2p)
add_dune_superlu_flags(test_mpfa2p)
add_test(test_mpfao2p
add_dumux_test(test_mpfao2p test_mpfa2p test_mpfa2p.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/test_mpfao2p-reference.vtu
......@@ -63,7 +56,7 @@ add_test(test_mpfao2p
${CMAKE_CURRENT_BINARY_DIR}/test_mpfa2p
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_mpfa2p.input
-ModelType MPFAO)
add_test(test_mpfal2p
add_dumux_test(test_mpfal2p test_mpfa2p test_mpfa2p.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/test_mpfal2p-reference.vtu
......@@ -71,7 +64,7 @@ add_test(test_mpfal2p
${CMAKE_CURRENT_BINARY_DIR}/test_mpfa2p
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_mpfa2p.input
-ModelType MPFAL)
add_test(test_mpfal2padaptive
add_dumux_test(test_mpfal2padaptive test_mpfa2p test_mpfa2p.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/test_mpfal2padaptive-reference.vtu
......@@ -79,22 +72,5 @@ add_test(test_mpfal2padaptive
${CMAKE_CURRENT_BINARY_DIR}/test_mpfa2p
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_mpfa2p.input
-ModelType MPFALAdaptive)
set(NORMALTESTS
test_impes
test_impesadaptive
test_impeswithamg
test_transport
test_mpfa2p)
set(ALLTESTS ${NORMALTESTS})
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${ALLTESTS})
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_BINARY_DIR}/BuildTests.cmake)
foreach(_exe ${ALLTESTS})
target_link_libraries(${_exe} ${DUNE_LIBS})
endforeach(_exe ${ALLTESTS})
add_dune_alugrid_flags(test_mpfa2p)
add_dune_superlu_flags(test_mpfa2p)
# add build targets
add_executable("test_adaptive2p2c" EXCLUDE_FROM_ALL test_adaptive2p2c.cc)
add_dune_alugrid_flags(test_adaptive2p2c)
add_test(test_adaptive2p2c
add_dumux_test(test_adaptive2p2c test_adaptive2p2c test_adaptive2p2c.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/test_adaptive2p2c-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_adaptive2p2c-00008.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_adaptive2p2c
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_adaptive2p2c.input)
add_dune_alugrid_flags(test_adaptive2p2c)
add_executable("test_dec2p2c" EXCLUDE_FROM_ALL test_dec2p2c.cc)
add_test(test_dec2p2c
add_dumux_test(test_dec2p2c test_dec2p2c test_dec2p2c.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/test_dec2p2c-reference.vtu
......@@ -18,27 +15,9 @@ add_test(test_dec2p2c
${CMAKE_CURRENT_BINARY_DIR}/test_dec2p2c
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_dec2p2c.input)
add_executable("test_multiphysics2p2c" EXCLUDE_FROM_ALL test_multiphysics2p2c.cc)
add_test(test_multiphysics2p2c
add_dumux_test(test_multiphysics2p2c test_multiphysics2p2c test_multiphysics2p2c.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/test_multiphysics2p2c-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_multiphysics2p2c-00021.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_multiphysics2p2c)
set(NORMALTESTS
test_adaptive2p2c
test_dec2p2c
test_multiphysics2p2c)
set(ALLTESTS ${NORMALTESTS})
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${ALLTESTS})
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_BINARY_DIR}/BuildTests.cmake)
foreach(_exe ${ALLTESTS})
target_link_libraries(${_exe} ${DUNE_LIBS})
endforeach(_exe ${ALLTESTS})
# add build targets
add_executable("test_navierstokes" EXCLUDE_FROM_ALL test_navierstokes.cc)
add_dune_superlu_flags(test_navierstokes)
add_dune_alugrid_flags(test_navierstokes)
add_dune_ug_flags(test_navierstokes)
add_test(test_navierstokes
add_dumux_test(test_navierstokes test_navierstokes test_navierstokes.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/navierstokes-reference.vtu
......@@ -11,17 +6,6 @@ add_test(test_navierstokes
${CMAKE_CURRENT_BINARY_DIR}/test_navierstokes
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_navierstokes.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_navierstokes.dgf)
set(NORMALTESTS test_navierstokes)
set(ALLTESTS ${NORMALTESTS})
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${ALLTESTS})
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_BINARY_DIR}/BuildTests.cmake)
foreach(_exe ${ALLTESTS})
target_link_libraries(${_exe} ${DUNE_LIBS})
endforeach(_exe ${ALLTESTS})
add_dune_superlu_flags(test_navierstokes)
add_dune_alugrid_flags(test_navierstokes)
add_dune_ug_flags(test_navierstokes)
# add build targets
add_executable("test_stokes" EXCLUDE_FROM_ALL test_stokes.cc)
add_dune_superlu_flags(test_stokes)
add_test(test_stokes
add_dumux_test(test_stokes test_stokes test_stokes.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/stokes-reference.vtu
......@@ -9,17 +6,4 @@ add_test(test_stokes
${CMAKE_CURRENT_BINARY_DIR}/test_stokes
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_stokes.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_stokes.dgf)
set(NORMALTESTS test_stokes)
set(ALLTESTS ${NORMALTESTS})
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${ALLTESTS})
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_BINARY_DIR}/BuildTests.cmake)
foreach(_exe ${ALLTESTS})
target_link_libraries(${_exe} ${DUNE_LIBS})
endforeach(_exe ${ALLTESTS})
add_dune_superlu_flags(test_stokes)
# add build targets
add_executable("test_stokes2c" EXCLUDE_FROM_ALL test_stokes2c.cc)
add_dune_superlu_flags(test_stokes2c)
add_test(test_stokes
add_dumux_test(test_stokes2c test_stokes2c test_stokes2c.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/stokes2c-reference.vtu
......@@ -9,17 +6,4 @@ add_test(test_stokes
${CMAKE_CURRENT_BINARY_DIR}/test_stokes2c
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_stokes2c.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_stokes2c.dgf)
set(NORMALTESTS test_stokes2c)
set(ALLTESTS ${NORMALTESTS})
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${ALLTESTS})
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_BINARY_DIR}/BuildTests.cmake)
foreach(_exe ${ALLTESTS})
target_link_libraries(${_exe} ${DUNE_LIBS})
endforeach(_exe ${ALLTESTS})
add_dune_superlu_flags(test_stokes2c)
# add build targets
add_executable("test_stokes2cni" EXCLUDE_FROM_ALL test_stokes2cni.cc)
add_dune_superlu_flags(test_stokes2cni)
add_test(test_stokes
add_dumux_test(test_stokes2cni test_stokes2cni test_stokes2cni.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/stokes2cni-reference.vtu
......@@ -9,17 +6,4 @@ add_test(test_stokes
${CMAKE_CURRENT_BINARY_DIR}/test_stokes2cni
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_stokes2cni.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_stokes2cni.dgf)
set(NORMALTESTS test_stokes2cni)
set(ALLTESTS ${NORMALTESTS})
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${ALLTESTS})
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_BINARY_DIR}/BuildTests.cmake)
foreach(_exe ${ALLTESTS})
target_link_libraries(${_exe} ${DUNE_LIBS})
endforeach(_exe ${ALLTESTS})
add_dune_superlu_flags(test_stokes2cni)
# build target for the onephase-onecomponent test problem
add_executable("test_box1p" EXCLUDE_FROM_ALL test_box1p.cc)
add_test(test_box1p
add_dumux_test(test_box1p test_box1p test_box1p.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/1ptestbox-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/1ptestbox-00002.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_box1p
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_box1p.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_1p_2d.dgf
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_1p_2d.dgf
-TimeManager.TEnd 1
-TimeManager.DtInitial 1)
add_executable("test_box1pwithamg" EXCLUDE_FROM_ALL test_box1pwithamg.cc)
add_test(test_box1pwithamg
add_dumux_test(test_box1pwithamg test_box1pwithamg test_box1pwithamg.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/1ptestbox-reference.vtu
......@@ -23,8 +20,7 @@ add_test(test_box1pwithamg
-TimeManager.TEnd 1
-TimeManager.DtInitial 1)
add_executable("test_cc1p" EXCLUDE_FROM_ALL test_cc1p.cc)
add_test(test_cc1p
add_dumux_test(test_cc1p test_cc1p test_cc1p.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/1ptestcc-reference.vtu
......@@ -35,8 +31,7 @@ add_test(test_cc1p
-TimeManager.TEnd 1
-TimeManager.DtInitial 1)
add_executable("test_cc1pwithamg" EXCLUDE_FROM_ALL test_cc1pwithamg.cc)
add_test(test_cc1pwithamg
add_dumux_test(test_cc1pwithamg test_cc1pwithamg test_cc1pwithamg.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/1ptestcc-reference.vtu
......@@ -46,21 +41,3 @@ add_test(test_cc1pwithamg
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_1p_2d.dgf
-TimeManager.TEnd 1
-TimeManager.DtInitial 1)
set(NORMALTESTS
test_box1p
test_box1pwithamg
test_cc1p
test_cc1pwithamg)
set(ALLTESTS ${NORMALTESTS})
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${ALLTESTS})
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_BINARY_DIR}/BuildTests.cmake)
foreach(_exe ${ALLTESTS})
target_link_libraries(${_exe} ${DUNE_LIBS})
endforeach(_exe ${ALLTESTS})
add_executable("test_box1p2c" EXCLUDE_FROM_ALL test_box1p2c.cc)
add_test(test_box1p2c
add_dumux_test(test_box1p2c test_box1p2c test_box1p2c.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/outflowbox-reference.vtu
......@@ -10,8 +9,7 @@ add_test(test_box1p2c
-TimeManager.TEnd 100
-TimeManager.DtInitial 1)
add_executable("test_cc1p2c" EXCLUDE_FROM_ALL test_cc1p2c.cc)
add_test(test_cc1p2c
add_dumux_test(test_cc1p2c test_cc1p2c test_cc1p2c.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/outflowcc-reference.vtu
......@@ -21,19 +19,3 @@ add_test(test_cc1p2c
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_1p2c.dgf
-TimeManager.TEnd 100
-TimeManager.DtInitial 1)
set(NORMALTESTS
test_box1p2c
test_cc1p2c)
set(ALLTESTS ${NORMALTESTS})
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${ALLTESTS})
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_BINARY_DIR}/BuildTests.cmake)
foreach(_exe ${ALLTESTS})
target_link_libraries(${_exe} ${DUNE_LIBS})
endforeach(_exe ${ALLTESTS})
# build target for the simple twophase lens problem
add_executable("test_box2p" EXCLUDE_FROM_ALL test_box2p.cc)
add_test(test_box2p
add_dumux_test(test_box2p test_box2p test_box2p.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/lensbox-reference.vtu
......@@ -11,8 +9,7 @@ add_test(test_box2p
-TimeManager.TEnd 3000
-TimeManager.DtInitial 250)
add_executable("test_cc2p" EXCLUDE_FROM_ALL test_cc2p.cc)
add_test(test_cc2p
add_dumux_test(test_cc2p test_cc2p test_cc2p.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/lenscc-reference.vtu
......@@ -22,19 +19,3 @@ add_test(test_cc2p
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_2p.dgf
-TimeManager.TEnd 3000
-TimeManager.DtInitial 250)
set(NORMALTESTS
test_box2p
test_cc2p)
set(ALLTESTS ${NORMALTESTS})
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${ALLTESTS})
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_BINARY_DIR}/BuildTests.cmake)
foreach(_exe ${ALLTESTS})
target_link_libraries(${_exe} ${DUNE_LIBS})
endforeach(_exe ${ALLTESTS})
# build target for the twophase-twocomponent test problem
add_executable("test_box2p2c" EXCLUDE_FROM_ALL test_box2p2c.cc)
add_test(test_box2p2c
add_dumux_test(test_box2p2c test_box2p2c test_box2p2c.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/injectionbox-reference.vtu
......@@ -11,8 +9,7 @@ add_test(test_box2p2c
-TimeManager.TEnd 1e4
-TimeManager.DtInitial 250)
add_executable("test_cc2p2c" EXCLUDE_FROM_ALL test_cc2p2c.cc)
add_test(test_cc2p2c
add_dumux_test(test_cc2p2c test_cc2p2c test_cc2p2c.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/injectioncc-reference.vtu
......@@ -22,19 +19,3 @@ add_test(test_cc2p2c
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_2p2c.dgf
-TimeManager.TEnd 1e4
-TimeManager.DtInitial 250)
set(NORMALTESTS
test_box2p2c
test_cc2p2c)
set(ALLTESTS ${NORMALTESTS})
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${ALLTESTS})
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_BINARY_DIR}/BuildTests.cmake)
foreach(_exe ${ALLTESTS})
target_link_libraries(${_exe} ${DUNE_LIBS})
endforeach(_exe ${ALLTESTS})
# build target for the 2p2cni test problem
add_executable("test_box2p2cni" EXCLUDE_FROM_ALL test_box2p2cni.cc)
add_test(test_box2p2cni
add_dumux_test(test_box2p2cni test_box2p2cni test_box2p2cni.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/waterairbox-reference.vtu
......@@ -11,8 +9,7 @@ add_test(test_box2p2cni
-TimeManager.TEnd 1e4
-TimeManager.DtInitial 250)
add_executable("test_cc2p2cni" EXCLUDE_FROM_ALL test_cc2p2cni.cc)
add_test(test_cc2p2cni
add_dumux_test(test_cc2p2cni test_cc2p2cni test_cc2p2cni.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/wateraircc-reference.vtu
......@@ -21,20 +18,4 @@ add_test(test_cc2p2cni
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_cc2p2cni.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_2p2cni.dgf
-TimeManager.TEnd 1e4
-TimeManager.DtInitial 250)
set(NORMALTESTS
test_box2p2cni
test_cc2p2cni)
set(ALLTESTS ${NORMALTESTS})
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${ALLTESTS})
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_BINARY_DIR}/BuildTests.cmake)
foreach(_exe ${ALLTESTS})
target_link_libraries(${_exe} ${DUNE_LIBS})
endforeach(_exe ${ALLTESTS})
-TimeManager.DtInitial 250)
\ No newline at end of file
add_executable("test_2pdfm" EXCLUDE_FROM_ALL test_2pdfm.cc)
add_dune_ug_flags(test_2pdfm)
add_test(test_2pdfm
add_dumux_test(test_2pdfm test_2pdfm test_2pdfm.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/2pdfm-reference.vtu
......@@ -8,17 +6,4 @@ add_test(test_2pdfm
${CMAKE_CURRENT_BINARY_DIR}/test_2pdfm
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_2pdfm.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/2pdfmartmesh.net)
set(NORMALTESTS test_2pdfm)
set(ALLTESTS ${NORMALTESTS})
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${ALLTESTS})
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_BINARY_DIR}/BuildTests.cmake)
foreach(_exe ${ALLTESTS})
target_link_libraries(${_exe} ${DUNE_LIBS} ${MPI_LIBRARIES})
endforeach(_exe ${ALLTESTS})
add_dune_ug_flags(test_2pdfm)
add_executable("test_box2pni" EXCLUDE_FROM_ALL test_box2pni.cc)
add_test(test_box2pni
add_dumux_test(test_box2pni test_box2pni test_box2pni.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/injection2pnibox-reference.vtu
......@@ -9,8 +8,7 @@ add_test(test_box2pni
-TimeManager.TEnd 1e4
-TimeManager.DtInitial 250)
add_executable("test_cc2pni" EXCLUDE_FROM_ALL test_cc2pni.cc)
add_test(test_cc2pni
add_dumux_test(test_cc2pni test_cc2pni test_cc2pni.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/injection2pnicc-reference.vtu
......@@ -19,19 +17,3 @@ add_test(test_cc2pni
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_cc2pni.input
-TimeManager.TEnd 1e4
-TimeManager.DtInitial 250)
set(NORMALTESTS
test_box2pni
test_cc2pni)
set(ALLTESTS ${NORMALTESTS})
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${ALLTESTS})
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_BINARY_DIR}/BuildTests.cmake)
foreach(_exe ${ALLTESTS})
target_link_libraries(${_exe} ${DUNE_LIBS})
endforeach(_exe ${ALLTESTS})
add_executable("test_box3p" EXCLUDE_FROM_ALL test_box3p.cc)
add_test(test_box3p
add_dumux_test(test_box3p test_box3p test_box3p.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/infiltration3pbox-reference.vtu
......@@ -8,8 +7,7 @@ add_test(test_box3p
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_box3p.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/infiltration3p.dgf)
add_executable("test_cc3p" EXCLUDE_FROM_ALL test_cc3p.cc)
add_test(test_cc3p
add_dumux_test(test_cc3p test_cc3p test_cc3p.cc
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
${CMAKE_SOURCE_DIR}/test/references/infiltration3pcc-reference.vtu
......@@ -17,20 +15,3 @@ add_test(test_cc3p
${CMAKE_CURRENT_BINARY_DIR}/test_cc3p
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_cc3p.input
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/infiltration3p.dgf)
set(NORMALTESTS
test_box3p
test_cc3p)
set(ALLTESTS ${NORMALTESTS})
# We do not want want to build the tests during make all,
# but just build them on demand
add_directory_test_target(_test_target)
add_dependencies(${_test_target} ${ALLTESTS})
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
PROPERTY TEST_INCLUDE_FILE ${CMAKE_CURRENT_BINARY_DIR}/BuildTests.cmake)
foreach(_exe ${ALLTESTS})
target_link_libraries(${_exe} ${DUNE_LIBS})
endforeach(_exe ${ALLTESTS})
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