summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/testh5dump.sh.in
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r20206] Updated manifest and source code for fixing h5dump -y -o problemPeter Cao2011-03-091-0/+3
|
* [svn-r20168] BZ2048: Add -E --enable-error-stack option to h5dump.Allen Byrne2011-02-281-0/+51
| | | | Tested: local linux, heiwa, windows
* [svn-r20132] Purpose:Jonathan Kim2011-02-211-1/+1
| | | | | | | | | | | | | | | | | Fixing Bug 2092 - h5dump does not display index for a dataset Description: improve the test case from previous checkin r20108, which also display dataset via region reference. Previous Log: h5dump skip displaying array indices every certain number when the array type dataset is relatively big. The certain number varies according to the size of each array. This checkin fix the skipping array indices problem. This fix also correct indentation of the dataset data output. Tested: jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Cmake - jam
* [svn-r20108] Purpose:Jonathan Kim2011-02-151-0/+2
| | | | | | | | | | | | | | Fixing Bug 2092 - h5dump does not display index for a dataset Description: h5dump skip displaying array indices every certain number when the array type dataset is relatively big. The certain number varies according to the size of each array. This checkin fix the skipping array indices problem. This fix also correct indentation of the dataset data output. Tested: jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE)
* [svn-r19971] Purpose:Jonathan Kim2011-01-211-0/+3
| | | | | | | h5dump: add dangling external link test case as part of Chicago project. Tested: jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE)
* [svn-r19918] Add hh modifier to signed char printf format string. Added ↵Allen Byrne2011-01-051-0/+2
| | | | | | | h5dump test to verify that signed/unsigned datasets print correctly. Bring solution from 1.8 packed bits fix which solved problem on heiwa with Signed char of 8 bits Tested: local linux
* [svn-r19282] Fix test scripts (Cmake needs to capture output yet)Allen Byrne2010-08-231-7/+21
| | | | | | linux script needed -R and double compare: Tested: local linux
* [svn-r19252] Description:Quincey Koziol2010-08-191-0/+11
| | | | | | | | | | | | | | | | | | | | | | | Bring Coverity changes from branch to trunk: r19161: Fixed the part for matching the subset info with dataset r19189: BZ1646: h5dump does not check number of dimensions for subsetting parameters against the dataset Changed subset_t structure from holding hsize_t pointers to holding new subset_d pointers, which hold the original hsize_t pointer + len. this len is then checked against dataset ndims in the handle_dataset function of h5dump. Changed all references to use new data structure. Added tests for each subset parameter. r19190: Added new h5dump ddl files Tested on: Mac OS X/32 10.6.4 (amazon) w/debug & production (h5committested on branch)
* [svn-r19202] [BZ1953]implementation for the proposed changes suggested by ↵Allen Byrne2010-08-091-3/+41
| | | | | | | the "h5dump_output_option" RFC. This required that the region reference code be duplicated and reduced to allow the do_bin_output() function to understand region references. The container type-id also needed to be propagated into the do_bin_output() function and functions referenced (render_bin_output*). Existing tests tested the binary function, so only one test was added to test the region reference generated file. Tested: local linux
* [svn-r18055] Bug fix: 1192Albert Cheng2009-12-261-6/+9
| | | | | | | | Description: Fixed exit code (sometimes return code in Main) to follow the HDF5 standards. Tested: H5committested plus serial test in Jam.
* [svn-r17606] Code Cleanup:Albert Cheng2009-10-071-12/+4
| | | | | | | | TFLOPS machine has retired long ago. Removed all code specific for its support. Test: h5committested.
* [svn-r17582] Description:Quincey Koziol2009-10-021-0/+1
| | | | | | | | | | | | | | | | | | | | | Bring changes from file free space branch back to the trunk. *yay!* 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.5.8 (amazon) in debug mode Mac OS X/32 10.5.8 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode
* [svn-r17475] Added error handling to h5dump and region reference handling ↵Allen Byrne2009-09-141-0/+3
| | | | | | functions in the tools lib. Bring back from NPOESS. Added missing tests to h5dump test script for region references. Tested: local linux
* [svn-r17289] Added test targeted for bug 1520, which was fixed last week. ↵Allen Byrne2009-07-311-0/+1
| | | | | | The test generates an array datatype of ints larger than the display buffer. The bug was exposed when the buffer was reallocated. Tested: linux
* [svn-r16629] removed a h5dump test (array type) that has a different bogus ↵Pedro Vicente Nunes2009-03-301-2/+0
| | | | | | | | | output in frebsd (liberty) removed the call to the file generation in the test generation program removed the binary h5 and ddl from svn tested: linux
* [svn-r16620] commented a run that fails cross platforms (liberty, abe) ↵Pedro Vicente Nunes2009-03-261-1/+1
| | | | regarding a "double" print
* [svn-r16614] 3. #1501 (B1) tools bug if dataset is larger than ↵Pedro Vicente Nunes2009-03-251-0/+3
| | | | | | | | | | | | H5TOOLS_BUFSIZE limit. ISSUE : the tools use the following formula to read by hyperslabs: hyperslab_size[i] = MIN( dim_size[i], H5TOOLS_BUFSIZE / datum_size) where H5TOOLS_BUFSIZE is a constant defined of 1024K. This is OK as long as the datum_size does not exceed 1024K, otherwise we have a hyperslab size of 0 (since 1024K/(greater than 1024K) = 0). This affects h5dump. h5repack, h5diff SOLUTION: add a check for a 0 size and define as 1 if so. TEST FOR H5DUMP: Defined a case in the h5dump test generator program of such a type (an array type of doubles with a large array dimension, that was the case the user reported). Since the written file commited in svn would be around 1024K, opted for not writing the data (the part of the code where the hyperslab is defined is executed, since h5dump always reads the files). Defined a macro WRITE_ARRAY to enable such writing if needed. Added a run on the h5dump shell script. Added 2 new files to svn: tools/testfiles/tarray8.ddl, tools/testfiles/tarray8.h5. NOTE: while doing this I thought of adding this dataset case to an existing file, but that would add the large array output to those files (the ddls). The issue is that the file list is increasing. TEST FOR H5DIFF: for h5diff the check for reading by hyperslabs is H5TOOLS_MALLOCSIZE (128 * H5TOOLS_BUFSIZE) or 128 Mb. This makes it not possible to add such a file to svn, so used the same method as h5dump (only write the dataset if WRITE_ARRAY is defined). As opposed to h5dump, the hyperslab code is NOT executed when the dataset is empty (dataset is not read). Added the new dataset to existing files and shell run (tools/h5diff/testfiles/h5diff_dset1.h5 and tools/h5diff/testfiles/h5diff_dset2.h5 and output in tools/h5diff/testfiles/h5diff_80.txt). TEST FOR H5REPACK: similar issue as h5diff with the difference that the hyperslab code is run. Added a run to the shell script (with a filter, otherwise the code uses H5Ocopy). tested: linux (h5commitest failed , apparently it did not detect the code changes in /tools/lib that fix the bug: the error in an assertion in the hyperslab of 0. I am sure that making h5ccomitest --distclean will detect the new code , but don't want to wait more 3 hours :-) )
* [svn-r15991] Merge with 1.8 rev 15969Pedro Vicente Nunes2008-10-291-4/+12
| | | | | | | | | | | | | | | Introduced a new feature in the tools library regarding command line parsing In the definition of arguments, an "*" means that the switch can or can not have an optional argument. This "*" is put in the code regarding the letter definition, and it is transparent to the user (e.g b* instead of the previous b: ), where ":" notes a required argument after the letter (and no ":" or "*" notes no argument, mandatory) Used for the h5dump binary option -b It can be now 1) -b (defaults to NATIVE) 2) - b NATIVE 3) - b FILE 4) -b LE 5) -b BE Note: the keyword NATIVE replaces MEMORY This feature (-b with no argument) was tested with the sequence of h5dump to binary (NATIVE) then h5import to generate an HDF5 file from the binary file and h5diff to compare the 2 HDF5 files Tested: linux
* [svn-r15886] Purpose: Close bug 1332Neil Fortner2008-10-161-0/+4
| | | | | | | | | Description: Improved external link traversal of h5dump. h5dump will now properly avoid all cycles, even those spanning multiple files. Improvement to the output of committed datatypes. Committed datatypes are now checked for uniqueness (like other objects). Tests added for these cases. Tested: kagiso, linew, smirom (h5committest)
* [svn-r14934] Add a test for the floating point user defined printf formatPedro Vicente Nunes2008-05-051-0/+4
| | | | | | | | | | | | | | | | Usage is -m T, --format=T Where T - is a string containing the floating point format, e.g '%.3f' The test consists of writing a number with 7 fractional digits (default precision display of %f is 6 digits) and have the 7 digits displayed with -m %.7f fpformat.h5 Tested: windows, linux, solaris Note: the output file was generated in linux, it may be possible that platforms other than the ones tested have a different representation of the number
* [svn-r14903] Undoing change committed in r14902.Scot Breitenfeld2008-04-301-2/+1
|
* [svn-r14902] Merged fortran_1_8 branch changes r14505:14901 into the trunk. ↵Scot Breitenfeld2008-04-301-1/+2
| | | | New fortran wrappers added.
* [svn-r14716] remove a commented test call that was calling for an invalid ↵Pedro Vicente Nunes2008-03-101-2/+1
| | | | | | block selection tested: linux
* [svn-r14437] bug fix for h5dump subsetting (deal with blocks)and new test runsPedro Vicente Nunes2008-01-161-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | add a check for block overlap after the command line parsing * Algorithm * * In a inner loop, the parameters from SSET are translated into temporary * variables so that 1 row is printed at a time (getting the coordinate indices * at each row). * We define the stride, count and block to be 1 in the row dimension to achieve * this and advance until all points are printed. * An outer loop for cases where dimensionality is greater than 2D is made. * In each iteration, the 2D block is displayed in the inner loop. The remaining * slower dimensions above the first 2 are incremented one at a time in the outer loop * * The element position is obtained from the matrix according to: * Given an index I(z,y,x) its position from the beginning of an array * of sizes A(size_z, size_y,size_x) is given by * Position of I(z,y,x) = index_z * size_y * size_x * + index_y * size_x * + index_x * tested: windows, linux
* [svn-r14414] revert the subsetting calls of h5dump to 1 size block, still a ↵Pedro Vicente Nunes2008-01-151-2/+2
| | | | | | bug with size > 1 tested: linux
* [svn-r14412] more progress on the block hyperslab bug, clean code Pedro Vicente Nunes2008-01-141-1/+1
| | | | | | modified the 3D test case for subsetting with block and stride factors tested: windows, linux
* [svn-r14411] more progress on the block hyperslab bug, clean code Pedro Vicente Nunes2008-01-141-1/+1
| | | | | | | modified the 2D test case for subsetting with block and stride factors tested: windows, linux
* [svn-r14409] more progress on the block hyperslab bug, clean code Pedro Vicente Nunes2008-01-141-2/+9
| | | | | | modified the 1D test case for subsetting with block and stride factors tested: windows, linux
* [svn-r14188] added a named datatype with attributes to the h5 file that ↵Pedro Vicente Nunes2007-10-051-1/+1
| | | | | | shows attributes with several iteration orders tested: windows, linux
* [svn-r14182] Pedro Vicente Nunes2007-10-041-0/+7
| | | | | | | Added support for displaying several iteration orders on dataset attributes, 4 new tests in test script (name ascending, name descending, creation_order ascending, creation_order descending) New h5 file is made on the generator program Tested: windows, linux
* [svn-r14177] bug fix: Pedro Vicente Nunes2007-10-021-6/+6
| | | | | uncomment code that cleans output files, that was accidently left commented tested: linux
* [svn-r14173] Pedro Vicente Nunes2007-10-021-4/+43
| | | | | | | | | | | | | | | | | | | bug fix the binary option expects a full path in -o TOOLTEST tbin1.ddl -d integer -o $TESTDIR/out1.bin -b LE tbinary.h5 and it prints it in the expected output , making it absolutely not portable Solution: made a special macro function TOOLTEST1 identical to TOOLTEST except that it does not print the Expected output header ############################# Expected output for 'h5dump -d integer -o /home/pvn/kagiso/build_hdf5/tools/h5dump/../testfiles/out1.bin -b LE tbinary.h5' ############################# Tested : linux
* [svn-r14172] Pedro Vicente Nunes2007-10-021-22/+30
| | | | | | | | | 1) added 5 new tests for the group creation order 2) modified the h5dump test script to automatically generated non existing (new) output files 3) cleaning of unused DDL files 4) new modified DDL files include tcomp-3.ddl ( new form of named datatype) and the binary output files tested : linux
* [svn-r13905] Purpose:Albert Cheng2007-06-251-43/+45
| | | | | | | | | | | | | | | | | | | | | | | | Bug fix. Description: The "h5dump -o ..." test generates temporay files in the testfiles of the source code and later on remove them. This could cuase a racing condition if more than one --srcdir build is using the same copy of the source code. Since they use the same file name in the testfiles, they may conflict with each other. Solution: Changed to generate the temporary files in the build-dir's own testfiles directory. Since the build-dir can have different names, the CMP of expected output now skip the first three lines which are label lines that contains the location of the temporary. Also removed the CREATE code since actual files created now cannot be blindly copied to the expect files. Also, expected files should be create by explicit action and careful inspection of files generated. Tested platform: Done in kagiso, both by --src-dir and in-place build.
* [svn-r13775] Pedro Vicente Nunes2007-05-211-10/+92
| | | | | | | Modified the current h5dump test script to use h5import/h5diff calls to validate the binary output. At this moment it can only be used with the native test, since h5import does not deal with input endianess. tested: linux, sunos 5.10
* [svn-r13507] Pedro Vicente Nunes2007-03-121-8/+12
| | | | make 1.7 files similar to 1.6
* [svn-r13285] Pedro Vicente Nunes2007-02-121-3/+0
| | | | remove a test that was incorrectly added previously, that was not the feature that had to be tested
* [svn-r13283] Pedro Vicente Nunes2007-02-121-0/+3
| | | | added a test for the printing of long long numbers greater than 4GB
* [svn-r13280] Pedro Vicente Nunes2007-02-121-0/+6
| | | | 2 tests that were previously incorporated inside the array indices test file were separated from it. These are a test with a dataset with dimensions greater tan 4GB and a test to read by hyperslabs
* [svn-r13261] Updated copyright notices.Albert Cheng2007-02-071-2/+3
| | | | Tested: visual inspection as they are all just comments.
* [svn-r13134] Pedro Vicente Nunes2007-01-101-3/+4
| | | | | | | | | | New version of the function h5tools_dump_simple_subset, to display subsetting. The new algorithm is: Introduced an outer loop for cases where dimensionality is greater than 2D. In each iteration a 2D block is displayed by rows in a inner loop. The remainning slower dimensions above the first 2 are incremented one at a time in the outer loop Note: when blocks are introduced, the display is not correct. This is a bug that requires an improvement of the algorithm.
* [svn-r13132] Pedro Vicente Nunes2007-01-101-0/+3
| | | | Fixed #720 h5dump: improve how region references are displayed. h5dump now uses the new API function H5Rget_name to display the name of the dataset referenced instead of its ID. Added a case to the script test file
* [svn-r13064] Pedro Vicente Nunes2006-12-141-0/+6
| | | | | | | | | | | | | | | | | | | Fix several bugs 1) the parsing of subsetting was using atoi to convert the parameter to an int, which caused problems for numbers greater that int. Substitute with atof 2) the printing of indices in the subsetting case was not being done. Solution: calculate the element position at the start of the subsetting using the algorythm Given an index I(z,y,x) its position from the beginning of an array of sizes A(size_z, size_y,size_x) is given by Position of I(z,y,x) = index_z * size_y * size_x + index_y * size_x + index_x And pass that position to the function that dumps data, h5tools_dump_simple_data. 3) several index counters were declared as int, use hsize_t instead 4) modified the test generation program so that it includes test cases for subsetting of 1d, 2d, 3d, and 4d arrays and add these tests to the shell script
* [svn-r12713] Pedro Vicente Nunes2006-10-031-4/+4
| | | | | | added new tests with different datatypes for h5dump binary output tested: kagiso
* [svn-r12683] Pedro Vicente Nunes2006-09-261-4/+4
| | | | | | | | | | | | | | | | | | revised binary flags, added a new file to the test generator program to be used in the binary tests usage is now -o F, --output=F Output raw data into file F -b F, --binary=F Binary output, of form F (into file -o F). Recommended usage is with --dataset=P Form F of binary output is: MEMORY for memory type, FILE for the disk file type, LE or BE for pre-existing little or big endian types example ./h5dump -d integer -b MEMORY -o out.bin tbinary.h5
* [svn-r12544] Description:Quincey Koziol2006-08-041-0/+4
| | | | | | | | | | | | | | Clean up compiler warnings/failures in test/links.c, especially when --disable-production flag used with --enable-group-revision Modify binary dumping in h5dump to clean up files created [a band-aid solution to not actually creating the files in the srcdir, but better than just leaving the files around... :-/ ] Tested: FreeBSD 4.11 (sleipnir) (w/ configure flags above) Too minor to require h5committest
* [svn-r12528] Added User-Defined links to the library.James Laird2006-08-021-1/+3
| | | | | | | | | | | | | | Users can create external links using H5L_create_external(). These links point to an object in another HDF5 file. Users can alter the behavior of external links or create new kinds of links by registering callbacks using the H5L interface. Added tests, tools support, etc. Also a number of other, minor changes have been made (some restructuring of the H5L interface, for instance). Additional documentation and examples are forthcoming.
* [svn-r12518] h5dump binary output:Pedro Vicente Nunes2006-07-311-2/+3
| | | | | | | 1. changed the -F flag option names to "BE and "LE" for big and little endian 2. added a more verbose usage message for these options 3. add a new test 4. add a make clean instruction to *.bin
* [svn-r12513] Pedro Vicente Nunes2006-07-281-2/+1
| | | | | new feature h5dump binary output. use little and big endian type conversions
* [svn-r12444] Purpose:Pedro Vicente Nunes2006-06-281-0/+3
| | | | | | | | | | | | | | | | | | | | new feature Description: added support for h5dump to dump binary data using the file type format added one test to the test script that tests this Solution: Platforms tested: mir shanti copper Misc. update: