Skip to content

Commit

Permalink
converting more tests to use new --with-mpiexec option
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Aug 25, 2020
1 parent 2af2aeb commit dc8275d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion examples/c/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ TESTS = run_tests.sh
endif # RUN_TESTS

# Distribute the test script.
EXTRA_DIST = run_tests.sh CMakeLists.txt example2.c
EXTRA_DIST = run_tests.sh.in CMakeLists.txt example2.c

# Clean up files produced during testing.
CLEANFILES = *.nc *.log *.clog2 *.slog2

DISTCLEANFILES = run_tests.sh
4 changes: 2 additions & 2 deletions examples/c/run_tests.sh → examples/c/run_tests.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ for EXAMPLE in $PIO_EXAMPLES
do
success1=false
echo "running ${EXAMPLE}"
mpiexec -n 4 ./${EXAMPLE} && success1=true
@MPIEXEC@ -n 4 ./${EXAMPLE} && success1=true
if test $success1 = false; then
break
fi
Expand All @@ -29,7 +29,7 @@ for EXAMPLE in $PIO_EXAMPLES_16
do
success2=false
echo "running ${EXAMPLE}"
mpiexec -n 16 ./${EXAMPLE} && success2=true
@MPIEXEC@ -n 16 ./${EXAMPLE} && success2=true
if test $success2 = false; then
break
fi
Expand Down

0 comments on commit dc8275d

Please sign in to comment.