Skip to content

Commit

Permalink
Fix tests that run ElmerSolver multiple times.
Browse files Browse the repository at this point in the history
Use CMake macro EXECUTE_ELMER_SOLVER that sets up necessary environment
variables before executing the ElmerSolver binary.
  • Loading branch information
mmuetzel committed Oct 14, 2024
1 parent bb9ff57 commit 4eb95f4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fem/tests/InternalPartitioning/runtest.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include(test_macros)
execute_process(COMMAND ${ELMERGRID_BIN} 1 2 angle)
execute_process(COMMAND ${ELMERSOLVER_BIN} part.sif)
EXECUTE_ELMER_SOLVER(part.sif)
RUN_ELMER_TEST()
2 changes: 1 addition & 1 deletion fem/tests/InternalPartitioning2/runtest.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include(test_macros)
execute_process(COMMAND ${ELMERGRID_BIN} 1 2 angle)
execute_process(COMMAND ${ELMERSOLVER_BIN} part.sif)
EXECUTE_ELMER_SOLVER(part.sif)
RUN_ELMER_TEST()
2 changes: 1 addition & 1 deletion fem/tests/InternalPartitioning3/runtest.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include(test_macros)
execute_process(COMMAND ${ELMERGRID_BIN} 1 2 angle)
execute_process(COMMAND ${ELMERSOLVER_BIN} part.sif)
EXECUTE_ELMER_SOLVER(part.sif)
RUN_ELMER_TEST()
2 changes: 1 addition & 1 deletion fem/tests/mgdyn_steady_quad_extruded_restart/runtest.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include(test_macros)
execute_process(COMMAND ${ELMERGRID_BIN} 1 2 quads.grd -nooverwrite)
execute_process(COMMAND ${ELMERSOLVER_BIN} case2d.sif)
EXECUTE_ELMER_SOLVER(case2d.sif)
RUN_ELMER_TEST()

0 comments on commit 4eb95f4

Please sign in to comment.