xref: /phasta/phSolver/incompressible/test/CMakeLists.txt (revision cc72a73fd2b79f4dd0a850fa4af718cd73554811)
1macro(ic_serial_test name exe)
2  set(tname incompressible_${solver}_${name})
3  add_test( NAME ${tname} COMMAND ${exe} ${ARGN} )
4  set_tests_properties(${tname} PROPERTIES LABELS "phsolver_incompressible")
5endmacro(ic_serial_test)
6
7set(CDIR ${CASES}/incompressible)
8
9ic_serial_test(copyInpCfg
10  cp ${PHASTA_SOURCE_DIR}/phSolver/common/input.config ${CDIR})
11
12if(PHASTA_USE_SVLS)
13  set(solver svls)
14  ic_serial_test(solverInp ln -snf ${CDIR}/solver.inp.svls ${CDIR}/solver.inp)
15  include(testing.cmake)
16endif()
17
18set(solver leslib)
19ic_serial_test(solverInp ln -snf ${CDIR}/solver.inp.libles ${CDIR}/solver.inp)
20include(testing.cmake)
21