summaryrefslogtreecommitdiffstats
path: root/test/trefer.c
Commit message (Collapse)AuthorAgeFilesLines
* Squashed commit of the token_refactoring branch:Dana Robinson2020-01-191-7/+7
|
* Cherry pick of 0225e6d5969Quincey Koziol2020-01-041-1/+1
|
* Refactor all the 'H5VL_*_optional' callbacks to move the type of operation outQuincey Koziol2020-01-041-12/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of the va_list, so it's at least possible for another connector to know what the operation is and decide whether to implement it or not. Added a new VOL sub-class called "introspect" where callbacks that report information about the connector or container can be placed. Added an 'opt_query' callback to this sub-class, for a connector to report back to the library whether a particular optional callback operation is supported. Also added a 'get_conn_cls' introspection callback, to retrieve the H5VL_class_t of a connector (either the "current" connector, H5VL_GET_CONN_LVL_CURR, or the terminal connector, H5VL_GET_CONN_LVL_TERM). Moved the "post open" operation from a file 'specific' operation to a file 'optional' operation, now that it's possible to detect (with the 'opt_query' introspection callback) whether a VOL connector implements an optional operation, without just returning an error. Added new internal VOL helper routines: H5VL_object_is_native, to determine if an object is in (or is a) native file, and H5VL_file_is_same, to determine if two objects are in (or are) the same terminal VOL connector's container. (And moved the special handling for FILE_IS_EQUAL operation out of internal VOL callback routine into H5VL_file_is_same) Made new dataset 'get' operation for H5Dvlen_get_buf_size, aligning it better with other 'get' operations in API. Fixed several issues with pass-through connectors, which are now passing the 'make check-passthrough-vol' tests again. A bunch of warning and style cleanups as well.
* Yanked -Wc++-compat from the flags used to build the C library in bothDana Robinson2019-12-161-2/+2
| | | | the Autotools and CMake.
* Change hdset_reg_ref_t and H5R_ref_t from arrays of unsigned char toDavid Young2019-12-091-133/+138
| | | | | | | | | | | | | | | | | | | structs containing those arrays. Encapsulating the arrays in this way makes it easier to write and think about pointers to these types, casts to/from these types, etc. An interesting side-effect that we probably should *not* rely on is that the struct-encapsulation changes the alignment so that some GCC warnings about casts that increase the alignment requirement of the operand go away. Warnings like that have to be taken seriously: I will add -Werror=cast-align to the default compiler flags so that they stop the build quickly. GCC warnings led me to some surprising casts in test/trefer.c. I found that it was possible to make many simplifications after introducing the struct-encapsulation that I described, above. In test objcopy_ref `same_file` is assigned but never used. Delete it.
* H5R: fix H5Tconv to check for null referencesJerome Soumagne2019-12-091-4/+4
| | | | | | Valid for both deprecated and non-deprecated references Update test
* Revert "Merge branch 'hdf5_1_12' of ↵Jerome Soumagne2019-12-091-11/+9
| | | | | | | https://bitbucket.hdfgroup.org/scm/hdffv/hdf5 into hdf5_1_12" This reverts commit 9f9336a5bd541752f472bab4c93da8de89f862cd, reversing changes made to 437a1919e7ba60fe75a33a466d264183a0255319.
* Merge branch 'hdf5_1_12' of https://bitbucket.hdfgroup.org/scm/hdffv/hdf5 ↵Richard Warren2019-12-061-37/+37
|\ | | | | | | into hdf5_1_12
| * Merge pull request #2080 in HDFFV/hdf5 from ↵Vailin Choi2019-12-061-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | ~VCHOI/my_third_fork:bugfix/112_hyper_ver to hdf5_1_12 * commit '0f1be317c37ca04db263680e6f1fe4d97b937b39': More fixes for the PR: (1) Set the version for reference datatype message to H5O_DTYPE_VERSION_4. (2) The tests for the new reference types should work for V112 and beyond. Verify the decoded version for hyperslab selection.
| | * More fixes for the PR:Vailin Choi2019-12-061-1/+1
| | | | | | | | | | | | | | | (1) Set the version for reference datatype message to H5O_DTYPE_VERSION_4. (2) The tests for the new reference types should work for V112 and beyond.
| * | Add OAPL parameter to H5Rcreate_ APIsJordan Henderson2019-12-061-36/+36
| |/
* | Merged HDFFV-10929_2GB_testing to hdf5_1_12Richard Warren2019-12-061-9/+11
|/
* Add new H5R API that abstracts object, region and attribute reference typesJerome Soumagne2019-10-081-577/+1611
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also support references to external files Add new H5T_REF type and type conversion routines Support conversion from H5T_REF_OBJ/DSET_REG to H5T_REF Add H5Treclaim() API to reclaim memory of vlen/reference types Deprecate H5Dvlen_reclaim() Fix H5T_vlen_reclaim() and H5T_reclaim() to use private callback Add H5T_ref_reclaim() Move previous H5R APIs to H5Rdeprec.c Clean up H5Ocopy Separate H5O_copy_expand_ref() to H5Ocopy_ref() Add support for copying new reference types Clean up deprecated routines to go through VOL and same code path Fix return codes in existing trefer.c test Rename trefer.c to trefer_deprec.c trefer.c is for new references Add performance test for trefer Add additional obj_copy_ref test Make use of tokens and blobs to store references Skip blob encoding for object references Start adding new reference examples
* OESS-29 Update HD prefix mostlyAllen Byrne2019-08-241-2/+2
|
* Fixed a memory issue in trefer.c.Dana Robinson2019-06-251-4/+4
|
* HDFFV-10365: Changes as described in the RFC: H5Sencode/H5Sdecode Format Change.Vailin Choi2019-04-061-24/+34
| | | | This also addresses HDFFV-10255: H5Sencode/decode performance issue.
* Set V112 as the latest format and extend the arrays of version bounds.Vailin Choi2019-04-041-91/+135
|
* Revert "Merge pull request #1116 in HDFFV/hdf5 from ↵hdftest2018-06-241-132/+46
| | | | | | | ~HDFTEST/hdf5_hft:hdf5_1_10 to develop" This reverts commit e9f476dad47ce593f13dacb77b1cc664d1f24e7b, reversing changes made to 2ff00b1b937ebe36ac6ddf590c16a4c27fc0b053.
* Merge branch 'develop' into hdf5_1_10.syncM. Scot Breitenfeld2018-06-041-1/+1
|\
| * Changes made based on feedback from pull request #1039.Vailin Choi2018-05-141-1/+1
| |
| * Fix for HDFFV-10180 Performance issues with H5Oget_info.Vailin Choi2018-04-241-1/+1
| |
| * More includes cleanupAllen Byrne2018-02-141-90/+88
| |
| * Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to ↵Larry Knox2017-04-251-6/+4
| | | | | | | | | | | | | | | | | | | | hdf5_1_10 * commit '54957d37f5aa73912763dbb6e308555e863c43f4': Commit copyright header change for src/H5PLpkg.c which was added after running script to make changes. Add new files in release_docs to MANIFEST. Cimmit changes to Makefile.in(s) and H5PL.c that resulted from running autogen.sh. Merge pull request #407 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10_1 to hdf5_1_10_1 Change copyright headers to replace url referring to file to be removed and replace it with new url for COPYING file.
* | Needs to sync with lib version and Sencode.M. Scot Breitenfeld2018-03-071-92/+83
| |
* | HDFFV-10384 and includes cleanup merged from devlopAllen Byrne2018-02-161-2/+0
| |
* | Fix for HDFFV-9947 H5SencodeVailin Choi2017-11-281-70/+165
| | | | | | | | Modifications to fix H5Sencode bug when num points selected is > 2^32.
* | Change copyright headers to replace url referring to file to be removedlrknox2017-04-141-6/+4
|/ | | | | | | | and replace it with new url for COPYING file. Fix 2 lines in java error test expected output file where messages include line numbers changed by reducing the copyright header by 2 lines.
* [svn-r30285] Description:Quincey Koziol2016-08-131-13/+15
| | | | | | | | | More warning cleanups, bringing the build down to 25 unique types of warnings, with 550 warnings in 122 files (down from 28, 770, and 134). Tested on: MacOSX/64 10.11.5 (amazon) w/serial & parallel (h5committest forthcoming)
* [svn-r27593] Merge revisions 27453 through 27592 from trunk to vds branch.Neil Fortner2015-08-271-3/+3
|\ | | | | | | Tested: ummon
| * [svn-r27460] Minor code cleanup in test/trefer.cDana Robinson2015-08-041-3/+3
| | | | | | | | | | | | | | | | - Fixed an out-of-range char assignment. - Added a couple of malloc() casts. Tested on: jam (minor change, tests only)
* | [svn-r27546] Add tests for H5O__dset_bh_info (H5Oget_info) and unlimited ↵Neil Fortner2015-08-211-0/+45
|/ | | | | | | | selections in a region reference. Tested: ummon
* [svn-r27133] - Add a new attribute function characterstic for format:Mohamad Chaarawi2015-06-011-1/+1
| | | | | | | | * H5_ATTR_FORMAT(X,Y,Z) __attribute__((format(X, Y, Z))) - Rename UNUSED attribute characterstic to H5_ATTR_UNUSED. - Rename NORETURN attribute characterstic to H5_ATTR_NORETURN tested with h5committest.
* [svn-r26389] Revision 26387 failed with configure option ↵Larry Knox2015-03-081-1/+1
| | | | | | | | --with-default-api-version=v16. Changed H5Dcreate() to H5Dcreate2 in test/trefer.c line 633. Tested with h5committest and with --with-default-api-version=v16 on platypus.
* [svn-r26373] Fix for HDFFV-7959:Scot Breitenfeld2015-03-051-0/+75
| | | | | | H5Rdereference should check for default (HADDR_UNDEF) value and not continue processing and return so that ret value can be checked and handled properly Tested: jam (gnu)
* [svn-r25531] remove use of C99 PRI that failed on windows in dtypes.cMohamad Chaarawi2014-08-111-6/+7
| | | | fix bugs where hid_t were assumed to be 32 bit ints or herr_t.
* [svn-r25496] Description:Quincey Koziol2014-07-301-22/+22
| | | | | | | | | Merge 64-bit ID changes from branch to trunk. (Plus a few minor cleanups that aren't on the branch) Tested on: Mac OSX/64 10.9.4 (amazon) w/C++ & FORTRAN (h5committested on branch already for a week)
* [svn-r24681] Description:Scot Breitenfeld2014-02-041-2/+2
| | | | | | | | | Fix for HDF5/HDFFV-8620 H5Rget_name with NULL name parameter fails. The name parameter now excepts NULL, in which case the length of then name is returned. Tested: jam (intel and gnu)
* [svn-r24376] Updated all code to use HDmalloc, HDcalloc, and HDfree.Dana Robinson2013-10-311-20/+20
| | | | | | | | | | | | | Prep work for adding a memory free function, part of HDFFV-8551. Tested on: 32-bit LE linux (jam) * with C++, Fortran * with thread safety on These are minor changes (almost entirely renaming foo functions to HDfoo) that don't change functionality. This should not require a full commit test.
* [svn-r24020] Description:Quincey Koziol2013-08-171-1/+1
| | | | | | | | Clean up compiler warnings Tested on: Mac OSX/64 10.8.4 (amazon) w/C++ & FORTRAN (too minor to require h5committest)
* [svn-r22750] Removed check-in r22746 because it causes an error in objcopy ↵Scot Breitenfeld2012-09-101-5/+0
| | | | | | on Linew 64 byte. Will check-in again after the issue is resolved.
* [svn-r22746] Description:Scot Breitenfeld2012-09-091-0/+5
| | | | | | | | Fix for HDFFV-7959 H5Rdereference should check for default (HADDR_UNDEF) value and not continue processing and return so that ret value can be checked and handled properly. Added fix and test, reviewed: Tested: jam (gnu, intel)
* [svn-r21124] Issue 2763 - adding OAPL_ID as a new parameter to ↵Raymond Lu2011-07-191-0/+2
| | | | | | | | | H5Rdereference. A followup commit for r21117. I made 2 changes: 1. Quincey changed H5P_DATASET_ACCESS_DEFAULT to H5P_DEFAULT for the tests that call H5Rdereference. Inside H5R_dereference, I assigned H5P_DATASET_ACCESS_DEFAULT to OAPL_ID if it is H5P_DEFAULT. 2. I added the test for invalid OAPL_ID in trefer.c. Tested on jam, koala, heiwa.
* [svn-r21121] Description:Quincey Koziol2011-07-181-17/+17
| | | | | | | | | Switch from H5P_DATASET_ACCESS_DEFAULT to H5P_DEFAULT for calls to H5Rdereference2(). Tested on: Mac OS X/32 10.6.8 (amazon) w/debug (too minor to require h5committest)
* [svn-r21117] Issue 2763 - I added a new parameter of object access property ↵Raymond Lu2011-07-181-27/+101
| | | | | | list to the function H5Rdereference. It's called H5Rdereference2 now. H5Rdereference function has been deprecated to H5Rdereference1. I also added some test cases in trefer.c. Tested on jam, heiwa, and koala.
* [svn-r19237] Description:Quincey Koziol2010-08-121-26/+22
| | | | | | | | | | Clean up misc. compiler warnings. Tested on: FreeBSD/32 6.3 (duty) 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-r18666] Description:Quincey Koziol2010-04-291-7/+7
| | | | | | | Switch H5Rget_obj_type to H5Rget_obj_type2. Tested on: Linux/64 2.4 (amani) w/PGI compiler
* [svn-r18654] Bug 1741:Allen Byrne2010-04-281-0/+173
| | | | | | | Added test of H5R package API parameters to testhdf5 test, these test only the public API parameter checks. Tested: local linux
* [svn-r18031] Description:Quincey Koziol2009-12-171-3/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring r18030 from merge_metadata_journaling branch to trunk: Bring "brush clearing" changes (whitespace & style issues, mostly) from metadata_journaling branch to the "merging" branch, to converge the trunk and the metadata_journaling branch. Also, some other minor cleanups along the way. 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 (smirom) 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, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode Mac OS X/32 10.6.2 (amazon) in debug mode Mac OS X/32 10.6.2 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode
* | [svn-r15800] Description:Quincey Koziol2008-10-071-3/+3
|/ | | | | | | | | | | | | | | | | | | | | | | Bring file free space branch changes through r15795 into trunk, which includes a fair bit of code cleanup & rearrangement along with a couple of bug fixes also. Tested on: Mac OS X/32 10.5.5 (amazon) in debug mode Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) 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, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
* [svn-r14420] Description:Quincey Koziol2008-01-151-3/+3
| | | | | | | | Correct the prototype for H5Sselect_elements() to take an 'hsize_t *' for the coordinates, instead of 'hsize_t **'. Tested on: Mac OS X/32 10.5.1 (amazon)