diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2018-12-31 13:04:30 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2018-12-31 13:04:30 (GMT) |
commit | 4faca62679ef0850794934b31a091c1f079aca0c (patch) | |
tree | 6ba260a8b6e64f5f6e16f469bbcd04b85a13fdf2 /testpar | |
parent | a3faa926536712804fd079b65bf233458f2abac7 (diff) | |
download | hdf5-4faca62679ef0850794934b31a091c1f079aca0c.zip hdf5-4faca62679ef0850794934b31a091c1f079aca0c.tar.gz hdf5-4faca62679ef0850794934b31a091c1f079aca0c.tar.bz2 |
Eliminated the need for a separate script variable.
Diffstat (limited to 'testpar')
-rw-r--r-- | testpar/testpflush.sh.in | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/testpar/testpflush.sh.in b/testpar/testpflush.sh.in index f2ce029..02f0e26 100644 --- a/testpar/testpflush.sh.in +++ b/testpar/testpflush.sh.in @@ -32,6 +32,17 @@ if test -z "$srcdir"; then srcdir=. fi +# Turn the $$ we use to avoid Autotools munging into $ +# +# Allowing $$ to substitute in both the RUNPARALLEL string and the +# regexp is intentional. There doesn't seem to be a way around +# this using quote shenanigans. The downside is that there is a remote +# chance that the shell's pid will match a number in the RUNPARALLEL +# variable, but that seems less likely to cause problems than expecting +# library builders to specify two almost identical versions of the +# RUNPARALLEL command, one for use in scripts and one via Makefiles. +RUNPARALLELSCRIPT=`echo "@RUNPARALLEL@" | sed "s/$$/\$/g"` + # ========================================== # Run the first parallel flush test program # (note that we ignore any errors here) @@ -41,7 +52,7 @@ echo "You may see complaints from mpiexec et al. that not all processes" echo "called MPI_Finalize(). This is an intended characteristic of the" echo "test and should not be considered an error." echo "********************************************************************" -@RUNPARALLELSCRIPT@ ./t_pflush1 +eval ${RUNPARALLELSCRIPT} ./t_pflush1 # =========================================== @@ -49,5 +60,5 @@ echo "********************************************************************" # The return code of this call is the return # code of the script. # =========================================== -@RUNPARALLELSCRIPT@ ./t_pflush2 +eval ${RUNPARALLELSCRIPT} ./t_pflush2 |