From 01448e6e55cb66e91387422ddc072f729aeaa354 Mon Sep 17 00:00:00 2001 From: Martin Tzvetanov Grigorov Date: Mon, 21 Oct 2024 09:36:22 +0300 Subject: [PATCH] hdf5: Log the diff for test-h5-wrappers-new/**/test.sh.in Signed-off-by: Martin Tzvetanov Grigorov --- .../hdf5/test-h5-wrappers-new/C/H5D/test.sh.in | 5 +++++ .../hdf5/test-h5-wrappers-new/C/H5G/test.sh.in | 10 ++++++++++ .../hdf5/test-h5-wrappers-new/C/H5T/test.sh.in | 9 +++++++++ .../C/H5T/testfiles/114/h5ex_t_vlen.ddl | 2 +- .../C/H5T/testfiles/114/h5ex_t_vlenatt.ddl | 2 +- .../test-h5-wrappers-new/FORTRAN/H5D/test.sh.in | 14 ++++++++++---- .../test-h5-wrappers-new/FORTRAN/H5G/test.sh.in | 5 +++++ .../test-h5-wrappers-new/FORTRAN/H5T/test.sh.in | 9 +++++++++ 8 files changed, 50 insertions(+), 6 deletions(-) diff --git a/tests/libs/hdf5/test-h5-wrappers-new/C/H5D/test.sh.in b/tests/libs/hdf5/test-h5-wrappers-new/C/H5D/test.sh.in index 5a2f0e17c0..9eb421a118 100755 --- a/tests/libs/hdf5/test-h5-wrappers-new/C/H5D/test.sh.in +++ b/tests/libs/hdf5/test-h5-wrappers-new/C/H5D/test.sh.in @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/tests/libs/hdf5/test-h5-wrappers-new/C/H5G/test.sh.in b/tests/libs/hdf5/test-h5-wrappers-new/C/H5G/test.sh.in index 2bd645c2e0..8c771b2d62 100755 --- a/tests/libs/hdf5/test-h5-wrappers-new/C/H5G/test.sh.in +++ b/tests/libs/hdf5/test-h5-wrappers-new/C/H5G/test.sh.in @@ -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 @@ -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 @@ -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 @@ -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 @@ -128,6 +132,7 @@ 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 @@ -135,6 +140,7 @@ else 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 @@ -142,6 +148,7 @@ else 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 @@ -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 @@ -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 @@ -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 diff --git a/tests/libs/hdf5/test-h5-wrappers-new/C/H5T/test.sh.in b/tests/libs/hdf5/test-h5-wrappers-new/C/H5T/test.sh.in index efffdb56df..6183399769 100755 --- a/tests/libs/hdf5/test-h5-wrappers-new/C/H5T/test.sh.in +++ b/tests/libs/hdf5/test-h5-wrappers-new/C/H5T/test.sh.in @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/tests/libs/hdf5/test-h5-wrappers-new/C/H5T/testfiles/114/h5ex_t_vlen.ddl b/tests/libs/hdf5/test-h5-wrappers-new/C/H5T/testfiles/114/h5ex_t_vlen.ddl index 53f48630b1..95b9c5a967 100644 --- a/tests/libs/hdf5/test-h5-wrappers-new/C/H5T/testfiles/114/h5ex_t_vlen.ddl +++ b/tests/libs/hdf5/test-h5-wrappers-new/C/H5T/testfiles/114/h5ex_t_vlen.ddl @@ -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) diff --git a/tests/libs/hdf5/test-h5-wrappers-new/C/H5T/testfiles/114/h5ex_t_vlenatt.ddl b/tests/libs/hdf5/test-h5-wrappers-new/C/H5T/testfiles/114/h5ex_t_vlenatt.ddl index a2b32e878c..80005dfd8b 100644 --- a/tests/libs/hdf5/test-h5-wrappers-new/C/H5T/testfiles/114/h5ex_t_vlenatt.ddl +++ b/tests/libs/hdf5/test-h5-wrappers-new/C/H5T/testfiles/114/h5ex_t_vlenatt.ddl @@ -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) diff --git a/tests/libs/hdf5/test-h5-wrappers-new/FORTRAN/H5D/test.sh.in b/tests/libs/hdf5/test-h5-wrappers-new/FORTRAN/H5D/test.sh.in index 91f13a0791..03bf80e6f9 100755 --- a/tests/libs/hdf5/test-h5-wrappers-new/FORTRAN/H5D/test.sh.in +++ b/tests/libs/hdf5/test-h5-wrappers-new/FORTRAN/H5D/test.sh.in @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/tests/libs/hdf5/test-h5-wrappers-new/FORTRAN/H5G/test.sh.in b/tests/libs/hdf5/test-h5-wrappers-new/FORTRAN/H5G/test.sh.in index 52f99f210c..a8dc368eb6 100755 --- a/tests/libs/hdf5/test-h5-wrappers-new/FORTRAN/H5G/test.sh.in +++ b/tests/libs/hdf5/test-h5-wrappers-new/FORTRAN/H5G/test.sh.in @@ -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 @@ -69,6 +70,7 @@ 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 @@ -76,6 +78,7 @@ else 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 @@ -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 @@ -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 diff --git a/tests/libs/hdf5/test-h5-wrappers-new/FORTRAN/H5T/test.sh.in b/tests/libs/hdf5/test-h5-wrappers-new/FORTRAN/H5T/test.sh.in index 044968f593..16b3262b33 100755 --- a/tests/libs/hdf5/test-h5-wrappers-new/FORTRAN/H5T/test.sh.in +++ b/tests/libs/hdf5/test-h5-wrappers-new/FORTRAN/H5T/test.sh.in @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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