diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2021-12-10 05:06:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-10 05:06:53 (GMT) |
commit | 5580d7ec815e506370c4b1d68fc5ed089442e15d (patch) | |
tree | 5416be32e3251eeb809c1f16781d3e22644536f2 /test/testvdsswmr.sh.in | |
parent | 364d8cc3e749bcee4486897b6703f9ac7a303225 (diff) | |
download | hdf5-5580d7ec815e506370c4b1d68fc5ed089442e15d.zip hdf5-5580d7ec815e506370c4b1d68fc5ed089442e15d.tar.gz hdf5-5580d7ec815e506370c4b1d68fc5ed089442e15d.tar.bz2 |
Fix directory variable in shell scripts (#1273)
* Fix testswmr scripts with utils/test variable
* Change format of configure var assignment
* quote the variable value in configure
* Use sh.in expected var pattern
* Only ref builddir in script
* Create vars for utils/test and test as H5_<path>_BUILDDIR
* Use abs_top_builddir in test scripts
* Change script var to make it easier to read.
* Use @abs_top_builddir@ directly in paths
* Correct typos/comment
Diffstat (limited to 'test/testvdsswmr.sh.in')
-rw-r--r-- | test/testvdsswmr.sh.in | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/test/testvdsswmr.sh.in b/test/testvdsswmr.sh.in index 9ca3689..399fdef 100644 --- a/test/testvdsswmr.sh.in +++ b/test/testvdsswmr.sh.in @@ -17,8 +17,8 @@ # Dana Robinson, November 2015 srcdir=@srcdir@ -bindir=@bindir@ -testdir=@testdir@ +utils_testdir=@abs_top_builddir@/@H5_UTILS_TEST_BUILDDIR@ +testdir=@abs_top_builddir@/@H5_TEST_BUILDDIR@ ############################################################################### ## test parameters @@ -32,9 +32,9 @@ nerrors=0 ## definitions for message file to coordinate test runs ############################################################################### WRITER_MESSAGE=SWMR_WRITER_MESSAGE # The message file created by writer that the open is complete - # This should be the same as the define in "$bindir/swmr_common.h" + # This should be the same as the define in "test/swmr_common.h" MESSAGE_TIMEOUT=300 # Message timeout length in secs - # This should be the same as the define in "./h5test.h" + # This should be the same as the define in "test/h5test.h" ############################################################################### ## short hands and function definitions @@ -80,24 +80,10 @@ WAIT_MESSAGE() { ############################################################################### ## Main ############################################################################### -# 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. -$bindir/swmr_check_compat_vfd +$utils_testdir/swmr_check_compat_vfd rc=$? if [ $rc -ne 0 ] ; then echo |