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.
now running tst_pio_udf with mpiexec on 4 processors
- Loading branch information
1 parent
0734bad
commit 218f8e2
Showing
4 changed files
with
99 additions
and
37 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,43 @@ | ||
#!/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 PIO tests...\n' | ||
|
||
PIO_TESTS='tst_pio_udf' | ||
|
||
success1=true | ||
success2=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 | ||
|
||
# PIO_TESTS_8='test_async_multi2 test_async_manyproc' | ||
|
||
# for TEST in $PIO_TESTS_8 | ||
# do | ||
# success2=false | ||
# echo "running ${TEST}" | ||
# mpiexec -n 8 ./${TEST} && success2=true | ||
# if test $success2 = false; then | ||
# break | ||
# fi | ||
# done | ||
|
||
# Did we succeed? | ||
if test x$success1 = xtrue -a x$success2 = xtrue; then | ||
exit 0 | ||
fi | ||
exit 1 |
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