summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2004-04-14 15:50:42 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2004-04-14 15:50:42 (GMT)
commit2fac8dfcbc095338240c87b86fc91411b22de699 (patch)
tree26ec4c816b488bd8863e2b14de73a85b49cd4c99 /test
parentcf49b9682755096f6f591d4420d8f51a6ff8d69c (diff)
downloadhdf5-2fac8dfcbc095338240c87b86fc91411b22de699.zip
hdf5-2fac8dfcbc095338240c87b86fc91411b22de699.tar.gz
hdf5-2fac8dfcbc095338240c87b86fc91411b22de699.tar.bz2
[svn-r8351] Purpose: Bug fix
Description: This test script put executable program in hdf5/test/testfiles where output HDF5 file was created. It might cause conflict when multiple buildings happen. Platforms tested: RH 8(fuss)
Diffstat (limited to 'test')
-rw-r--r--test/testerror.sh15
1 files changed, 5 insertions, 10 deletions
diff --git a/test/testerror.sh b/test/testerror.sh
index 6184f4e..3c82728 100644
--- a/test/testerror.sh
+++ b/test/testerror.sh
@@ -44,24 +44,19 @@ TESTING() {
# non-zero value.
#
TEST() {
- TEST_ERR=$1 # The test name
- TEST_ERR_BIN=`pwd`/$TEST_ERR # The path of the test binary
-
expect1="$srcdir/testfiles/$1_1"
expect2="$srcdir/testfiles/$1_2"
- actual="./testfiles/`basename $1`.out"
- actual_err="./testfiles/`basename $1`.err"
- actual_ext="./testfiles/`basename $1`.ext"
- shift
+ actual="./`basename $1`.out"
+ actual_err="./`basename $1`.err"
+ actual_ext="./`basename $1`.ext"
# Run test.
TESTING $1
(
echo "#############################"
- echo "Expected output for $TEST_ERR"
+ echo "Expected output for $1"
echo "#############################"
- cd $srcdir/testfiles
- $RUNSERIAL $TEST_ERR_BIN
+ $RUNSERIAL $1
) >$actual 2>$actual_err
# Extract file name, line number, version and thread IDs because they may be different
sed -e 's/thread [0-9]*/thread (IDs)/' -e 's/: .*\.c /: (file name) /' -e 's/line [0-9]*/line (number)/' -e 's/[1-9]*\.[0-9]*\.[0-9]*/version (number)/' $actual_err > $actual_ext