summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r20262] In my previous checkin (20255), I used H5Gcreate instead of ↵Raymond Lu2011-03-161-1/+1
| | | | | | | | H5Gcreate2 in my test. I just corrected it . Tested on jam.
* [svn-r20255] Bug 2115 - add H5_VERSION_GE and H5_VERSION_LE macros. I added ↵Raymond Lu2011-03-151-1/+68
| | | | | | a new test case to show how to use them. Tested on jam and amani.
* [svn-r20180] I added 2 public macros to the H5public.h - H5_VERSION_GE and ↵Raymond Lu2011-03-021-0/+49
| | | | | | H5_VERSION_LE - and put some test cases in tfile.c. Tested on jam, heiwa, and amani.
* [svn-r20153] Move ext lib handling for ext project building to a common ↵Allen Byrne2011-02-241-11/+11
| | | | | | macro. Update HDF5 project to use HDFMacros.cmake file. Add test properties for test ordering. Tested: local linux, windows
* [svn-r20141] Bring 1.8 r20139 cmake and windows changes to trunkAllen Byrne2011-02-221-1/+4
|
* [svn-r20121] Bug 1586 - the datatype handler created with H5Tencode/decode ↵Raymond Lu2011-02-181-11/+71
| | | | | | had the reference count 0. I fixed it by changing the APP_REF parameter of H5I_register from FALSE to TRUE and added a test case in dtypes.c. Tested on jam, heiwa, and amani.
* [svn-r20064] Purpose: Implement external file cacheNeil Fortner2011-02-085-52/+3723
| | | | | | | | | Description: Implements a cache of files opened through external links. Adds the public functions H5Pset_elink_file_cache_size(), H5Pget_elink_file_cache_size(), and H5Frelease_file_cache(). Tested: jam, amani, heiwa (h5committest), fedora 64.
* [svn-r20061] Description:Quincey Koziol2011-02-081-22/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring changes from Coverity branch to trunk: r19930: Fix memory leaks involving VL attributes in h5repack and h5diff. The buffers in copy_attr and diff_attr were not checked for the presence of a vlen before being freed, and vlen storage was never reclaimed. Added checks and calls to H5D_vlen_reclaim(). r19933: Purpose: Fix memory leak in H5L_move_cb() Description: H5L_move_cb copied the source link using H5O_msg_copy() but freed it manually using H5MM_xfree(). Since H5O_link_copy allocates the link using H5FL_MALLOC, this causes the link to be allocated from the free list but is never put back on the free list when it is freed. This prevents the link free list from shutting down properly. Modified H5L_move_cb() and H5L_move_dest_cb() to free the link properly using H5O_msg_free(). r19973: Fix resource leaks by freeing string created by HD5f2string r19974: Issue #345: Inialize buf variable to null Tested on: Mac OS X/32 10.6.6 (amazon) w/debug & production (h5committested on Coverity branch)
* [svn-r20052] Description:Quincey Koziol2011-02-061-43/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up Coverity warnings, and fix some style issues: r19735: Fix for memory leak in test/mf found by valgrind. r19736: Fix memory leak in h5repack. The buffer in copy_objects, when copying the entire dataset at once, was not checked for the presence of a vlen, and vlen storage was never reclaimed. Added check and call to H5D_vlen_reclaim(). r19772: Change H5assert() to if (H5T_VLEN != src->shared->type || H5T_VLEN != dst->shared->type) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a H5T_VLEN datatype") r19774: removed unused priv. r19775: removed unused variables r19778: Fix memory leak comparing for variable length data types. r19834: Fixed memory leaks found by valgrind. Memory errors remain for another day. Tested on: Mac OS X/32 10.6.6 (amazon) w/debug & production (h5committested on branch)
* [svn-r20029] Purpose: Fix bug 2131Neil Fortner2011-02-025-112/+1296
| | | | | | | | | | Description: When using the scale-offset filter with floating point data or fill values, big endian machines would save some metadata in the wrong byte order. This caused such datasets to yield incorrect data when read on little endian machines. Fixed the scale-offset filter to always save this metadata in the right byte order (i.e. little endian). Tested: jam, amani, heiwa (h5committedt); fedora, linew
* [svn-r20027] I added some test cases for H5Oset(get)_comment and ↵Raymond Lu2011-01-311-0/+333
| | | | | | H5Oset(get)_comment_by_name. It's related to bug 2130. Tested on jam, amani, and heiwa.
* [svn-r20006] I updated the read buffer from float to double to be more ↵Raymond Lu2011-01-262-6/+8
| | | | | | appropriate. Tested on jam and linew.
* [svn-r19998] I changed the previous commit from FLOAT to DOUBLE again ↵Raymond Lu2011-01-265-15/+15
| | | | | | | | because Neil prefers to it for fill value test. I updated the data files, too. Tested on linew and jam.
* [svn-r19982] I changed the previous commit from DOUBLE to FLOAT because the ↵Raymond Lu2011-01-245-15/+15
| | | | | | | | bug (2131) happens to FLOAT only. I updated the data files, too. Tested on linew and jam.
* [svn-r19977] Bug 2131 - I added a test case for integer data. I also ↵Raymond Lu2011-01-215-29/+195
| | | | | | skipped the test case for double data because it still fails. Tested on jam and linew.
* [svn-r19972] I added a test case for dataset with scale-offset filter into ↵Raymond Lu2011-01-215-32/+252
| | | | | | cross_read.c and updated the data files from BE, LE, and VMS. Tested on jam and linew.
* [svn-r19907] Windows: Correct how fortran links in CRT library. Also correct ↵Allen Byrne2011-01-041-11/+11
| | | | | | macro use for checking libtype. bring r19906 from 1.8 branch
* [svn-r19895] Remove use of /MT compile flag for building static libs and ↵Allen Byrne2010-12-291-10/+0
| | | | programs. Added BUILT_AS_STATIC_LIBRARY define to set the windows import/export defines correctly for static libraries.
* [svn-r19839] Updated to libtool v 2.4, autoconf 2.68 and m4-1.4.15.Larry Knox2010-11-231-1/+4
| | | | Tested with h5committest on amani, heiwa, and jam.
* [svn-r19833] Bug fix - In the code of N-bit filter, one line (the last line ↵Raymond Lu2010-11-191-0/+383
| | | | | | | | | | | of H5Znbit.c in H5Z_nbit_compress - "*buffer_size = j + 1;" was mistakenly taken out by someone. It is necessary to update the new size. I put it back and made 2 test cases for integer and float to verify the correct dataset size. I'm bringing the fix from 1.8 branch. The changes to configure.in, tools/misc, config, Makefile.am are only property changes. Tested on jam. But I tested 1.8 on jam, heiwa, and amani.
* [svn-r19829] Fixed the name of the windows linkage define in the test ↵Allen Byrne2010-11-191-1/+1
| | | | | | | | header. This corrects the inconsistent dll linkage warning and matches the other linkage defines. Changed H5_DLLVAR to H5TEST_DLLVAR. Tested: windows
* [svn-r19823] BZ2013: Remove use of WIN32 defines. These two files were ↵Allen Byrne2010-11-181-5/+5
| | | | | | dependent on the winsock2.h header so changed WIN32 to H5_HAVE_WINSOCK_H. Tested: windows
* [svn-r19817] Bug 1917: Big.c test.Albert Cheng2010-11-171-43/+97
| | | | | | | | Changed the test to run Huge Dataset (tens of GB), Xtra large dataset(4GB big), Large dataset (2GB big), or merely 1GB big, depending on if the file system supports sparse file or if it supports larger than 32bigs I/O. Tested: h5committest, jam (serial), Windows (Bangan which is Windows 7, 32bits).
* [svn-r19813] 1. Correct mistake for previous checkin rev #19781:Vailin Choi2010-11-172-2/+2
| | | | | | | file name listed for DISTCLEANFILES should be testlinks_env.sh 2. Add comments to test_4() in test/external.c about the link name "/ link". 3. Fix memory leak as reported by valgrind in src/H5Lexternal.c: free memory pointed to by tmp_env_prefix for HDF5_EXT_PREFIX case.
* [svn-r19798] Purpose:Mike McGreevy2010-11-171-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | Add additional error checking to catch erroneous user input. Description: Attempting to retrieve a links's name by index in the case where the link is external and the file that the object is located in doesn't exist was causing a segmentation fault (in production) and an assertion failure (in debug). The segfault wasn't occuring until the metadata accumulator attempted a write, so I've added error checking higher in the pipeline in H5O_protect (where there was previously just an assert) to catch this. I've also added additional asserts in the H5F layer where there were none. Additionally, I added another case to the links.c test to test that this fails gracefully instead of segfaulting or asserting out. Tested: h5committest and gandalf (mac os x)
* [svn-r19796] Bug 2091: remove all Metraowerks compiler code bracheted by ↵Albert Cheng2010-11-161-1/+1
| | | | | | | | __MWERKS__. Metraowerks compiler is no more. Make the code cleaner. Tested: H5committest plus jam serial.
* [svn-r19795] Cleaned up some part of the code. It now works on all Unix and ↵Albert Cheng2010-11-161-36/+26
| | | | | | Windows 7 platforms.
* [svn-r19790] CMake: Correct Error tests. Add Deprecated Symbols option.Allen Byrne2010-11-161-16/+36
| | | | Tested: local linux
* [svn-r19783] Fix to the checkin for bug #1930.Vailin Choi2010-11-151-1/+6
|
* [svn-r19782] Fix CMake testing for links_env test which requires an ↵Allen Byrne2010-11-152-4/+45
| | | | | | | | environment variable at test run-time. Modified runTest.cmake file to allow optional ENV_VAR and ENV_VALUE to be passed. runTest.cmake requires a reference file, added links_env.out to testfiles folder. Also updated root CMakeLists.txt to output a message when unsopported options are configured with the PARALLEL option. CMake will still generate files. Tested: windows and local linux
* [svn-r19781] Fix for bug #1930:Vailin Choi2010-11-156-117/+261
| | | | | | 1) Move the test for H5D_EXT_PREFIX in links.c to a separate file: links_env.c 2) links_env.c will be used by testlinks_env.sh to test for the environmental variable H5D_EXT_PREFIX in searching for the external linked file.
* [svn-r19764] Updated NPROCS default value from 3 to 6.Albert Cheng2010-11-111-121/+223
|
* [svn-r19706] Added VFD test options.Allen Byrne2010-11-011-3/+68
| | | | Bring r19705 from branch
* [svn-r19702] Removed special fheap timeout - replaced by timeout set in ↵Allen Byrne2010-11-011-4/+0
| | | | | | | CTestConfig.ctest Added MemCheck Ignore tests for repeated tools tests Added Debug flag for windows
* [svn-r19697] Description:Quincey Koziol2010-10-291-0/+129
| | | | | | | | | Add another test for shutting down open object IDs without using the standard "close" routines. Tested on: Mac OS X/32 10.6.4 (amazon) w/debug & production (too minor to require h5committest)
* [svn-r19696] Bug 2008 - IBM Power6 Linux uses special conversion algorithms ↵Raymond Lu2010-10-281-0/+32
| | | | | | | | | | | to convert some values from long double to (unsigned) long and from (unsigned) long to long double. I added tests in configure.in to detect these algorithms. Before I can figure out them, I disable the tests in dt_arith.c. There are property changes to tools/misc, config, and Makefile.am when I brought the fix from 1.8. Tested on jam, heiwa, amani, IBM Power6 Linux machine in Holland (huygens.sara.nl).
* [svn-r19668] Description:Quincey Koziol2010-10-261-0/+19
| | | | | | | | | | Do some extra range-checking on H5Pset_elink_acc_flags() calls. Clean up some minor compiler warnings also. Tested on: Mac OS X/32 10.6.4 (amazon) w/debug & production (too minor to require h5committest)
* [svn-r19654] Description:Quincey Koziol2010-10-212-191/+191
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring Coverity revisions from branch back to trunk, and clean up some other misc. compiler warnings also. r19500: Fix coverity items 1446 and 1447. Moved up calls to memset in test_cont in ohdr.c so the test never tries to close uninitialized locations. r19501: Fix coverity items 1398-1445. Various uninitialized variable errors in fheap.c. r19502: Fixed coverity issue 579 and some additional warnings in the file as well. r19503: Bug fix: This fix addressed the "RESOURCE_LEAK" problems #789 and 790, run 26 r19504: minor mods to try to keep coverity from flagging false positives. r19505: Fixed coverity issues 566 - 571. Declared variables that are passed to functions that use them as arrays to be arrays of size 1. Tested on: Mac OS X/32 10.6.4 (amazon) w/debug, production & parallel (h5committested on trunk)
* [svn-r19650] Put back deleted library check in configure.Allen Byrne2010-10-201-5/+3
| | | | | | Remove shared library check around ws2_32.lib linking in test library. Issue on windows static builds. Tested: windows
* [svn-r19623] Purpose:Mike McGreevy2010-10-181-6/+6
| | | | | | | | | | | | | | - Fix a bug in each of the metadata accumulator source and test code Description: - In accum.c test file, switch dxpl_id used in H5F_accum_* function calls to H5P_DATASET_XFER_DEFAULT (instead of H5AC_dxpl_id), to fix compilation on windows. - Changed boundary checking from <= to < when checking if a read from disk with overlapping dirty metadata in the accumulator has the read ending such that it aligns exactly with the dirty accumulator (line 234 of H5Faccum.c). Tested: - h5committested
* [svn-r19617] Purpose:Mike McGreevy2010-10-154-32/+1851
| | | | | | | | | | Merge accum_tests branch back to the trunk. Description: Changes consist of addition of tests for H5Faccum.c source code, as well as some fixes that address some discovered bugs in the metadata accumulator on several corner cases. Tested: h5committested
* [svn-r19587] Description:Quincey Koziol2010-10-131-7/+168
| | | | | | | | | | | | | | | | | | | | | | | | | Address issue with object headers being created getting evicted from the metadata cache cache before they are completely initialized. This is done by pinning the object header in the cache until it is completely initialized and attached to a group. Tested on: FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, w/threadsafe, in production mode Linux/PPC 2.6 (heiwa) w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode Mac OS X/32 10.6.4 (amazon) in debug mode Mac OS X/32 10.6.4 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode Mac OS X/32 10.6.4 (amazon) w/parallel, in debug mode
* [svn-r19578] Bug fix for 1707 - H5Eset_auto causes a seg fault when an ↵Raymond Lu2010-10-113-82/+354
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | application uses -DH5_USE_16_API with the 1.8 library to compile. The cause is from the mismatch of H5Eprint1 and H5Eprint2 set through H5Eset_auto. I changed the structure H5E_auto_t. I added a IS_DEDAULT flag in it. Both H5Eprint1/2 are the default now. If the user sets his/her own printing function. Then a call to H5Eget_auto1/2 will have to match H5Eset_auto1/2. Tested on heiwa, jam, and amani. The property change in configure.in, config, and Makefile.am came from the merge of the 1.8 library change.
| * [svn-r19507] Fix for bug 1707 - I changed the design from the previous fix ↵Raymond Lu2010-10-042-121/+251
| | | | | | | | | | | | | | | | | | | | as Quincey suggested. I added a flag IS_DEDAULT in the H5E_auto_t structure. Both H5Eprint1/2 are the default now. If the user sets his/her own printing function. Then a call to H5Eget_auto1/2 will have to match H5Eset_auto1/2. Tested on jam, heiwa, and amani.
* | [svn-r19527] Add clear generated objects commands to test blocks.Allen Byrne2010-10-061-0/+72
| | | | | | | | | | | | Add configurefile command to copy CTestCustom to build folder. Tested: local linux
* | [svn-r19523] I added another test case - disabling chunk cache. H5Dwrite ↵Raymond Lu2010-10-051-31/+58
| | | | | | | | | | | | | | | | will fail instead of H5Dclose when the chunk cache is disabled and the mandatory filter fails. Tested on jam - simple change.
* | [svn-r19520] Move 'int nerrors = 0' declaration out of '#ifdef' block to ↵Allen Byrne2010-10-051-1/+1
| | | | | | | | match return.
* | [svn-r19509] Improve CMake support for CYGWIN.Allen Byrne2010-10-041-0/+1
| | | | | | | | | | | | Correct script comment in testh5diff.sh Tested: Windows Cygwin
* | [svn-r19506] Bring changes from revisions 19408, 19421, and 19442 from ↵Larry Knox2010-10-041-5/+15
| | | | | | | | | | | | branches/hdf5_1_8 to trunk. These revisions reorganize the compile scripts using h5cc.in, h5fc.in, and h5c++.in, add checks for installed examples to the scripts that run them after installation, and add DESTDIR for install as needed for RPMs. Tested on amani, heiwa and jam by h5committest and with CYGWIN.
* | [svn-r19481] I'm backing out my fix for bug 1707 because there're some ↵Raymond Lu2010-09-2710-240/+49
|/ | | | | | | | | | | unresolved issues - r19441 and 19467. Bug 1707 is that H5Eset_auto causes a seg fault when an application uses -DH5_USE_16_API with the 1.8 library to compile. I created a branch off the trunk called set_auto to continue working on the problem. Tested on jam - backing out, simple.