summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r17767] Purpose: Fix bug 1483Neil Fortner2009-10-281-0/+131
| | | | | | | | | | | | Description: H5HG_load made improper assumptions about the ordering of object indices, namely that they are in order. Not only is this not guaranteed by the file format spec, but this condition can be violated if id's "wrap around" which can happen when overwriting VL data. H5HG_load has been fixed to handle any order of indices. Also fixed some other bugs involving allocation of global heaps in memory. Tested: jam, linew, amani (h5committest)
* [svn-r17759] Purpose: Fix assertion failure caused by H5Tcommit1/2Neil Fortner2009-10-271-1/+21
| | | | | | | | | Description: Calling H5Tcommit on a file with read only access would cause an assertion failure. Added a check to H5T_commit to return a failure in this case. Tested: jam (very minor change)
* [svn-r17668] Bug 1656 fix:Albert Cheng2009-10-181-3/+22
| | | | | | | | added a signal handler to the tcheck_version to intercept the abort signal from H5check_version. Some systems would prints extra messages and/or core dump if the abort signal is not handled. This eliminates those unwanted side effect. Tested: h5committested.
* [svn-r17634] Bug 1192:Albert Cheng2009-10-131-0/+30
| | | | | | | Added EXIT_SUCEESS and EXIT_FAILURE macro values test. Tested: h5committested.
* [svn-r17612] Bug fix (ID 1628):Albert Cheng2009-10-081-0/+13
| | | | | | | | | There was a typo in the H5Pget_preserve that it was returning the wrong value. Fixed. Also added a test in test/cmpd_dset.c to verify the correctness of H5Pset_preserve and H5Pget_preserve. Tested: h5committest plus jam serial.
* [svn-r17581] Added testlibinfo.sh testcheck_version.sh to be distcleaned.Albert Cheng2009-10-011-0/+1
| | | | Tested: Jam.
* [svn-r17558] New feature(Bug 230):Albert Cheng2009-09-304-4/+496
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Embed the content of libhdf5.settings into the hdf5 executables so that an "orphaned" executables can display (via the Unix strings command, for example) the library settings used to build the executables. configure.in: Added the --disable-embedded-libinfo option to disable this feature. configure: src/H5config.h.in: fortran/configure c++/configure Generated by autotools like automake. src/H5detect.c: Implement insert_libhdf5_settings() to insert the contents of libhdf5.settings into the library as an extern string variable so that it is included in all HDF5 executable. test/Makefile.in: Added test scripts testlibinfo.sh and testcheck_version.sh, test program tcheck_version. Needed to introduce $PROGS so that tcheck_version is built but not run automatically. test/testlibinfo.sh.in: A new test added to verify the library information is indeed included in the executables. H5.c: added code to print the embedded library information when there is a library versions mis-match occurs. This ensures the library information string is included in the executable. Also modifies the code so that the Library mismatch warning string is included only once in the executable. H5private.h: Added a global reference to the libinfo string variable to prepare for possible stage 3 implementation of a public API. New test: (Bug ID 1656): Add new tests (tcheck_version, testcheck_version.sh) to verify H5check_version() does issue warnings and abort accordingly. Changed H5check_version() to suppress the warning message totally if $HDF5_DISABLE_VERSION_CHECK is 2 or higher. (Old behavior treated 3 or higher the same as 1, that is to print a warning and allows the program to continue. MANIFEST: updated with the newly added files. Tested: h5committest passed. Also passed jam in serial mode, --enable-static-exec, --disable-embedded-libinfo.
* [svn-r17525] Description:Quincey Koziol2009-09-243-0/+169
| | | | | | | | | | | Add backward compatibility test to make certain that the 1.6 library handles encountering a file with a fixed array chunk index gracefully. Also, remove the (generated) testh5ls.sh at 'make distclean' Tested on: FreeBSD/32 6.3 (duty) w/production (too minor to require h5committest)
* [svn-r17128] Added a test for reading an empty attribute for bug #1513. v1.6 ↵Raymond Lu2009-06-291-0/+64
| | | | | | | | | library works correctly because fill value is written to the attribute during H5A_close if no data is written. v1.8 and later leaves it empty. Tested on jam - simple change for test.
* [svn-r17110] Purpose: Fix bug in H5Z_filter_infoNeil Fortner2009-06-251-0/+11
| | | | | | | | | | | Description: Previously, when H5Z_filter_info was called for a filter that was not present, it would succeed and return the information from one position past the end of the pipeline, possibly causing a segfault. This affected at least H5Pget_fitler_by_id, and possibly other API functions. Fixed to properly return failure. Tested: jam
* [svn-r17027] Purpose: fix bug 1593Neil Fortner2009-06-101-0/+204
| | | | | | | | | | | | Description: When using H5T_copy on committed datatypes that are already open, H5T_copy would properly use the already existing shared struct, but would still deep copy all of the fields in that struct. This would cause memory leaks, and in the case of a compound containing a vlen (or reference), the change in size would cause the size of the resulting type to be set to an incorrect value. Changed H5T_copy to properly avoid deep copies when using a reopened shared struct. Tested: jam, linew, smirom (h5committest)
* [svn-r16994] Snapshot version 1.8 release 3 (snap0)Larry Knox2009-06-011-0/+1
|
* [svn-r16921] Family compatibility test used the data file in the source ↵Raymond Lu2009-05-056-12/+56
| | | | | | | | | | | directory directly and opened the file with write mode. The file could be modified potentially. I changed it to make a copy of the source file in the build directory. I also renamed the data file from family_v1.7_0000[0-3].h5 to family_v1.8_0000[0-3].h5. Tested on jam - I've tested the changes in v1.8 using h5committest.
* [svn-r16809] Purpose: Add version macroNeil Fortner2009-04-201-1/+8
| | | | | | | | Description: Versioning was just added to H5Z_class_t in 1.8. Therefore, I am adding a H5Z_class1_t macro to 1.6 to enable backwards compatibility using H5Z_class1_t. Tested: jam (simple change)
* [svn-r16610] Modified the test of family driver for forward compatibility. ↵Raymond Lu2009-03-251-0/+22
| | | | | | | | Open the file twice to make sure the superblock isn't corrupted. Tested on jam - simple test.
* [svn-r16482] Purpose: Improve chunk cacheNeil Fortner2009-02-121-0/+184
| | | | | | | | | | | Description: The meaning of the "nbytes" field in H5D_rdcc_t was not clear, and some places assumed it was the maximum size of the chunk cache, while some assumed it was the current size of the chunk cache. The end result was that only 1 chunk could be held in cache at a time. This field has been replaced by "nbytes_max" and "nbytes_used". Performance of cached I/O should improve greatly. Tested: jam, smirom (h5committest)
* [svn-r16425] bug fix: a open call was not made the expected FAPLPedro Vicente Nunes2009-02-041-3/+3
| | | | tested: windows, linux (split, sec2)
* [svn-r16421] #1449 Change set_extent test to use standard standalone test ↵Pedro Vicente Nunes2009-02-041-20/+32
| | | | | | | | | | framework Call h5_fixname (with an array of test filenames) for generating the filename to create and then call h5_cleanup() when the tests pass, to delete the files created and close the FAPL from h5_fileaccess(). tested: windows, linux
* [svn-r16407] #1449 Change set_extent test to use standard standalone test ↵Pedro Vicente Nunes2009-02-031-63/+79
| | | | | | | | | | | | | | | | | | | framework use a fapl obtained by h5_fileaccess to the call of H5Fcreate and redo the test calls with h5_reset(); fapl = h5_fileaccess(); nerrors += do_ranks( fapl ) < 0 ? 1 : 0; nerrors += test_external( fapl ) < 0 ? 1 : 0; nerrors += do_layouts( fapl ) < 0 ? 1 : 0; tested: windows, linux
* [svn-r16342] Description:Frank Baker2009-01-221-1/+1
| | | | | | Changed 'THG' to 'The HDF Group' in various HDF5 source files, most of which are <subdirectory>/COPYING. -- Closes Bugzilla entry 1403.
* [svn-r16274] Bug fix: A case of 0 dimension was not handled in the ↵Pedro Vicente Nunes2009-01-081-263/+380
| | | | | | | | definition of an array in H5D_istore_initialize_by_extent, causing an iteration to continue and an assertion in H5S_hyper_iter_init when trying to initialize a non existing chunk. Added a test for shrinking to 0 dimemsions Tested: windows, linux
* [svn-r16230] Pedro Vicente Nunes2008-12-291-315/+2272
| | | | | | | | Bug fixes: chunks on the btree were not deleted for the case when the new dimension was on the boundary of the chunk offset (comparison of offset > chunk instead of offset >= chunk). In extending the space, the new size was wrongly compared with the maximum extend possible Modified H5Dset_extent so that it fails when called for compact datasets and contiguous with no external storage new test program as 1.8 and 1.9: It adds tests for several ranks, use of fill value or not, compression, different fill value allocation times, use of different storage layouts, and external files tested: windows, linux
* [svn-r16080] Purpose: Bug FixMike McGreevy2008-11-171-0/+5
| | | | | | | | | | | | | | | | Description: The h5perf tool was getting installed in 1.8 and 1.9, but not in 1.6. Added a line to perform/Makefile.in to ensure that h5perf is installed in 1.6. Also added a line to test/Makefile.in, adding an install target which will build all tests (equivalent to 'make all'). H5perf needs the test library built, but doing a 'make install' from the top level would fail in the perfom directory because nothing would happen upon recursing into the test directory. Tested: kagiso, jam, smirom, liberty
* [svn-r15837] Purpose: Add version compatibility macros to 1.6Neil Fortner2008-10-118-6/+507
| | | | | | | Decription: Added macros defining the "1" version functions in the 1.6 branch. Added tests for these macros. Closes bug 1318. Tested: kagiso, linew, smirom (h5committest)
* [svn-r15769] Bug #1312Pedro Vicente Nunes2008-10-031-0/+49
| | | | | | | Solution: Check for the existence of chunks before pruning them (an assertion was triggered when attempting to do so) Tested: windows , linux, solaris
* [svn-r15710] The GASS and SRB VFD have been retired and removed from theAlbert Cheng2008-09-278-1540/+42
| | | | | | | | HDF5 library. The Dependencies files are generated by "make depend". Tested: h5committest, also serial in Kagiso is tested.
* [svn-r15708] I changed the return values of H5Fget_obj_ids and ↵Raymond Lu2008-09-262-5/+5
| | | | | | | | H5Fget_obj_count to ssize_t and modified C++ and Fortran API functions. This is for bug #1245. Tested on kagiso - I've tested the same change for the trunk using h5committest.
* [svn-r15298] Bug fix for H5Tpack. The problem was that H5Tpack didn't act ↵Raymond Lu2008-06-301-4/+104
| | | | | | | | | correctly with nested compound datatype. The size of compound type's member type wasn't updated. It's fixed in this commit. Tested on smirom. The same change was tested on three systems for v1.9.
* [svn-r15243] Purpose: Port bugfix from trunk: Fix ohdr Windows timezone bugScott Wegner2008-06-191-1/+1
| | | | | | | | | | | | | | | | Description: On Windows, certain users were having trouble with the "ohdr" test, which does some processing on object header messages. The errors were hard to reproduce on our machines, and we eventually determined that the errors were timezone-specific. The bug is triggered on Windows when processing timestamps very near the "Epoch" (midnight on 1/1/1970)-- the mktime() function does some automatic adjustment on the time to correct for timezones. In the USA, the correction adds a few hours; in Europe, it subtracts, thus giving us times pre-Epoch. This only affects Windows because the Windows mktime() function cannot handle times before 1970-- other systems seemingly can. The fix is to simply create timestamps only as early as 01/02/1970. This way, any timezone adjustment will still be post-Epoch. This bug only affects the ohdr test, and shouldn't be a problem in the library. The earliest timestamps that will actually be read will be around the time HDF5 was created (~1996-7, per Quincey). Tested: h5committest (kagiso, linew, smirom)
* [svn-r15008] Purpose: configure and source code cleanupMike McGreevy2008-05-153-18/+0
| | | | | | | | | Description: cleaning up configure related to removal of --disable-hsizet flag, which we no longer support. Furthermore, the H5_HAVE_LARGE_HSIZET macros in the source code have been removed. Tested: kagiso
* [svn-r14635] Purpose:Albert Cheng2008-02-221-0/+3
| | | | | | | | | | Bug fix. The flush1/fflush1 test must be done before flush2/fflush2 should be run. Added a dependance to enforce it. Tested: kagiso. (no committest since it is a simple change. If it works for one, it should work for all.)
* [svn-r14493] Print out the seed for HDsrandom. In case that there's a ↵Raymond Lu2008-02-041-1/+4
| | | | | | | | failure in the test, it may be easier to reproduce the problem. Tested on kagiso. Simple change.
* [svn-r14492] Added more tests. Test both H5Sselect_elements and ↵Raymond Lu2008-02-041-42/+243
| | | | | | | | H5Sselect_hyperslab, for both chunked and contiguous datasets. Tested on smirom, kagiso, and linew.
* [svn-r14473] Bug fix for #984. H5Iget_name could not be used with an object ↵Raymond Lu2008-01-302-170/+721
| | | | | | | | identifier returned by H5Rdereference. The function would not be able to determine a valid object name. Fixed it and added some tests in getname.c. Tested on smirom, kagiso, and linew.
* [svn-r14423] Description:Quincey Koziol2008-01-154-32/+32
| | | | | | | | Change the 'coord' parameter for H5Sselect_elements() from 'hsize_t **' to 'hsize_t *' in this branch also. Tested on: Mac OS X/32 10.5.1 (amazon)
* [svn-r14403] Description:Quincey Koziol2008-01-132-0/+63
| | | | | | | | | | | | | | | | | | | | | Add work-around to allow reading files that were produced with a buggy earlier version of the library, which could create objects with the wrong object header message count. There is now a configure flag "--enable-strict-format-checks" which triggers a failure on reading a file with this sort of corruption (when enabled) and allows the object to be read (when disabled). The default value for the "strict-format-checks" flag is yes when the "debug" flag is enabled and no when the "debug" flag is disabled. Note that if strict format checks are disabled (allowing objects with this particular kind of corruption to be read) and the file is opened with write access, the library will re-write the object header for the corrupt object with the correct # of object header messages. This closes bugzilla bug #1010. Tested on: Linux/32 2.6 (kagiso) FreeBSD/64 6.2 (liberty)
* [svn-r14401] After added tcoords.c, the Makefile.in wasn't updated properly. ↵Raymond Lu2008-01-112-3/+3
| | | | | | | | The object file tcoords.o and tcoords.lo weren't cleaned by "gmake clean". Corrected it. Tested on smirom. Simple change.
* [svn-r14392] Changed the way that file name string is represented because it ↵Raymond Lu2008-01-101-2/+4
| | | | | | | | caused a failure for PGI compilers. Tested on smirom with PGI compiler. Simple change.
* [svn-r14388] Clean up the code.Raymond Lu2008-01-091-12/+0
| | | | Tested on smirom.
* [svn-r14387] Changed some test cases to use H5Sselect_elements instead of ↵Raymond Lu2008-01-091-6/+28
| | | | | | | | H5Sselect_hyperslab for test purpose. Tested on smirom only. Simple changes.
* [svn-r14386] Bug fix for #956. The calculation of the coordinates for ↵Raymond Lu2008-01-094-2/+500
| | | | | | | | | | dataspace selection went wrong when the selection of some dimensions are full and these dimensions are optimized through "flattenning". The calculation of the coordinates wasn't general enough in H5Shyper.c. Also added a test program for it. Tested on smirom only because the same code was tested on 3 platforms for v1.8.
* [svn-r14329] Run make depend to regenerate all these Dependencies files afterAlbert Cheng2007-12-071-121/+85
| | | | removing the stream-vfd.
* [svn-r14322] Description:Albert Cheng2007-12-062-499/+2
| | | | | | | Removed the stream-vfd from the basic library code. Platforms tested: Kagiso (serial and parallel).
* [svn-r13946] Description:Quincey Koziol2007-07-051-0/+45
| | | | | | | | | | Back-port change of semantics for constant messages (to allow them to be deleted, but not modified) from the 1.8 branch. Tested on: Mac OS X/32 10.4.10 (amazon) Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r13898] Purpose:HDF Tester2007-06-221-1/+1
| | | | | | | | | | | | Bug fix. Description: Test test_misc25b() open an existing test data file with RDWR unnecessarily. (This was discovered during read-only test.) Changed file open mode to RDONLY. Tested platform: Kagiso (readonly) only since it is a trivial change.
* [svn-r13886] Description:Quincey Koziol2007-06-192-27/+285
| | | | | | | | | | | Add some additional tests for reading non-contiguous selections from datasets which haven't had any data written to them (both non-VL and VL datatype fill values covered) Tested on: Mac OS X/32 10.4.9 (amazon) FreeBSD/32 6.2 (duty) FreeBSD/64 6.2 (liberty)
* [svn-r13882] Description:Quincey Koziol2007-06-191-424/+332
| | | | | | | | | | | Fixed bugs w/VL-datatype fill values for chunked dataset storage. Tested on: Mac OS X/32 10.4.9 (amazon) FreeBSD/32 6.2 (duty) FreeBSD/64 6.2 (liberty) Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r13869] Description:Quincey Koziol2007-06-151-98/+184
| | | | | | | | | | Fix writing variable-length datatype fill values for contiguous dataset storage Tested on: Mac OS X/32 10.4.9 (amazon) Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r13859] dded sec2.h5 to the list of the files to be deleted.Raymond Lu2007-06-122-1/+3
| | | | | | | It's output file from big.c. Unlink a temporary file in big.c. Tested on smirom because it's a simple change.
* [svn-r13843] Description:Quincey Koziol2007-06-081-76/+417
| | | | | | | | | | | | Fix compact dataset storage to initialize VL datatype fill values correctly. Also, fix bug in global heap code when the fix action on a global heap is to delete an object in a heap with no free space. Tested on: Mac OS X/32 10.4.9 (amazon) (Will be testing on FreeBSD/32 6.2 (duty))