summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2011-10-04 08:16:21 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2011-10-04 08:16:21 (GMT)
commitf8e83e11c6d3fc13b369a425c240825935c17cf9 (patch)
tree99c3c9a8b2a921907b72c995ec5e4e4fefa6ca5e /tools
parent319ded76cfb0adc4de8774c9ca379d1775ee18a8 (diff)
downloadhdf5-f8e83e11c6d3fc13b369a425c240825935c17cf9.zip
hdf5-f8e83e11c6d3fc13b369a425c240825935c17cf9.tar.gz
hdf5-f8e83e11c6d3fc13b369a425c240825935c17cf9.tar.bz2
[svn-r21458] Problem:
Function TOOLTEST_OUTPUT does not filter the extra system messages sent to stdout or stderr, thus causing output mismatched with expected output. Solution: Added STDOUT_FILTER and STDERR_FILTER to filter them out. Tested: Tested LLNL uDawn (Blue-Gene cluster), for serial mode only.
Diffstat (limited to 'tools')
-rw-r--r--tools/h5jam/testh5jam.sh.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/h5jam/testh5jam.sh.in b/tools/h5jam/testh5jam.sh.in
index 14b381c..f359926 100644
--- a/tools/h5jam/testh5jam.sh.in
+++ b/tools/h5jam/testh5jam.sh.in
@@ -86,6 +86,9 @@ $SRC_H5JAM_TESTFILES/h5unjam-help.txt
$SRC_H5JAM_TESTFILES/h5jam-ub-nohdf5.txt
"
+# Source in the output filter function definitions.
+. $srcdir/../../bin/output_filter.sh
+
#
# copy test files and expected output files from source dirs to test dir
#
@@ -462,6 +465,8 @@ TOOLTEST_OUTPUT() {
expect="$TESTDIR/$1"
actual="$TESTDIR/`basename $1 .ls`.out"
actual_err="$TESTDIR/`basename $1 .ls`.err"
+ actual_sav=${actual}-sav
+ actual_err_sav=${actual_err}-sav
shift
retvalexpect=$1
shift
@@ -472,6 +477,11 @@ TOOLTEST_OUTPUT() {
$TOOLCMD "$@"
) >$actual 2>$actual_err
+ # save actual and actual_err in case they are needed later.
+ cp $actual $actual_sav
+ STDOUT_FILTER $actual
+ cp $actual_err $actual_err_sav
+ STDERR_FILTER $actual_err
# combine stderr to stdout for output compare
cat $actual_err >> $actual