From 98fb2db938937a27d51e8bc8493e174572481d24 Mon Sep 17 00:00:00 2001 From: Elena Pourmal Date: Thu, 13 Dec 2007 13:17:02 -0500 Subject: [svn-r14340] Maintenance for VMS system: Skip one of the tests in flush2.c since it looks like VMS system flsuhes the file anyway (like on Winodws with DLLs) Renamed files family*.h5 that are used in backward compatibility testing to have only one '.' in a file name, otherwise VMS system becomes confused and test fails. Cleaned up the only test (Fortran multi-file test) that is failing on VMS (C counterpart passesa). Added new script to facilitate the build process on VMS Updated MANIFEST PLatforms tested: VMS server, kagiso and linew (minor changes) --- MANIFEST | 9 +++++---- fortran/test/tH5P.f90 | 6 ++++++ test/family_v1.6_00000.h5 | Bin 5120 -> 0 bytes test/family_v1.6_00001.h5 | Bin 5120 -> 0 bytes test/family_v1.6_00002.h5 | Bin 5120 -> 0 bytes test/family_v1.6_00003.h5 | Bin 4048 -> 0 bytes test/family_v16_00000.h5 | Bin 0 -> 5120 bytes test/family_v16_00001.h5 | Bin 0 -> 5120 bytes test/family_v16_00002.h5 | Bin 0 -> 5120 bytes test/family_v16_00003.h5 | Bin 0 -> 4048 bytes test/flush2.c | 6 ++++-- test/vfd.c | 4 ++-- vms/build.com | 34 ++++++++++++++++++++++++++++++++++ 13 files changed, 51 insertions(+), 8 deletions(-) delete mode 100644 test/family_v1.6_00000.h5 delete mode 100644 test/family_v1.6_00001.h5 delete mode 100644 test/family_v1.6_00002.h5 delete mode 100644 test/family_v1.6_00003.h5 create mode 100644 test/family_v16_00000.h5 create mode 100644 test/family_v16_00001.h5 create mode 100644 test/family_v16_00002.h5 create mode 100644 test/family_v16_00003.h5 create mode 100644 vms/build.com diff --git a/MANIFEST b/MANIFEST index 2d06204..136ee1a 100644 --- a/MANIFEST +++ b/MANIFEST @@ -749,10 +749,10 @@ ./test/external.c ./test/error_test.c ./test/err_compat.c -./test/family_v1.6_00000.h5 -./test/family_v1.6_00001.h5 -./test/family_v1.6_00002.h5 -./test/family_v1.6_00003.h5 +./test/family_v16_00000.h5 +./test/family_v16_00001.h5 +./test/family_v16_00002.h5 +./test/family_v16_00003.h5 ./test/fheap.c ./test/fill_old.h5 ./test/fillval.c @@ -1623,6 +1623,7 @@ ./vms/test/check.com ./vms/test/make.com +./vms/build.com ./vms/install.com ./vms/make.com ./vms/tools/h5copy/make.com diff --git a/fortran/test/tH5P.f90 b/fortran/test/tH5P.f90 index 7f655de..76edd61 100644 --- a/fortran/test/tH5P.f90 +++ b/fortran/test/tH5P.f90 @@ -244,6 +244,12 @@ CALL h5fcreate_f(fix_filename, H5F_ACC_TRUNC_F, file_id, error, access_prp = fapl) CALL check("h5fcreate_f", error, total_error) + if(error .ne. 0) then + write(*,*) "Cannot create file using multi-file driver... Exiting...." + total_error = 1 + call h5pclose_f(fapl, error) + return + endif ! diff --git a/test/family_v1.6_00000.h5 b/test/family_v1.6_00000.h5 deleted file mode 100644 index 5b69c93..0000000 Binary files a/test/family_v1.6_00000.h5 and /dev/null differ diff --git a/test/family_v1.6_00001.h5 b/test/family_v1.6_00001.h5 deleted file mode 100644 index bf55b32..0000000 Binary files a/test/family_v1.6_00001.h5 and /dev/null differ diff --git a/test/family_v1.6_00002.h5 b/test/family_v1.6_00002.h5 deleted file mode 100644 index 9bd0891..0000000 Binary files a/test/family_v1.6_00002.h5 and /dev/null differ diff --git a/test/family_v1.6_00003.h5 b/test/family_v1.6_00003.h5 deleted file mode 100644 index fedce2a..0000000 Binary files a/test/family_v1.6_00003.h5 and /dev/null differ diff --git a/test/family_v16_00000.h5 b/test/family_v16_00000.h5 new file mode 100644 index 0000000..5b69c93 Binary files /dev/null and b/test/family_v16_00000.h5 differ diff --git a/test/family_v16_00001.h5 b/test/family_v16_00001.h5 new file mode 100644 index 0000000..bf55b32 Binary files /dev/null and b/test/family_v16_00001.h5 differ diff --git a/test/family_v16_00002.h5 b/test/family_v16_00002.h5 new file mode 100644 index 0000000..9bd0891 Binary files /dev/null and b/test/family_v16_00002.h5 differ diff --git a/test/family_v16_00003.h5 b/test/family_v16_00003.h5 new file mode 100644 index 0000000..fedce2a Binary files /dev/null and b/test/family_v16_00003.h5 differ diff --git a/test/flush2.c b/test/flush2.c index dbb0a82..5ec5300 100644 --- a/test/flush2.c +++ b/test/flush2.c @@ -196,7 +196,8 @@ main(void) #if defined _WIN32 && defined _HDF5USEDLL_ SKIPPED(); puts(" DLL will flush the file even when calling _exit, skip this test temporarily"); - +#elif defined H5_VMS + SKIPPED(); #else H5_FAILED() goto error; @@ -218,7 +219,8 @@ main(void) #if defined _WIN32 && defined _HDF5USEDLL_ SKIPPED(); puts(" DLL will flush the file even when calling _exit, skip this test temporarily"); - +#elif defined H5_VMS + SKIPPED(); #else H5_FAILED() goto error; diff --git a/test/vfd.c b/test/vfd.c index 5598ddd..b5ca096 100644 --- a/test/vfd.c +++ b/test/vfd.c @@ -49,7 +49,7 @@ const char *FILENAME[] = { NULL }; -#define COMPAT_BASENAME "family_v1.6_" +#define COMPAT_BASENAME "family_v16_" /*------------------------------------------------------------------------- @@ -787,7 +787,7 @@ error: * The source file was created by the test/file_handle.c * of the v1.6 library. Then tools/misc/h5repart.c was * used to concantenated. The command was "h5repart -m 5k - * family_file%05d.h5 family_v1.6_%05d.h5". + * family_file%05d.h5 family_v16_%05d.h5". * * Return: Success: 0 * Failure: -1 diff --git a/vms/build.com b/vms/build.com new file mode 100644 index 0000000..ca83f24 --- /dev/null +++ b/vms/build.com @@ -0,0 +1,34 @@ +$!# +$!# Copyright by The HDF Group. +$!# Copyright by the Board of Trustees of the University of Illinois. +$!# All rights reserved. +$!# +$!# This file is part of HDF5. The full HDF5 copyright notice, including +$!# terms governing use, modification, and redistribution, is contained in +$!# the files COPYING and Copyright.html. COPYING can be found at the root +$!# of the source code distribution tree; Copyright.html can be found at the +$!# root level of an installed copy of the electronic HDF5 document set and +$!# is linked from the top-level documents page. It can also be found at +$!# http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have +$!# access to either file, you may request a copy from help@hdfgroup.org. +$!# +$! +$! +$! This file builds C, Frtran, C++ HDF5 librraies and runs the tests +$! Specify location of the top HDF5 source directory +$ +$ hdf5top == "sys$sysusers:[pourmale.hdf5]" +$ len = F$LENGTH(hdf5top) +$ tmp = F$EXTRACT(0, len-1, hdf5top) +$ hdf5vms = tmp + ".VMS]" +$ hdf5ctest = tmp + ".TEST]" +$ hdf5f90test = tmp + ".FORTRAN.TEST]" +$ hdf5cxxtest = tmp + ".C__.TEST]" +$ set def 'hdf5vms' +$@make +$ set def 'hdf5ctest' +@check +$ set def 'hdf5f90test' +@check +$ set def 'hdf5cxxtest' +@check -- cgit v0.12