diff options
author | Jonathan Kim <jkm@hdfgroup.org> | 2011-01-25 21:01:17 (GMT) |
---|---|---|
committer | Jonathan Kim <jkm@hdfgroup.org> | 2011-01-25 21:01:17 (GMT) |
commit | f134f15fcf371651c862b2ad7dbcc0ddfd5a0ed4 (patch) | |
tree | c43c496d61df8d194ec1acd4f8f0da5590221260 /tools | |
parent | 8bf1158b55fb26513bcb7168fdb392473959a37a (diff) | |
download | hdf5-f134f15fcf371651c862b2ad7dbcc0ddfd5a0ed4.zip hdf5-f134f15fcf371651c862b2ad7dbcc0ddfd5a0ed4.tar.gz hdf5-f134f15fcf371651c862b2ad7dbcc0ddfd5a0ed4.tar.bz2 |
[svn-r19992] Purpose:
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)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h5dump/CMakeLists.txt | 7 | ||||
-rw-r--r-- | tools/h5dump/testh5dump.sh.in | 3 | ||||
-rw-r--r-- | tools/testfiles/textlink.ddl | 15 |
3 files changed, 25 insertions, 0 deletions
diff --git a/tools/h5dump/CMakeLists.txt b/tools/h5dump/CMakeLists.txt index 7b2cfc2..ccc666d 100644 --- a/tools/h5dump/CMakeLists.txt +++ b/tools/h5dump/CMakeLists.txt @@ -83,6 +83,7 @@ IF (BUILD_TESTING) texternal.ddl textlinksrc.ddl textlinkfar.ddl + textlink.ddl tfamily.ddl tfill.ddl tfletcher32.ddl @@ -243,6 +244,7 @@ IF (BUILD_TESTING) textlinkfar.h5 textlinksrc.h5 textlinktar.h5 + textlink.h5 tfamily00000.h5 tfamily00001.h5 tfamily00002.h5 @@ -653,6 +655,8 @@ IF (BUILD_TESTING) textlinksrc.out.err textlinkfar.out textlinkfar.out.err + textlink.out + textlink.out.err tfamily.out tfamily.out.err tfill.out @@ -1089,6 +1093,9 @@ IF (BUILD_TESTING) ADD_H5_TEST (textlinksrc 0 textlinksrc.h5) ADD_H5_TEST (textlinkfar 0 textlinkfar.h5) + # test for dangling external links + ADD_H5_TEST (textlink 0 textlink.h5) + ####### test for dataset packed bits ###### IF (HDF5_USE_H5DUMP_PACKED_BITS) # Remove any output file left over from previous test run diff --git a/tools/h5dump/testh5dump.sh.in b/tools/h5dump/testh5dump.sh.in index 1310b2c..d845fae 100644 --- a/tools/h5dump/testh5dump.sh.in +++ b/tools/h5dump/testh5dump.sh.in @@ -582,6 +582,9 @@ TOOLTEST tfpformat.ddl -m %.7f tfpformat.h5 TOOLTEST textlinksrc.ddl textlinksrc.h5 TOOLTEST textlinkfar.ddl textlinkfar.h5 +# test for dangling external links +TOOLTEST textlink.ddl textlink.h5 + # test for dataset packed bits # Set up xCMD to test or skip. if test "$Have_Packed_Bits" = "yes"; then diff --git a/tools/testfiles/textlink.ddl b/tools/testfiles/textlink.ddl new file mode 100644 index 0000000..0a43c47 --- /dev/null +++ b/tools/testfiles/textlink.ddl @@ -0,0 +1,15 @@ +############################# +Expected output for 'h5dump textlink.h5' +############################# +HDF5 "textlink.h5" { +GROUP "/" { + EXTERNAL_LINK "extlink1" { + TARGETFILE "filename" + TARGETPATH "objname" + } + EXTERNAL_LINK "extlink2" { + TARGETFILE "anotherfile" + TARGETPATH "anotherobj" + } +} +} |