summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/testh5dump.sh.in
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r23510] I merged the changes for DESY project from the trunk (r23496) ↵Raymond Lu2013-04-011-1/+68
| | | | | | into this 1.8 DESY branch. Tested with h5committest (duck failed with CMake because I don't know how to change test/CMakeLists.txt. I'll wait for Allen to do it).
* [svn-r23301] Allen Byrne2013-02-181-10/+43
|
* [svn-r23187] HDFFV-8169: Binary output of String types are wrongAllen Byrne2013-01-221-10/+122
| | | | | | Merge from trunk Add testfiles. Tested: local linux
* [svn-r22699] Merge trunk 22674 to 1.8:Allen Byrne2012-08-201-53/+14
| | | | | Remove checks for filters are available because the h5dump tests never used the filters in the tests. "-H" option excludes data. HDFFV-8125
* [svn-r22621] Purpose:Jonathan Kim2012-08-021-7/+17
| | | | | | | | | | | | | | | | HDFFV-8107 testh5diff will fail if build/test in HDF5 source tree Description: This is sub-task for "HDFFV-8105 testh5diff.sh uses the wrong operator (-a) in an if statement." From the HDFFV-8105's update, h5diff test failed if build&test is performed in HDF5 source tree because 'cp' try to copy test files to self dir. It's addressed by skipping if cp's src dir and dest dir is same. Also this applied for all other tools under src/tools dir. No change to the CMakeLists.txt files because CMake cautions/demands that in-source builds be avoided. Merged from HDF5 trunk r22617. Tested: jam (linux32-LE), koala (linux64-LE), ostrich (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), some manual tests as well
* [svn-r22571] HDFFV-7784,-8095,7936 merge from trunkAllen Byrne2012-07-131-31/+121
| | | | Tested: local linux with cmake
* [svn-r22551] Merge changes from Trunk revision 22550 for:Allen Byrne2012-07-111-0/+11
| | | | | | HDFFV-4206, -7953, -5930, -2687, -5942 Tested: local linux with cmake
* [svn-r22517] HDFFV-7782: h5import testfiles duplicated to match testname. ↵Allen Byrne2012-07-051-0/+12
| | | | | | (Consistent naming) Tested: local linux using CMake
* [svn-r22397] Merge trunk changes for HDFFV-7999 and h5dump test script to branchAllen Byrne2012-05-231-224/+5
|
* [svn-r22099] Add reference file extensions in new tests.Allen Byrne2012-03-201-1/+1
| | | | | Remove "STAR" test as some platforms vary in interpretation. Add new tets to windows legacy test script
* [svn-r22095] Correct test script errorsAllen Byrne2012-03-191-4/+3
| | | | Add new tests to legacy dos script
* [svn-r22088] HDFFV-7957(7958): Correct use of ERROR_STACK for h5dump and tools.Allen Byrne2012-03-191-0/+9
| | | | Tested: local linux after week in trunk
* [svn-r22043] HDFFV-7839: Dangling link should not display errorAllen Byrne2012-03-121-22/+26
| | | | | | | If a link is specified on the command with the -d option, call the handle_links function on error from the H5Dopen command. Updated test file results with error stack when link not found. Tested: trunk
* [svn-r22013] HDFFV-7560:Allen Byrne2012-03-021-151/+165
| | | | | | | | | | Merge 1.8 and h5dump/tools and tests based on tools library from trunk. Reduced warnings. HDFFV-7949: Remove duplicated functions in h5ls Tested: local linux,h5committest
* [svn-r21817] Description:Jonathan Kim2011-12-061-0/+4
| | | | | | | Add test case to unix test-script for "HDFFV-2567 - added test for be generated files with at least 9 attributes at root". It's committed previously as r21812 along with Cmake test. Tested: jam (linux32-LE), koala (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE)
* [svn-r21621] Add H5_ff_F90.f90 file to legacy fortran projectsAllen Byrne2011-10-201-16/+15
| | | | | | Replace contents of tnofilename.ddl with contents from tnofilename-with-packed-bits.ddl and use tnofilename.ddl in h5dump test scripts Test local linux: cmake
* [svn-r21064] Purpose:Jonathan Kim2011-07-011-37/+439
| | | | | | | | | | | Work for HDFFV-7602 - HDF5 command tools: Provide framework for reusable test files among tools Description: Merged from HDF5 trunk r21057 Provide framework to share test files among tools for tools test. Tested: jam (linux32-LE), koala (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE)
* [svn-r20886] purpose:Jonathan Kim2011-05-201-63/+11
| | | | | | | | | | | | | hdffv-7514 - GMQS: h5dump - improve effectiveness of testing scripts for handling expected output files description: Removed top 3 lines from expected output file and update testing scripts accordingly. These lines started to become maintainence headaches. First phase for h5dump test update. Next phase will be for h5ls. this is prerequisite for 'hdffv-7602 tools - upgrade tools' test scripts to share test files among tools, providing framework for test file re-usability.' Tested: jam (linux32-LE), koala (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), cmake (jam)
* [svn-r20772] Problem:Albert Cheng2011-05-071-3/+30
| | | | | | | | | | | | | | | | | Test scripts sometimes need to filter some system-specific messages from the actual output so that it can match the correct expected output. These filtering functions, ususally called "STDOUT_FILTER()" and "STDERR_FILTER()" were being repeated in individual test scripts. This becomes a maintenance problem and is error prone. Solution: Extract the two filter functions code to bin/output_filter.sh and then each test script sources it in. This allows reuse of coding and is much easier to maintain and to add new filtering. Tested: LLNL Zeus (linux64 cluster) and Dawndev (Blue-Gene cluster), both for serial mode only.
* [svn-r20722] Refactor ext lib import and install.Allen Byrne2011-05-041-65/+52
| | | | | | | | Change case of tools subtests to not conflict with tools tests. Add SOVERSION for linux Remove PACKED BITS define/idef blocks Bring r20721 from trunk
* [svn-r20579] Bug 1386 - allowing dimension size to be zero. I added test ↵Raymond Lu2011-04-201-0/+3
| | | | | | | | cases in the tests for h5dump and h5diff. I also added the test cases in the CMAKE script. Tested on jam. But I tested the same change in the trunk with h5committest.
* [svn-r20494] Purpose:Jonathan Kim2011-04-141-2/+1
| | | | | | | | | | | | | Fixed HDFFV-4342 : GMQS: h5dump test fails when source directory is read-only Description: Merged from HDF5 trunk r20488 and r20490. Updated h5dump test case script to prevent entire test failure upon source code directory is read-only. Tested: jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Cmake (jam, windows)
* [svn-r20385] Purpose:Jonathan Kim2011-03-311-1/+1
| | | | | | | | | | | | | | | | | | | Bug 2182 - h5ls and h5dump: update to use --enable-error-stack among tools, also update related descriptions Description: Merged from HDF5 trunk r20378 and r20379 Decided to use --enable-error-stack long option name only to display error stack messages from HDF5 lib among tools. Updated to unify option name to '--enable-error-stack' for printing HDF5 error stack messages for HDF5 tools. h5ls and h5dump for now. For h5ls, this replaces "-e/--errors" option, which is deprecated. For h5dump, remove -E from help page and RM , which was added by mistake before release1.8.7. Help page and RM got updated. Updated test case. Tested: jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE)
* [svn-r20213] fixed bug 2183Peter Cao2011-03-091-0/+3
|
* [svn-r20182] BZ2048: Add -E --enable-error-stack option to h5dump.Allen Byrne2011-03-041-0/+52
| | | | | | Brought from trunk after one week of tests. Tested: local linux
* [svn-r20133] Purpose:Jonathan Kim2011-02-211-0/+2
| | | | | | | | | | | | | | | | Fixing Bug 2092 - h5dump does not display index for a dataset Description: Merged from HDF5 trunk r20108 and r20132. 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), Cmake - jam
* [svn-r19992] Purpose:Jonathan Kim2011-01-251-0/+3
| | | | | | | | h5dump: add dangling external link test case as part of Chicago project. Merged from hdf5 trunk r19971. Tested: jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), linew (solaris-BE)
* [svn-r19916] 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. Solves problem on heiwa with Signed char of 8 bits Tested: local linux, heiwa
* [svn-r19904] Add missing .ddl extension onto packed bits command line in ↵Allen Byrne2011-01-041-36/+36
| | | | test script.
* [svn-r19897] Extend packed bits and testing to 64 bit integers.Allen Byrne2010-12-301-7/+51
| | | | Tested: local Linux
* [svn-r19280] 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-r19254] Description:Quincey Koziol2010-08-191-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | Bring r19252 & 19253 from trunk to 1.8 branch: 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 Coverity branch)
* [svn-r19198] [BZ1953]implementation for the proposed changes suggested by ↵Allen Byrne2010-08-091-0/+40
| | | | | | | 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-r18826] Added packed bits tests on Compound and Array data types.Albert Cheng2010-05-171-0/+4
| | | | Tested: AlbertPax. Will do h5committest after check in.
* [svn-r18796] Enhancement 1853:Albert Cheng2010-05-131-10/+33
| | | | | | | | | | | | | | | | | | | | | | Install packed-bits feature for h5dump. tools/h5dump/h5dump.c: Added lots of error checking into parse_mask_list() to catch and flagged packed-bits argument errors. For now, the packed bits are limited to 1 byte (8 bits) range. tools/h5dump/testh5dump.sh.in Added 10 new packed-bits test to verify normal operation and argument error detection. tools/lib/h5tools.h: tools/lib/h5tools_str.c: tools/lib/h5tools.c: Only name changes of the packed-bit global variables to reflect the nature of the variable better, IMO. Tested: albertPax (linux) ------------------------------------------------------------------------
* [svn-r18743] enhancement 1853:Albert Cheng2010-05-071-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | Install packed-bits feature for h5dump. Allen has installed the feature in the NPOESS feature branch. I ported it back to the v1.8 branch for v1.8.5 release. tools/h5dump/testh5dump.sh.in: Added tests for the packed-bits feature. tools/h5dump/h5dump.c tools/h5dump/h5dump.h Added code to parse and handled the packed-bits request. tools/lib/h5tools.h tools/lib/h5tools_str.c tools/lib/h5tools.c Added code to print packed-bits. tools/testfiles/tpackedbits2.ddl tools/testfiles/tnofilename-with-packed-bits.ddl tools/testfiles/tpackedbits.ddl Expected output files for packed-bits feature. Tested: h5committested the NPOESS branch. Tested in the linux VM machine in my Dove.
* [svn-r18053] 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-r17776] Bug fix: I added the testAlbert Cheng2009-10-281-1/+0
| | | | | | | | | | | TOOLTEST file_space.ddl -B file_space.h5 by accident (copied from the trunk version). Removed it. Tested: jam. (skipped h5committest since it is a trivial change of removing an action line. The file_space.ddl and file_space.h5 do not exist in this branch. (that was how I discovered my mistake.)
* [svn-r17607] ode Cleanup:Albert Cheng2009-10-071-12/+5
| | | | | | | | TFLOPS machine has retired long ago. Removed all code specific for its support. Test: h5committested.
* [svn-r17493] Bring changes from trunk to tools lib, h5dump and error handling.Allen Byrne2009-09-171-0/+3
| | | | Tested: h5committest, local linux
* [svn-r17290] 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-r16641] merge from trunk revs 16614, 16629Pedro Vicente Nunes2009-04-011-2/+5
| | | | | | | | | | | 1. #1501 (B1) tools bug if dataset is larger than 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). FURTHER ISSUES: the type in question ("double") has a different output cross platforms (e.g on liberty some garbage number is printed at some array locations) SOLUTION: defined an "int" type for this test. However the printing of such an array has a bogus output at least in one platform (FreeBsd), so eliminated the test run altogether and filed a bug report on this
* [svn-r15969] Pedro Vicente Nunes2008-10-271-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: windows, linux
* [svn-r15887] 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-r14948] Add a test for the floating point user defined printf formatPedro Vicente Nunes2008-05-061-1/+2
| | | | | | | | | | | | | | | | 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-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