Commit 5d7eff39 authored by Dennis's avatar Dennis
Browse files

[cmake] use dumux_add_test

This ensures that test meta data are written out upon configuration.
parent f450f27a
add_input_file_links() add_input_file_links()
dune_add_test(NAME lens2pexercise3 dumux_add_test(NAME lens2pexercise3
SOURCES lens2pexercise3.cc SOURCES lens2pexercise3.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy CMD_ARGS --script fuzzy
...@@ -8,7 +8,7 @@ dune_add_test(NAME lens2pexercise3 ...@@ -8,7 +8,7 @@ dune_add_test(NAME lens2pexercise3
${CMAKE_CURRENT_BINARY_DIR}/lens-2p-00011.vtu ${CMAKE_CURRENT_BINARY_DIR}/lens-2p-00011.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/lens2pexercise3 -ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/exercise3.input -Problem.Name lens-2p") --command "${CMAKE_CURRENT_BINARY_DIR}/lens2pexercise3 -ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/exercise3.input -Problem.Name lens-2p")
dune_add_test(NAME lens2p2cexercise3 dumux_add_test(NAME lens2p2cexercise3
SOURCES lens2p2cexercise3.cc SOURCES lens2p2cexercise3.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy CMD_ARGS --script fuzzy
...@@ -16,7 +16,7 @@ dune_add_test(NAME lens2p2cexercise3 ...@@ -16,7 +16,7 @@ dune_add_test(NAME lens2p2cexercise3
${CMAKE_CURRENT_BINARY_DIR}/lens-2p2c-00011.vtu ${CMAKE_CURRENT_BINARY_DIR}/lens-2p2c-00011.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/lens2p2cexercise3 -ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/exercise3.input -Problem.Name lens-2p2c") --command "${CMAKE_CURRENT_BINARY_DIR}/lens2p2cexercise3 -ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/exercise3.input -Problem.Name lens-2p2c")
dune_add_test(NAME lens1p2cexercise3 dumux_add_test(NAME lens1p2cexercise3
SOURCES lens1p2cexercise3.cc SOURCES lens1p2cexercise3.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy CMD_ARGS --script fuzzy
......
add_input_file_links() add_input_file_links()
dune_add_test(NAME lens1p2cexercise1 dumux_add_test(NAME lens1p2cexercise1
SOURCES lens1p2cexercise1.cc SOURCES lens1p2cexercise1.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy CMD_ARGS --script fuzzy
...@@ -9,7 +9,7 @@ dune_add_test(NAME lens1p2cexercise1 ...@@ -9,7 +9,7 @@ dune_add_test(NAME lens1p2cexercise1
--command "${CMAKE_CURRENT_BINARY_DIR}/lens1p2cexercise1 ${CMAKE_CURRENT_SOURCE_DIR}/exercise1.input -Problem.Name lens-1p2c" --command "${CMAKE_CURRENT_BINARY_DIR}/lens1p2cexercise1 ${CMAKE_CURRENT_SOURCE_DIR}/exercise1.input -Problem.Name lens-1p2c"
--zeroThreshold {"x^N2_liq":1e-18,"X^N2_liq":1e-18}) --zeroThreshold {"x^N2_liq":1e-18,"X^N2_liq":1e-18})
dune_add_test(NAME lens2pexercise1 dumux_add_test(NAME lens2pexercise1
SOURCES lens2pexercise1.cc SOURCES lens2pexercise1.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy CMD_ARGS --script fuzzy
......
add_input_file_links() add_input_file_links()
dune_add_test(NAME lens2pexercise2 dumux_add_test(NAME lens2pexercise2
SOURCES lens2pexercise2.cc SOURCES lens2pexercise2.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy CMD_ARGS --script fuzzy
......
add_input_file_links() add_input_file_links()
dune_add_test(NAME groundwater dumux_add_test(NAME groundwater
SOURCES groundwater.cc SOURCES groundwater.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy CMD_ARGS --script fuzzy
......
add_input_file_links() add_input_file_links()
dune_add_test(NAME buckleyleverettexercise dumux_add_test(NAME buckleyleverettexercise
SOURCES buckleyleverettexercise.cc SOURCES buckleyleverettexercise.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy CMD_ARGS --script fuzzy
......
add_input_file_links() add_input_file_links()
dune_add_test(NAME co2plumeshapeexercise dumux_add_test(NAME co2plumeshapeexercise
SOURCES co2plumeshapeexercise.cc SOURCES co2plumeshapeexercise.cc
COMPILE_DEFINITIONS TYPETAG=PlumeShapeBoxTypeTag COMPILE_DEFINITIONS TYPETAG=PlumeShapeBoxTypeTag
TIMEOUT 1800 TIMEOUT 1800
......
add_input_file_links() add_input_file_links()
dune_symlink_to_source_files(FILES grids) dune_symlink_to_source_files(FILES grids)
dune_add_test(NAME columnxyleneexercise dumux_add_test(NAME columnxyleneexercise
SOURCES columnxyleneexercise.cc SOURCES columnxyleneexercise.cc
COMPILE_DEFINITIONS TYPETAG=ColumnProblemBoxTypeTag COMPILE_DEFINITIONS TYPETAG=ColumnProblemBoxTypeTag
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
......
add_input_file_links() add_input_file_links()
dune_add_test(COMPILE_ONLY # the test produces different results due to the fingers on different machines dumux_add_test(COMPILE_ONLY # the test produces different results due to the fingers on different machines
NAME convmixexercise NAME convmixexercise
SOURCES convmixexercise.cc SOURCES convmixexercise.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
......
dune_symlink_to_source_files(FILES "grids" "fracture_exercise.input" "plot.p") dune_symlink_to_source_files(FILES "grids" "fracture_exercise.input" "plot.p")
# test for the exercise # test for the exercise
dune_add_test(NAME fracture_exercise dumux_add_test(NAME fracture_exercise
CMAKE_GUARD "( dune-foamgrid_FOUND AND dune-alugrid_FOUND )" CMAKE_GUARD "( dune-foamgrid_FOUND AND dune-alugrid_FOUND )"
SOURCES fractures.cc SOURCES fractures.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
......
add_input_file_links() add_input_file_links()
dune_add_test(NAME fuelcell dumux_add_test(NAME fuelcell
TIMEOUT 1800 TIMEOUT 1800
SOURCES fuelcell.cc SOURCES fuelcell.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
......
add_input_file_links() add_input_file_links()
dune_symlink_to_source_files(FILES grids) dune_symlink_to_source_files(FILES grids)
dune_add_test(NAME heatpipe dumux_add_test(NAME heatpipe
SOURCES heatpipe.cc SOURCES heatpipe.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy CMD_ARGS --script fuzzy
......
add_input_file_links() add_input_file_links()
dune_add_test(NAME sagd dumux_add_test(NAME sagd
SOURCES sagd.cc SOURCES sagd.cc
TIMEOUT 1800 TIMEOUT 1800
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/sagd COMMAND ${CMAKE_CURRENT_BINARY_DIR}/sagd
......
add_input_file_links() add_input_file_links()
dune_add_test(NAME sagd_cyclic dumux_add_test(NAME sagd_cyclic
SOURCES sagd_cyclic.cc SOURCES sagd_cyclic.cc
TIMEOUT 1800 TIMEOUT 1800
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/sagd_cyclic COMMAND ${CMAKE_CURRENT_BINARY_DIR}/sagd_cyclic
......
add_input_file_links() add_input_file_links()
dune_add_test(NAME sagd_cyclic_hyst dumux_add_test(NAME sagd_cyclic_hyst
SOURCES sagd_cyclic_hyst.cc SOURCES sagd_cyclic_hyst.cc
TIMEOUT 1800 TIMEOUT 1800
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/sagd_cyclic_hyst COMMAND ${CMAKE_CURRENT_BINARY_DIR}/sagd_cyclic_hyst
......
add_input_file_links() add_input_file_links()
dune_symlink_to_source_files(FILES grids) dune_symlink_to_source_files(FILES grids)
dune_add_test(NAME henry1p2c dumux_add_test(NAME henry1p2c
SOURCES henry1p2c.cc SOURCES henry1p2c.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy CMD_ARGS --script fuzzy
......
add_input_file_links() add_input_file_links()
dune_symlink_to_source_files(FILES grids) dune_symlink_to_source_files(FILES grids)
dune_add_test(NAME henry2p dumux_add_test(NAME henry2p
SOURCES henry2p.cc SOURCES henry2p.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy CMD_ARGS --script fuzzy
......
add_input_file_links() add_input_file_links()
dune_add_test(NAME mcwhorterexercise dumux_add_test(NAME mcwhorterexercise
SOURCES mcwhorterexercise.cc SOURCES mcwhorterexercise.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy CMD_ARGS --script fuzzy
......
add_input_file_links() add_input_file_links()
# for the test only simulate one week # for the test only simulate one week
dune_add_test(NAME naplinfiltration3p dumux_add_test(NAME naplinfiltration3p
SOURCES naplinfiltration3p.cc SOURCES naplinfiltration3p.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy CMD_ARGS --script fuzzy
......
add_input_file_links() add_input_file_links()
# for the test only simulate one week # for the test only simulate one week
dune_add_test(NAME naplinfiltration3p3c dumux_add_test(NAME naplinfiltration3p3c
SOURCES naplinfiltration3p3c.cc SOURCES naplinfiltration3p3c.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy CMD_ARGS --script fuzzy
......
add_input_file_links(remediationscenariosexercise.input) add_input_file_links(remediationscenariosexercise.input)
dune_add_test(NAME remediationscenariosexercise dumux_add_test(NAME remediationscenariosexercise
TIMEOUT 1800 TIMEOUT 1800
SOURCES remediationscenariosexercise.cc SOURCES remediationscenariosexercise.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
......
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