Commit 90e0fcd1 authored by Timo Koch's avatar Timo Koch
Browse files

[cmake] add_dumux_test -> dune_add_test

parent e7a33d45
add_input_file_links()
add_dumux_test(buckleyleverettexercise buckleyleverettexercise buckleyleverettexercise.cc
python ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
dune_add_test(NAME buckleyleverettexercise
SOURCES buckleyleverettexercise.cc
COMMAND python
CMD_ARGS ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
--script fuzzy
--files ${CMAKE_SOURCE_DIR}/lecture/references/buckleyleverett-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/buckleyleverett-00062.vtu
......
add_input_file_links()
add_dumux_test(fuelcell fuelcell fuelcell.cc
python ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
--script fuzzy
--files ${CMAKE_SOURCE_DIR}/lecture/references/fuelcell-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/fuelcell-00017.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/fuelcell -TimeManager.TEnd 10")
dune_add_test(NAME fuelcell
SOURCES fuelcell.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/lecture/references/fuelcell-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/fuelcell-00017.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/fuelcell -TimeManager.TEnd 10")
# headers for installation and headercheck
install(FILES
......
add_input_file_links()
add_dumux_test(heatpipe heatpipe heatpipe.cc
python ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
--script fuzzy
--files ${CMAKE_SOURCE_DIR}/lecture/references/heatpipe-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/heatpipe-00022.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/heatpipe ")
dune_add_test(NAME heatpipe
SOURCES heatpipe.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/lecture/references/heatpipe-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/heatpipe-00022.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/heatpipe ")
# headers for installation and headercheck
install(FILES
......
# headers for installation and headercheck
add_dumux_test(sagd sagd sagd.cc "${CMAKE_CURRENT_BINARY_DIR}/sagd" "-TimeLoop.TEnd" "43200" "-TimeLoop.MaxTimeStepSize" "21600")
dune_add_test(NAME sagd
SOURCES sagd.cc
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/sagd
CMD_ARGS -TimeLoop.TEnd 43200 -TimeLoop.MaxTimeStepSize 21600)
install(FILES
sagdproblem.hh
sagdspatialparams.hh
......
# headers for installation and headercheck
add_dumux_test(sagd_cyclic sagd_cyclic sagd_cyclic.cc "${CMAKE_CURRENT_BINARY_DIR}/sagd_cyclic" "-TimeLoop.TEnd" "43200" "-TimeLoop.MaxTimeStepSize" "21600")
dune_add_test(NAME sagd_cyclic
SOURCES sagd_cyclic.cc
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/sagd_cyclic
CMD_ARGS -TimeLoop.TEnd 43200 -TimeLoop.MaxTimeStepSize21600)
install(FILES
problem.hh
......
# headers for installation and headercheck
add_dumux_test(sagd_cyclic_hyst sagd_cyclic_hyst sagd_cyclic_hyst.cc "${CMAKE_CURRENT_BINARY_DIR}/sagd_cyclic_hyst" "-TimeLoop.TEnd" "43200" "-TimeLoop.MaxTimeStepSize" "21600")
dune_add_test(NAME sagd_cyclic_hyst
SOURCES sagd_cyclic_hyst.cc
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/sagd_cyclic_hyst
CMD_ARGS -TimeLoop.TEnd 43200 -TimeLoop.MaxTimeStepSize 21600)
install(FILES
problem.hh
......
add_input_file_links()
add_dumux_test(henry1p2c henry1p2c henry1p2c.cc
python ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
--script fuzzy
--files ${CMAKE_SOURCE_DIR}/lecture/references/Henry1p2c-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/Henry1p2c-00056.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/henry1p2c -ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/henry1p2c.input -Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/henry.dgf")
dune_add_test(NAME henry1p2c
SOURCES henry1p2c.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/lecture/references/Henry1p2c-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/Henry1p2c-00056.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/henry1p2c -ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/henry1p2c.input -Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/henry.dgf")
# headers for installation and headercheck
install(FILES
......
add_input_file_links()
add_dumux_test(henry2p henry2p henry2p.cc
python ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
--script fuzzy
--files ${CMAKE_SOURCE_DIR}/lecture/references/Henry2p-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/Henry2p-01001.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/henry2p -ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/henry2p.input -Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/henry.dgf")
dune_add_test(NAME henry2p
SOURCES henry2p.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/lecture/references/Henry2p-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/Henry2p-01001.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/henry2p -ParameterFile ${CMAKE_CURRENT_SOURCE_DIR}/henry2p.input -Grid.File ${CMAKE_CURRENT_SOURCE_DIR}/grids/henry.dgf")
# headers for installation and headercheck
install(FILES
......
add_input_file_links()
add_dumux_test(mcwhorterexercise mcwhorterexercise mcwhorterexercise.cc
python ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
--script fuzzy
--files ${CMAKE_SOURCE_DIR}/lecture/references/McWhorter-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/McWhorter-00098.vtu
--command ./mcwhorterexercise)
dune_add_test(NAME mcwhorterexercise
SOURCES mcwhorterexercise.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/lecture/references/McWhorter-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/McWhorter-00098.vtu
--command ./mcwhorterexercise)
# headers for installation and headercheck
install(FILES
......
add_input_file_links()
# for the test only simulate one week
add_dumux_test(naplinfiltration3p naplinfiltration3p naplinfiltration3p.cc
python ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
--script fuzzy
--files ${CMAKE_SOURCE_DIR}/lecture/references/naplinfiltration3p-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/naplinfiltration3p-00003.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/naplinfiltration3p -TimeLoop.TEnd 604800 -TimeLoop.EpisodeLength 302400")
dune_add_test(NAME naplinfiltration3p
SOURCES naplinfiltration3p.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/lecture/references/naplinfiltration3p-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/naplinfiltration3p-00003.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/naplinfiltration3p -TimeLoop.TEnd 604800 -TimeLoop.EpisodeLength 302400")
# headers for installation and headercheck
install(FILES
......
add_input_file_links()
# for the test only simulate one week
add_dumux_test(naplinfiltration3p3c naplinfiltration3p3c naplinfiltration3p3c.cc
python ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
--script fuzzy
dune_add_test(NAME naplinfiltration3p3c
SOURCES naplinfiltration3p3c.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/lecture/references/naplinfiltration3p3c-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/naplinfiltration3p3c-00003.vtu
--zeroThreshold {"Sn":5e-7,"x^mesitylene_g":1e-8,"x^mesitylene_n":1e-5,"x^mesitylene_w":5e-11}
......
add_input_file_links(remediationscenariosexercise.input)
dune_add_test(NAME remediationscenariosexercise
SOURCES remediationscenariosexercise.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/lecture/references/remediation-steam-reference.vtu
SOURCES remediationscenariosexercise.cc
COMMAND ${dumux_INCLUDE_DIRS}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/lecture/references/remediation-steam-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/remediation-steam-00018.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/remediationscenariosexercise -TimeLoop.DtInitial 40 -TimeLoop.TEnd 2000 -TimeLoop.MaxTimeStepSize 50")
--command "${CMAKE_CURRENT_BINARY_DIR}/remediationscenariosexercise -TimeLoop.DtInitial 40 -TimeLoop.TEnd 2000 -TimeLoop.MaxTimeStepSize 50")
# headers for installation and headercheck
install(FILES
......
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