Skip to content

Commit

Permalink
Merge pull request ESMCI#1734 from NCAR/ejh_doc_fix
Browse files Browse the repository at this point in the history
fixing docs, cleanup of test workflow
  • Loading branch information
edwardhartnett authored Aug 26, 2020
2 parents e715d07 + 35742c6 commit 54ee841
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 22 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/a3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,17 @@ jobs:
make
sudo make install
popd
- name: autotools build
run: |
set -x
echo 'export PATH=/home/runner/openmpi/bin:$PATH' > .bashrc
source .bashrc
export PATH="/home/runner/openmpi/bin:$PATH"
export CC=/home/runner/openmpi/bin/mpicc
autoreconf -i
./configure --with-mpiexec='mpiexec --oversubscribe'
which mpiexec
make check
- name: cmake build
run: |
set -x
Expand All @@ -130,19 +141,6 @@ jobs:
make VERBOSE=1
make tests VERBOSE=1
ctest -VV
- name: autotools build
run: |
set -x
echo 'export PATH=/home/runner/openmpi/bin:$PATH' > .bashrc
echo $'alias mpiexec=\'mpiexec --oversubscribe\'' >> .bashrc
cat .bashrc
source .bashrc
export PATH="/home/runner/openmpi/bin:$PATH"
export CC=/home/runner/openmpi/bin/mpicc
autoreconf -i
./configure --with-mpiexec='mpiexec --oversubscribe'
which mpiexec
make check
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
10 changes: 5 additions & 5 deletions src/flib/pionfget_mod.F90.in
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ CONTAINS
!>
!! @public
!! @ingroup PIO_get_var
!! @brief Writes an netcdf attribute to a file
!! @brief Writes data to a file
!! @details
!! @param File @ref file_desc_t
!! @param vardesc @ref var_desc_t
Expand All @@ -228,7 +228,7 @@ CONTAINS
!>
!! @public
!! @ingroup PIO_get_var
!! @brief Writes an netcdf attribute to a file
!! @brief Gets data from a file
!! @details
!! @param File @ref file_desc_t
!! @param varid : The netcdf variable identifier
Expand Down Expand Up @@ -276,7 +276,7 @@ CONTAINS
!>
!! @public
!! @ingroup PIO_get_var
!! @brief Writes an netcdf attribute to a file
!! @brief Gets data from a file
!! @details
!! @param File @ref file_desc_t
!! @param vardesc @ref var_desc_t
Expand Down Expand Up @@ -316,7 +316,7 @@ CONTAINS
!>
!! @public
!! @ingroup PIO_get_var
!! @brief Writes an netcdf attribute to a file
!! @brief Gets data from a file
!! @details
!! @param File @ref file_desc_t
!! @param varid : The netcdf variable identifier
Expand Down Expand Up @@ -449,7 +449,7 @@ CONTAINS
!>
!! @public
!! @ingroup PIO_get_var
!! @brief Writes an netcdf attribute to a file
!! @brief Gets data from a file
!! @details
!! @param File @ref file_desc_t
!! @param vardesc @ref var_desc_t
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 54ee841

Please sign in to comment.