diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2021-08-20 17:52:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-20 17:52:50 (GMT) |
commit | 910b83fbdff6ac45f48b801b71f6db856be3c6b2 (patch) | |
tree | e0c93a6a35c546253932691daad974c51f4a844b /test/test_usecases.sh.in | |
parent | 1080a22b8ae54c72744d6b6c940ac0b8c992c24c (diff) | |
download | hdf5-910b83fbdff6ac45f48b801b71f6db856be3c6b2.zip hdf5-910b83fbdff6ac45f48b801b71f6db856be3c6b2.tar.gz hdf5-910b83fbdff6ac45f48b801b71f6db856be3c6b2.tar.bz2 |
Merge CMake should use the output dir programs for shell scripts #928 (#929)
Diffstat (limited to 'test/test_usecases.sh.in')
-rw-r--r-- | test/test_usecases.sh.in | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/test/test_usecases.sh.in b/test/test_usecases.sh.in index bb53697..eaa875e 100644 --- a/test/test_usecases.sh.in +++ b/test/test_usecases.sh.in @@ -22,10 +22,16 @@ # exit codes are okay (0). srcdir=@srcdir@ +bindir=@bindir@ + +# If the bindir directory is not set just use current (.). +if test -z "$bindir"; then + bindir=. +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 != 0 ]] ; then echo @@ -85,7 +91,7 @@ TOOLTEST() { # Run test. TESTING $program $@ ( - $RUNSERIAL ./$program "$@" + $RUNSERIAL $bindir/$program "$@" ) >$actual 2>$actual_err exit_code=$? @@ -178,14 +184,14 @@ fi # main body for p in $USECASES_PROGRAMS; do - TOOLTEST ./$p - TOOLTEST ./$p -z 256 + TOOLTEST $p + TOOLTEST $p -z 256 tmpfile=/tmp/datatfile.$$ - TOOLTEST ./$p -f $tmpfile; rm -f $tmpfile - TOOLTEST ./$p -l w - TOOLTEST ./$p -l r + TOOLTEST $p -f $tmpfile; rm -f $tmpfile + TOOLTEST $p -l w + TOOLTEST $p -l r # use case 1.9, testing with multi-planes chunks - TOOLTEST ./$p -z 256 -y 5 # 5 planes chunks + TOOLTEST $p -z 256 -y 5 # 5 planes chunks # cleanup temp datafile if test -z "$HDF5_NOCLEANUP"; then rm -f $p.h5 |