diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2021-10-21 21:09:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-21 21:09:09 (GMT) |
commit | 25ef191f433f0b90cd691d6481e6259ef7f5bc65 (patch) | |
tree | 7d848a023f120fa1ba81caddf998df2c12af2fb8 /test/testflushrefresh.sh.in | |
parent | 9ad1d9073c2750d7675ef7296e6ad80d50fbdc0f (diff) | |
download | hdf5-25ef191f433f0b90cd691d6481e6259ef7f5bc65.zip hdf5-25ef191f433f0b90cd691d6481e6259ef7f5bc65.tar.gz hdf5-25ef191f433f0b90cd691d6481e6259ef7f5bc65.tar.bz2 |
1.12 Merge Move test utilities to utils/test folder #1109 (#1110)
* Merge Move test utilities to utils/test folder #1109
* Merge Correct shell tests and c++ flag warning
* Fix typo
Diffstat (limited to 'test/testflushrefresh.sh.in')
-rw-r--r-- | test/testflushrefresh.sh.in | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/test/testflushrefresh.sh.in b/test/testflushrefresh.sh.in index 83685e8..3c7f13d 100644 --- a/test/testflushrefresh.sh.in +++ b/test/testflushrefresh.sh.in @@ -58,14 +58,28 @@ fi ############################################################################### ## Main ############################################################################### +srcdir=@srcdir@ +bindir=@bindir@ +testdir=@testdir@ + # The build (current) directory might be different than the source directory. if test -z "$srcdir"; then srcdir=. fi +# If the bindir directory is not set just use current (.). +if test -z "$bindir"; then + bindir=. +fi + +# If the testdir directory is not set just use current (.). +if test -z "$testdir"; then + testdir=. +fi + # Check to see if the VFD specified by the HDF5_DRIVER environment variable # supports SWMR. -./swmr_check_compat_vfd +$bindir/swmr_check_compat_vfd rc=$? if [ $rc -ne 0 ] ; then echo @@ -83,7 +97,7 @@ fi # the test. Running each of these tests in its own directory should eliminate # the problem. mkdir -p flushrefresh_test -cp flushrefresh flushrefresh_test +cp $bindir/flushrefresh flushrefresh_test # With the --disable-shared option, flushrefresh is built in the test directory, # otherwise it is in test/.libs with a wrapper script named flushrefresh in @@ -118,7 +132,7 @@ fi # ======================== # Launch the Test Program. # ======================== -./flushrefresh & +$testdir/flushrefresh & pid_main=$! # ======================================= @@ -155,7 +169,7 @@ until [ $verification_done -eq 1 ]; do verification_done=1 echo "all flush verification complete" > $endsignal else - ./flushrefresh $param1 $param2 + $testdir/flushrefresh $param1 $param2 # Check for core dump if [ $? -gt 0 ]; then @@ -200,7 +214,7 @@ if [ $timedout -eq 0 ]; then verification_done=2 echo "all refresh verification complete" > $endsignal else - ./flushrefresh $param1 + $testdir/flushrefresh $param1 # Check for core dump if [ $? -gt 0 ]; then |