From 6f29232adb77c75463e5c2d7e423f8bb729e7f20 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Wed, 28 Oct 2009 02:25:02 -0500 Subject: [svn-r17769] Bug 1264 fixed. Tests to verify the bug fixed are installed. Test: v1.8.4 passed all tests on Jam (default and with --disable-depreacted-symbol), Amani (v16API), Linew (default). This should be good for v1.8 too. --- examples/testh5cc.sh.in | 90 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 89 insertions(+), 1 deletion(-) diff --git a/examples/testh5cc.sh.in b/examples/testh5cc.sh.in index 119d86a..818375b 100755 --- a/examples/testh5cc.sh.in +++ b/examples/testh5cc.sh.in @@ -19,6 +19,8 @@ # Modification: # Albert Cheng, 2008/9/27 # Added -shlib tests and verbose control. +# Albert Cheng, 2009/10/28 +# Added version compatibility tests. # # Initializations @@ -40,6 +42,8 @@ DIFF='diff -c' nerrors=0 verbose=${HDF5_VERBOSE:-1} # 0: none; 1: default; 2: chatty; 3: everything test $verbose -gt 2 && set -x +H5_NO_DEPRECATED_SYMBOLS=`grep '#define H5_NO_DEPRECATED_SYMBOLS ' ../src/H5pubconf.h` +H5_USE_16_API_DEFAULT=`grep '#define H5_USE_16_API_DEFAULT ' ../src/H5pubconf.h` # setup my machine information. myos=`uname -s` @@ -54,6 +58,10 @@ fi suffix=c # source file suffix hdf5main=${H5TOOL}_hdf5main.$suffix hdf5main_o=${H5TOOL}_hdf5main.o +v16main=${H5TOOL}_v16main.$suffix +v16main_o=${H5TOOL}_v16main.o +v18main=${H5TOOL}_v18main.$suffix +v18main_o=${H5TOOL}_v18main.o appmain=${H5TOOL}_appmain.$suffix appmain_o=${H5TOOL}_appmain.o prog1=${H5TOOL}_prog1.$suffix @@ -67,7 +75,7 @@ applib=libapp${H5TOOL}.a # Don't use the wildcard form of *.h5 as it will wipe out even *.h5 generated # by otehr test programs. This will cause a racing condition error when # parallel make (e.g., gmake -j 4) is used. -temp_SRC="$hdf5main $appmain $prog1 $prog2" +temp_SRC="$hdf5main $v16main $v18main $appmain $prog1 $prog2" temp_OBJ=`echo $temp_SRC | sed -e "s/\.${suffix}/.o/g"` temp_FILES="a.out $applib" @@ -139,6 +147,56 @@ main (void) } EOF +# Generate HDF5 v1.6 Main Program: +# This makes unique V1.6 API calls. +cat > $v16main < $v18main <