forked from ESMCI/cime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding run_tests.sh script in fncint test directory
- Loading branch information
1 parent
116f7de
commit e03d43f
Showing
3 changed files
with
48 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/sh | ||
# This is a test script for PIO. | ||
# Ed Hartnett | ||
|
||
# Stop execution of script if error is returned. | ||
set -e | ||
|
||
# Stop loop if ctrl-c is pressed. | ||
trap exit INT TERM | ||
|
||
printf 'running Fortran tests for PIO netCDF integration...\n' | ||
|
||
PIO_TESTS='ftst_pio' | ||
|
||
success1=true | ||
for TEST in $PIO_TESTS | ||
do | ||
success1=false | ||
echo "running ${TEST}" | ||
mpiexec -n 4 ./${TEST} && success1=true | ||
if test $success1 = false; then | ||
break | ||
fi | ||
done | ||
|
||
# Did we succeed? | ||
if test x$success1 = xtrue; then | ||
exit 0 | ||
fi | ||
exit 1 |