Commit 75703f18 authored by Christoph Grueninger's avatar Christoph Grueninger
Browse files

[CMake] Do not build tests with "make" but as a dependency of ctest/make

test.
(reviewed by bernd)


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@10778 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent afbb6650
......@@ -6,8 +6,8 @@ cmake_minimum_required(VERSION 2.8.6)
#find dune-common and set the module path
find_package(dune-common)
list(APPEND CMAKE_MODULE_PATH ${dune-common_MODULE_PATH})
message("dune-common_MODULE_PATH=${dune-common_MODULE_PATH}")
list(APPEND CMAKE_MODULE_PATH ${dune-common_MODULE_PATH}
"${PROJECT_SOURCE_DIR}/cmake/modules")
#include the dune macros
include(DuneMacros)
......
......@@ -4,7 +4,9 @@ get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_prefix "${_dir}/../../.." ABSOLUTE)
#import the target
#include("${_prefix}/lib/cmake/@DUNE_MOD_NAME@-targets.cmake")
if(EXISTS "${_prefix}/lib/cmake/@DUNE_MOD_NAME@-targets.cmake")
include("${_prefix}/lib/cmake/@DUNE_MOD_NAME@-targets.cmake")
endif(EXISTS "${_prefix}/lib/cmake/@DUNE_MOD_NAME@-targets.cmake")
#report other information
set(@DUNE_MOD_NAME@_PREFIX "${_prefix}")
......@@ -14,7 +16,8 @@ set(@DUNE_MOD_NAME@_CXX_FLAGS_DEBUG "@CMAKE_CXX_FLAGS_DEBUG@")
set(@DUNE_MOD_NAME@_CXX_FLAGS_MINSIZEREL "@CMAKE_CXX_FLAGS_MINSIZEREL@")
set(@DUNE_MOD_NAME@_CXX_FLAGS_RELEASE "@CMAKE_CXX_FLAGS_RELEASE@")
set(@DUNE_MOD_NAME@_CXX_FLAGS_RELWITHDEBINFO "@CMAKE_CXX_FLAGS_RELWITHDEBINFO@")
set(@DUNE_MOD_NAME@_LIBRARIES "")
set(@DUNE_MOD_NAME@_DEPENDS "@DUNE_DEPENDS@")
set(@DUNE_MOD_NAME@_SUGGESTS "@DUNE_SUGGESTS@")
set(@DUNE_MOD_NAME@_MODULE_PATH "@DUNE_INSTALL_MODULEDIR@")
endif(NOT @DUNE_MOD_NAME@_FOUND)
\ No newline at end of file
endif(NOT @DUNE_MOD_NAME@_FOUND)
if(NOT @DUNE_MOD_NAME@_FOUND)
#compute installation prefix relative to this file
get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_prefix "${_dir}/../../.." ABSOLUTE)
#import the target
#include("@CMAKE_BINARY_DIR@/@DUNE_MOD_NAME@-targets.cmake")
if(EXISTS "@CMAKE_BINARY_DIR@/@DUNE_MOD_NAME@-targets.cmake")
include("@CMAKE_BINARY_DIR@/@DUNE_MOD_NAME@-targets.cmake")
endif(EXISTS "@CMAKE_BINARY_DIR@/@DUNE_MOD_NAME@-targets.cmake")
#report other information
set(@DUNE_MOD_NAME@_PREFIX "@CMAKE_SOURCE_DIR@")
set(@DUNE_MOD_NAME@_INCLUDE_DIRS "@CMAKE_SOURCE_DIR@")
set(@DUNE_MOD_NAME@_PREFIX "${_prefix}")
set(@DUNE_MOD_NAME@_INCLUDE_DIRS "${_prefix}/include")
set(@DUNE_MOD_NAME@_CXX_FLAGS "@CMAKE_CXX_FLAGS@")
set(@DUNE_MOD_NAME@_CXX_FLAGS_DEBUG "@CMAKE_CXX_FLAGS_DEBUG@")
set(@DUNE_MOD_NAME@_CXX_FLAGS_MINSIZEREL "@CMAKE_CXX_FLAGS_MINSIZEREL@")
......@@ -13,5 +19,5 @@ set(@DUNE_MOD_NAME@_CXX_FLAGS_RELWITHDEBINFO "@CMAKE_CXX_FLAGS_RELWITHDEBINFO@")
set(@DUNE_MOD_NAME@_LIBRARIES "")
set(@DUNE_MOD_NAME@_DEPENDS "@DUNE_DEPENDS@")
set(@DUNE_MOD_NAME@_SUGGESTS "@DUNE_SUGGESTS@")
set(@DUNE_MOD_NAME@_MODULE_PATH "@CMAKE_SOURCE_DIR@/cmake/modules")
endif(NOT @DUNE_MOD_NAME@_FOUND)
\ No newline at end of file
set(@DUNE_MOD_NAME@_MODULE_PATH "@DUNE_INSTALL_MODULEDIR@")
endif(NOT @DUNE_MOD_NAME@_FOUND)
# build target for the simple twophase lens problem in a general
# definition for both box and decoupled model
add_executable("test_generalproblem2p" test_generalproblem2p.cc)
target_link_libraries(test_generalproblem2p ${DUNE_LIBS})
add_executable("test_generalproblem2p" EXCLUDE_FROM_ALL test_generalproblem2p.cc)
add_test(test_general_box
${CMAKE_SOURCE_DIR}/bin/runTest.sh
......@@ -26,11 +25,16 @@ add_test(test_general_dec
-TimeManager.DtInitial 2e1)
set(NORMALTESTS
test_general_box
test_general_dec)
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" test_propertysystem.cc)
add_executable("test_propertysystem" EXCLUDE_FROM_ALL test_propertysystem.cc)
add_test(test_propertysystem
${CMAKE_CURRENT_BINARY_DIR}/test_propertysystem)
......@@ -10,6 +10,8 @@ set(ALLTESTS ${NORMALTESTS})
# 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})
......
# add build targets
add_executable("test_spline" test_spline.cc)
add_executable("test_spline" EXCLUDE_FROM_ALL test_spline.cc)
add_test(test_spline
${CMAKE_CURRENT_BINARY_DIR}/test_spline)
......@@ -10,6 +10,8 @@ set(ALLTESTS ${NORMALTESTS})
# 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})
......
# add build targets
add_executable("test_dec1p" test_1p.cc)
add_executable("test_dec1p" EXCLUDE_FROM_ALL test_1p.cc)
add_test(test_dec1p
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -8,7 +8,7 @@ add_test(test_dec1p
${CMAKE_CURRENT_BINARY_DIR}/test_1p
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_1p.input)
add_executable("test_diffusion" test_diffusion.cc)
add_executable("test_diffusion" EXCLUDE_FROM_ALL test_diffusion.cc)
add_test(test_diffusion
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -17,13 +17,17 @@ add_test(test_diffusion
${CMAKE_CURRENT_BINARY_DIR}/test_diffusion
3)
set(NORMALTESTS test_dec1p test_diffusion)
set(NORMALTESTS
test_dec1p
test_diffusion)
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})
......
# add build targets
add_executable("test_impes" test_impes.cc)
target_link_libraries(test_impes ${DUNE_LIBS})
add_executable("test_impes" EXCLUDE_FROM_ALL test_impes.cc)
add_test(test_impes
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -9,8 +8,7 @@ add_test(test_impes
${CMAKE_CURRENT_BINARY_DIR}/test_impes
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_impes.input)
add_executable("test_impesadaptive" test_impesadaptive.cc)
target_link_libraries(test_impesadaptive ${DUNE_LIBS})
add_executable("test_impesadaptive" EXCLUDE_FROM_ALL test_impesadaptive.cc)
add_dune_alugrid_flags(test_impesadaptive)
add_test(test_impesadaptive
${CMAKE_SOURCE_DIR}/bin/runTest.sh
......@@ -20,8 +18,7 @@ add_test(test_impesadaptive
${CMAKE_CURRENT_BINARY_DIR}/test_impesadaptive
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_impesadaptive.input)
add_executable("test_impeswithamg" test_impeswithamg.cc)
target_link_libraries(test_impeswithamg ${DUNE_LIBS})
add_executable("test_impeswithamg" EXCLUDE_FROM_ALL test_impeswithamg.cc)
if(MPI_FOUND)
add_test(test_impeswithamg
${CMAKE_SOURCE_DIR}/bin/runTest.sh
......@@ -42,8 +39,7 @@ else(MPI_FOUND)
-Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/test_impeswithamg.dgf)
endif(MPI_FOUND)
add_executable("test_transport" test_transport.cc)
target_link_libraries(test_transport ${DUNE_LIBS})
add_executable("test_transport" EXCLUDE_FROM_ALL test_transport.cc)
add_test(test_transport
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -53,8 +49,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" test_mpfa2p.cc)
target_link_libraries(test_mpfa2p ${DUNE_LIBS})
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
......@@ -87,12 +82,16 @@ set(NORMALTESTS
test_impesadaptive
test_impeswithamg
test_transport
test_mpfao2p
test_mpfal2p
test_mpfal2padaptive)
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 build targets
add_executable("test_adaptive2p2c" test_adaptive2p2c.cc)
add_executable("test_adaptive2p2c" EXCLUDE_FROM_ALL test_adaptive2p2c.cc)
add_dune_alugrid_flags(test_adaptive2p2c)
add_test(test_adaptive2p2c
${CMAKE_SOURCE_DIR}/bin/runTest.sh
......@@ -9,7 +9,7 @@ add_test(test_adaptive2p2c
${CMAKE_CURRENT_BINARY_DIR}/test_adaptive2p2c
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_adaptive2p2c.input)
add_executable("test_dec2p2c" test_dec2p2c.cc)
add_executable("test_dec2p2c" EXCLUDE_FROM_ALL test_dec2p2c.cc)
add_test(test_dec2p2c
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -18,7 +18,7 @@ add_test(test_dec2p2c
${CMAKE_CURRENT_BINARY_DIR}/test_dec2p2c
-ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/test_dec2p2c.input)
add_executable("test_multiphysics2p2c" test_multiphysics2p2c.cc)
add_executable("test_multiphysics2p2c" EXCLUDE_FROM_ALL test_multiphysics2p2c.cc)
add_test(test_multiphysics2p2c
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -37,6 +37,8 @@ set(ALLTESTS ${NORMALTESTS})
# 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})
......
# add build targets
add_executable("test_navierstokes" test_navierstokes.cc)
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)
......@@ -19,6 +19,8 @@ set(ALLTESTS ${NORMALTESTS})
# 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})
......
# add build targets
add_executable("test_stokes" test_stokes.cc)
add_executable("test_stokes" EXCLUDE_FROM_ALL test_stokes.cc)
add_dune_superlu_flags(test_stokes)
add_test(test_stokes
${CMAKE_SOURCE_DIR}/bin/runTest.sh
......@@ -17,6 +17,8 @@ set(ALLTESTS ${NORMALTESTS})
# 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})
......
# add build targets
add_executable("test_stokes2c" test_stokes2c.cc)
add_executable("test_stokes2c" EXCLUDE_FROM_ALL test_stokes2c.cc)
add_dune_superlu_flags(test_stokes2c)
add_test(test_stokes
${CMAKE_SOURCE_DIR}/bin/runTest.sh
......@@ -17,6 +17,8 @@ set(ALLTESTS ${NORMALTESTS})
# 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})
......
# add build targets
add_executable("test_stokes2cni" test_stokes2cni.cc)
add_executable("test_stokes2cni" EXCLUDE_FROM_ALL test_stokes2cni.cc)
add_dune_superlu_flags(test_stokes2cni)
add_test(test_stokes
${CMAKE_SOURCE_DIR}/bin/runTest.sh
......@@ -17,6 +17,8 @@ set(ALLTESTS ${NORMALTESTS})
# 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})
......
# build target for the onephase-onecomponent test problem
add_executable("test_box1p" test_box1p.cc)
add_executable("test_box1p" EXCLUDE_FROM_ALL test_box1p.cc)
add_test(test_box1p
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -11,7 +11,7 @@ add_test(test_box1p
-TimeManager.TEnd 1
-TimeManager.DtInitial 1)
add_executable("test_box1pwithamg" test_box1pwithamg.cc)
add_executable("test_box1pwithamg" EXCLUDE_FROM_ALL test_box1pwithamg.cc)
add_test(test_box1pwithamg
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -23,7 +23,7 @@ add_test(test_box1pwithamg
-TimeManager.TEnd 1
-TimeManager.DtInitial 1)
add_executable("test_cc1p" test_cc1p.cc)
add_executable("test_cc1p" EXCLUDE_FROM_ALL test_cc1p.cc)
add_test(test_cc1p
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -35,7 +35,7 @@ add_test(test_cc1p
-TimeManager.TEnd 1
-TimeManager.DtInitial 1)
add_executable("test_cc1pwithamg" test_cc1pwithamg.cc)
add_executable("test_cc1pwithamg" EXCLUDE_FROM_ALL test_cc1pwithamg.cc)
add_test(test_cc1pwithamg
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -58,6 +58,8 @@ set(ALLTESTS ${NORMALTESTS})
# 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})
......
add_executable("test_box1p2c" test_box1p2c.cc)
add_executable("test_box1p2c" EXCLUDE_FROM_ALL test_box1p2c.cc)
add_test(test_box1p2c
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -10,7 +10,7 @@ add_test(test_box1p2c
-TimeManager.TEnd 100
-TimeManager.DtInitial 1)
add_executable("test_cc1p2c" test_cc1p2c.cc)
add_executable("test_cc1p2c" EXCLUDE_FROM_ALL test_cc1p2c.cc)
add_test(test_cc1p2c
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -31,6 +31,8 @@ set(ALLTESTS ${NORMALTESTS})
# 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})
......
# build target for the simple twophase lens problem
add_executable("test_box2p" test_box2p.cc)
add_executable("test_box2p" EXCLUDE_FROM_ALL test_box2p.cc)
add_test(test_box2p
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -11,7 +11,7 @@ add_test(test_box2p
-TimeManager.TEnd 3000
-TimeManager.DtInitial 250)
add_executable("test_cc2p" test_cc2p.cc)
add_executable("test_cc2p" EXCLUDE_FROM_ALL test_cc2p.cc)
add_test(test_cc2p
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -32,6 +32,8 @@ set(ALLTESTS ${NORMALTESTS})
# 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})
......
# build target for the twophase-twocomponent test problem
add_executable("test_box2p2c" test_box2p2c.cc)
add_executable("test_box2p2c" EXCLUDE_FROM_ALL test_box2p2c.cc)
add_test(test_box2p2c
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -11,7 +11,7 @@ add_test(test_box2p2c
-TimeManager.TEnd 1e4
-TimeManager.DtInitial 250)
add_executable("test_cc2p2c" test_cc2p2c.cc)
add_executable("test_cc2p2c" EXCLUDE_FROM_ALL test_cc2p2c.cc)
add_test(test_cc2p2c
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -32,6 +32,8 @@ set(ALLTESTS ${NORMALTESTS})
# 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})
......
# build target for the 2p2cni test problem
add_executable("test_box2p2cni" test_box2p2cni.cc)
add_executable("test_box2p2cni" EXCLUDE_FROM_ALL test_box2p2cni.cc)
add_test(test_box2p2cni
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -11,7 +11,7 @@ add_test(test_box2p2cni
-TimeManager.TEnd 1e4
-TimeManager.DtInitial 250)
add_executable("test_cc2p2cni" test_cc2p2cni.cc)
add_executable("test_cc2p2cni" EXCLUDE_FROM_ALL test_cc2p2cni.cc)
add_test(test_cc2p2cni
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -32,6 +32,8 @@ set(ALLTESTS ${NORMALTESTS})
# 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})
......
add_executable("test_2pdfm" test_2pdfm.cc)
add_executable("test_2pdfm" EXCLUDE_FROM_ALL test_2pdfm.cc)
add_dune_ug_flags(test_2pdfm)
add_test(test_2pdfm
${CMAKE_SOURCE_DIR}/bin/runTest.sh
......@@ -16,6 +16,8 @@ set(ALLTESTS ${NORMALTESTS})
# 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})
......
add_executable("test_box2pni" test_box2pni.cc)
add_executable("test_box2pni" EXCLUDE_FROM_ALL test_box2pni.cc)
add_test(test_box2pni
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -9,7 +9,7 @@ add_test(test_box2pni
-TimeManager.TEnd 1e4
-TimeManager.DtInitial 250)
add_executable("test_cc2pni" test_cc2pni.cc)
add_executable("test_cc2pni" EXCLUDE_FROM_ALL test_cc2pni.cc)
add_test(test_cc2pni
${CMAKE_SOURCE_DIR}/bin/runTest.sh
${CMAKE_SOURCE_DIR}/bin/fuzzycomparevtu.py
......@@ -29,6 +29,8 @@ set(ALLTESTS ${NORMALTESTS})
# 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})
......
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