Skip to content

Commit

Permalink
now ncint tests repect WITH_MPIEXEC
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Aug 26, 2020
1 parent 181373a commit 151affd
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/a3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
export PATH="/home/runner/openmpi/bin:$PATH"
export CC=/home/runner/openmpi/bin/mpicc
autoreconf -i
./configure --with-mpiexec='mpiexec --oversubscribe'
./configure --with-mpiexec='mpiexec --oversubscribe' --enable-netcdf-integration
which mpiexec
make check
- name: cmake build
Expand Down
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,8 @@ AC_CONFIG_FILES([tests/general/pio_tutil.F90:tests/general/util/pio_tutil.F90])

# The user may have changed the MPIEXEC for these test scripts.
AC_CONFIG_FILES([tests/cunit/run_tests.sh], [chmod ugo+x tests/cunit/run_tests.sh])
AC_CONFIG_FILES([tests/ncint/run_tests.sh], [chmod ugo+x tests/ncint/run_tests.sh])
AC_CONFIG_FILES([tests/ncint/run_perf.sh], [chmod ugo+x tests/ncint/run_perf.sh])
AC_CONFIG_FILES([examples/c/run_tests.sh], [chmod ugo+x examples/c/run_tests.sh])

# Args:
Expand Down
4 changes: 3 additions & 1 deletion tests/ncint/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ TESTS = run_tests.sh run_perf.sh
endif # RUN_TESTS

# Distribute the test script.
EXTRA_DIST = run_tests.sh run_perf.sh
EXTRA_DIST = run_tests.sh.in run_perf.sh.in

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

DISTCLEANFILES = run_tests.sh run_perf.sh
2 changes: 1 addition & 1 deletion tests/ncint/run_perf.sh → tests/ncint/run_perf.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ for TEST in $PIO_TESTS
do
success1=false
echo "running ${TEST}"
mpiexec -n 4 ./${TEST} && success1=true
@WITH_MPIEXEC@ -n 4 ./${TEST} && success1=true
if test $success1 = false; then
break
fi
Expand Down
4 changes: 2 additions & 2 deletions tests/ncint/run_tests.sh → tests/ncint/run_tests.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ for TEST in $PIO_TESTS
do
success1=false
echo "running ${TEST}"
mpiexec -n 4 ./${TEST} && success1=true
@WITH_MPIEXEC@ -n 4 ./${TEST} && success1=true
if test $success1 = false; then
break
fi
Expand All @@ -30,7 +30,7 @@ done
# do
# success2=false
# echo "running ${TEST}"
# mpiexec -n 8 ./${TEST} && success2=true
# @WITH_MPIEXEC@ -n 8 ./${TEST} && success2=true
# if test $success2 = false; then
# break
# fi
Expand Down

0 comments on commit 151affd

Please sign in to comment.