Skip to content

Commit

Permalink
hdf5: Log the diff for test-h5-wrappers-new/**/test.sh.in
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g committed Oct 21, 2024
1 parent 04691e3 commit 01448e6
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 6 deletions.
5 changes: 5 additions & 0 deletions tests/libs/hdf5/test-h5-wrappers-new/C/H5D/test.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ do
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.tst tmp.test > $fname.tst.diff.log
else
dumpout $fname.h5 >tmp.test
rm -f $fname.h5
Expand All @@ -84,6 +85,7 @@ do
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.ddl tmp.test > $fname.ddl.diff.log
else
echo " Passed"
fi
Expand Down Expand Up @@ -120,6 +122,7 @@ else
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.tst tmp.test > $fname.tst.diff.log
else
dumpout $fname.h5 >tmp.test
rm -f $fname.h5
Expand All @@ -128,6 +131,7 @@ else
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname$USE_ALT.ddl tmp.test > $fname$USE_ALT.ddl.diff.log
else
echo " Passed"
fi
Expand Down Expand Up @@ -161,6 +165,7 @@ else
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.ddl tmp.test > $fname.ddl.diff.log
else
echo " Passed"
fi
Expand Down
10 changes: 10 additions & 0 deletions tests/libs/hdf5/test-h5-wrappers-new/C/H5G/test.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ status=$?
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/h5ex_g_create.ddl tmp.test > h5ex_g_create.ddl.diff.log
else
echo " Passed"
fi
Expand All @@ -75,6 +76,7 @@ status=$?
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/h5ex_g_iterate.tst tmp.test > h5ex_g_iterate.tst.diff.log
else
echo " Passed"
fi
Expand All @@ -95,6 +97,7 @@ status=$?
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/h5ex_g_traverse.tst tmp.test > h5ex_g_traverse.tst.diff.log
else
echo " Passed"
fi
Expand All @@ -115,6 +118,7 @@ status=$?
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/h5ex_g_visit.tst tmp.test > h5ex_g_visit.tst.diff.log
else
echo " Passed"
fi
Expand All @@ -128,20 +132,23 @@ status=$?
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/h5ex_g_compact.tst tmp.test > h5ex_g_compact.tst.diff.log
else
dumpout h5ex_g_compact1.h5 >tmp.test
cmp -s tmp.test $srcdir/testfiles/$H5_LIBVER_DIR/h5ex_g_compact1.ddl
status=$?
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/h5ex_g_compact1.ddl tmp.test > h5ex_g_compact1.ddl.diff.log
else
dumpout h5ex_g_compact2.h5 >tmp.test
cmp -s tmp.test $srcdir/testfiles/$H5_LIBVER_DIR/h5ex_g_compact2.ddl
status=$?
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/h5ex_g_compact2.ddl tmp.test > h5ex_g_compact2.ddl.diff.log
else
echo " Passed"
fi
Expand All @@ -159,6 +166,7 @@ status=$?
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/h5ex_g_phase.tst tmp.test > h5ex_g_phase.tst.diff.log
else
echo " Passed"
fi
Expand All @@ -173,6 +181,7 @@ status=$?
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/h5ex_g_corder.tst tmp.test > h5ex_g_corder.tst.diff.log
else
echo " Passed"
fi
Expand All @@ -187,6 +196,7 @@ status=$?
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/h5ex_g_intermediate.tst tmp.test > h5ex_g_intermediate.tst.diff.log
else
echo " Passed"
fi
Expand Down
9 changes: 9 additions & 0 deletions tests/libs/hdf5/test-h5-wrappers-new/C/H5T/test.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ do
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.tst tmp.test > $fname.tst.diff.log
else
dumpout $fname.h5 >tmp.test
rm -f $fname.h5
Expand All @@ -76,6 +77,7 @@ do
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.ddl tmp.test > $fname.ddl.diff.log
else
echo " Passed"
fi
Expand Down Expand Up @@ -115,6 +117,7 @@ do
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.tst tmp.test > $fname.tst.diff.log
else
dumpout $fname.h5 >tmp.test
rm -f $fname.h5
Expand All @@ -123,6 +126,7 @@ do
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname$USE_ALT.ddl tmp.test > $fname$USE_ALT.ddl.diff.log
else
echo " Passed"
fi
Expand All @@ -138,6 +142,7 @@ status=$?
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.tst tmp.test > $fname.tst.diff.log
else
dumpout -n $fname.h5 >tmp.test
rm -f $fname.h5
Expand All @@ -146,6 +151,7 @@ else
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.ddl tmp.test > $fname.ddl.diff.log
else
echo " Passed"
fi
Expand All @@ -161,6 +167,7 @@ status=$?
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.tst tmp.test > $fname.tst.diff.log
else
dumpout -n $fname.h5 >tmp.test
rm -f $fname.h5
Expand All @@ -169,6 +176,7 @@ else
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.ddl tmp.test > $fname.ddl.diff.log
else
echo " Passed"
fi
Expand All @@ -184,6 +192,7 @@ status=$?
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.tst tmp.test > $fname.tst.diff.log
else
echo " Passed"
fi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
HDF5 "h5ex_t_vlen.h5" {
GROUP "/" {
DATASET "DS1" {
DATATYPE H5T_VLEN { H5T_STD_I32LE}
DATATYPE H5T_VLEN { H5T_STD_I32LE }
DATASPACE SIMPLE { ( 2 ) / ( 2 ) }
DATA {
(0): (3, 2, 1), (1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ GROUP "/" {
DATA {
}
ATTRIBUTE "A1" {
DATATYPE H5T_VLEN { H5T_STD_I32LE}
DATATYPE H5T_VLEN { H5T_STD_I32LE }
DATASPACE SIMPLE { ( 2 ) / ( 2 ) }
DATA {
(0): (3, 2, 1), (1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144)
Expand Down
14 changes: 10 additions & 4 deletions tests/libs/hdf5/test-h5-wrappers-new/FORTRAN/H5D/test.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ do
if test $status -ne 0
then
echo " FAILED!"
return_val=`expr $status + $return_val`
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.tst tmp.test > $fname.tst.diff.log
return_val=`expr $status + $return_val`
else
dumpout $fname.h5 >tmp.test
rm -f $fname.h5
Expand All @@ -125,14 +126,15 @@ do
if test $NumOfLines -gt $NumOfFinds
then
echo " FAILED!"
return_val=`expr $status + $return_val`
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.ddl tmp.test > $fname.ddl.diff.log
return_val=`expr $status + $return_val`
else
echo " *Inconsequential differance* ... Passed"
return_val=`expr $return_val`
return_val=`expr $return_val`
fi
else
echo " Passed"
return_val=`expr $status + $return_val`
return_val=`expr $status + $return_val`
fi
fi
fi
Expand Down Expand Up @@ -166,6 +168,7 @@ else
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.tst tmp.test > $fname.tst.diff.log
else
dumpout $fname.h5 >tmp.test
rm -f $fname.h5
Expand All @@ -174,6 +177,7 @@ else
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname$USE_ALT.ddl tmp.test > $fname$USE_ALT.ddl.diff.log
else
echo " Passed"
fi
Expand All @@ -199,6 +203,7 @@ else
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.tst tmp.test > $fname.tst.diff.log
else
dumpout -n $fname.h5 >tmp.test
rm -f $fname.h5
Expand All @@ -207,6 +212,7 @@ else
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.ddl tmp.test > $fname.ddl.diff.log
else
echo " Passed"
fi
Expand Down
5 changes: 5 additions & 0 deletions tests/libs/hdf5/test-h5-wrappers-new/FORTRAN/H5G/test.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ status=$?
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/h5ex_g_create.ddl tmp.test > h5ex_g_create.ddl.diff.log
else
echo " Passed"
fi
Expand All @@ -69,13 +70,15 @@ status=$?
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/h5ex_g_compact1.ddl tmp.test > h5ex_g_compact1.ddl.diff.log
else
dumpout h5ex_g_compact2.h5 >tmp.test
cmp -s tmp.test $srcdir/testfiles/$H5_LIBVER_DIR/h5ex_g_compact2.ddl
status=$?
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/h5ex_g_compact2.ddl tmp.test > h5ex_g_compact2.ddl.diff.log
else
echo " Passed"
fi
Expand All @@ -92,6 +95,7 @@ status=$?
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/h5ex_g_phase.tst tmp.test > h5ex_g_phase.tst.diff.log
else
echo " Passed"
fi
Expand All @@ -106,6 +110,7 @@ status=$?
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/h5ex_g_corder.tst tmp.test > h5ex_g_corder.tst.diff.log
else
echo " Passed"
fi
Expand Down
9 changes: 9 additions & 0 deletions tests/libs/hdf5/test-h5-wrappers-new/FORTRAN/H5T/test.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ do
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.tst tmp.test > $fname.tst.diff.log
else
dumpout $fname.h5 >tmp.test
rm -f $fname.h5
Expand All @@ -82,6 +83,7 @@ do
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.ddl tmp.test > $fname.ddl.diff.log
else
echo " Passed"
fi
Expand Down Expand Up @@ -124,6 +126,7 @@ do
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.tst tmp.test > $fname.tst.diff.log
else
dumpout $fname.h5 >tmp.test
rm -f $fname.h5
Expand All @@ -132,6 +135,7 @@ do
if test $status -ne 0
then
echo " FAILED!"
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname$USE_ALT.ddl tmp.test > $fname$USE_ALT.ddl.diff.log
else
echo " Passed"
fi
Expand All @@ -147,6 +151,7 @@ done
#if test $status -ne 0
#then
# echo " FAILED!"
# diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.tst tmp.test > $fname.tst.diff.log
#else
# dumpout -n $fname.h5 >tmp.test
#rm -f $fname.h5
Expand All @@ -155,6 +160,7 @@ done
#if test $status -ne 0
#then
# echo " FAILED!"
# diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.ddl tmp.test > $fname.ddl.diff.log
#else
# echo " Passed"
#fi
Expand All @@ -170,6 +176,7 @@ done
#if test $status -ne 0
#then
# echo " FAILED!"
# diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.tst tmp.test > $fname.tst.diff.log
#else
# dumpout -n $fname.h5 >tmp.test
#rm -f $fname.h5
Expand All @@ -178,6 +185,7 @@ done
#if test $status -ne 0
#then
# echo " FAILED!"
# diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.ddl tmp.test > $fname.ddl.diff.log
#else
# echo " Passed"
#fi
Expand All @@ -193,6 +201,7 @@ done
#if test $status -ne 0
#then
# echo " FAILED!"
# diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.test tmp.test > $fname.test.diff.log
#else
# echo " Passed"
#fi
Expand Down

0 comments on commit 01448e6

Please sign in to comment.