Skip to content

Commit

Permalink
Update the expected output for two failing tests
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 18, 2024
1 parent d540a10 commit 04691e3
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 13 deletions.
6 changes: 4 additions & 2 deletions components/io-libs/hdf5/SPECS/hdf5.spec
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ URL: http://www.hdfgroup.org/HDF5
Source0: https://github.com/HDFGroup/%{pname}/archive/refs/tags/%{pname}_%{version}.tar.gz

BuildRequires: zlib-devel make
BuildRequires: perl(File::Compare)
BuildRequires: perl(File::Copy)

%if "%{compiler_family}" == "intel"
BuildRequires: libtool%{PROJ_DELIM}
Expand Down Expand Up @@ -68,8 +70,8 @@ autoreconf -if
sed -e 's/NO_SYMBOLS_CFLAGS="-Wl,-s"/NO_SYMBOLS_CFLAGS=/g' -i config/intel-flags
sed -e 's/NO_SYMBOLS_CFLAGS="-Wl,-s"/NO_SYMBOLS_CFLAGS=/g' -i config/intel-cxxflags
# delete special flags no longer available
echo "" > config/intel-warnings/18
sed '/-Wp64/d' -i config/intel-warnings/15
echo "" > config/intel-warnings/classic/18
sed '/-Wp64/d' -i config/intel-warnings/classic/15
%endif

./configure --prefix=%{install_path} \
Expand Down
6 changes: 6 additions & 0 deletions tests/libs/hdf5/test-env-variables-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 All @@ -153,6 +157,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 @@ -161,6 +166,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-env-variables-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
11 changes: 9 additions & 2 deletions tests/libs/hdf5/test-env-variables-new/C/H5T/test.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ do
if test $status -ne 0
then
echo " FAILED!"
diff -u tmp.test $srcdir/testfiles/$H5_LIBVER_DIR/$fname.tst > $fname.tst.diff.log
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 @@ -77,7 +77,7 @@ do
if test $status -ne 0
then
echo " FAILED!"
diff -u tmp.test $srcdir/testfiles/$H5_LIBVER_DIR/$fname.ddl > $fname.ddl.diff.log
diff -u $srcdir/testfiles/$H5_LIBVER_DIR/$fname.ddl tmp.test > $fname.ddl.diff.log
else
echo " Passed"
fi
Expand Down Expand Up @@ -117,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 @@ -125,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 @@ -140,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 @@ -148,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 @@ -163,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 @@ -171,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 @@ -186,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
16 changes: 11 additions & 5 deletions tests/libs/hdf5/test-env-variables-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`
echo " Passed"
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-env-variables-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
Loading

0 comments on commit 04691e3

Please sign in to comment.