diff options
author | Jonathan Kim <jkm@hdfgroup.org> | 2011-04-21 23:54:22 (GMT) |
---|---|---|
committer | Jonathan Kim <jkm@hdfgroup.org> | 2011-04-21 23:54:22 (GMT) |
commit | 375dda3d58f49ef52148aa41aa6d5d6332528874 (patch) | |
tree | e370cbc618328471d15c0f2b84479cdda736c2a2 /tools/h5dump | |
parent | b120aff5cf29a9ab0d01594db44ee1f592f08c9e (diff) | |
download | hdf5-375dda3d58f49ef52148aa41aa6d5d6332528874.zip hdf5-375dda3d58f49ef52148aa41aa6d5d6332528874.tar.gz hdf5-375dda3d58f49ef52148aa41aa6d5d6332528874.tar.bz2 |
[svn-r20595] Purpose:
HDFFV-5948 - CHICAGO: Tools - implement missing external link test cases
Description:
Add three test cases for h5dump and h5ls.
- h5ls: external link to soft link with follow symlink.
- h5dump: external link to soft link with follow symlink.
- h5ls: external link to soft link without follow symlink.
Tested:
jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE)
Diffstat (limited to 'tools/h5dump')
-rw-r--r-- | tools/h5dump/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tools/h5dump/h5dumpgentest.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tools/h5dump/CMakeLists.txt b/tools/h5dump/CMakeLists.txt index 30b40da..258d344 100644 --- a/tools/h5dump/CMakeLists.txt +++ b/tools/h5dump/CMakeLists.txt @@ -251,6 +251,7 @@ IF (BUILD_TESTING) tdatareg.h5 tdset.h5 tempty.h5 + textlinksrc.h5 textlinkfar.h5 textlinksrc.h5 textlinktar.h5 diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c index d2af91c..0fe9b69 100644 --- a/tools/h5dump/h5dumpgentest.c +++ b/tools/h5dump/h5dumpgentest.c @@ -6896,6 +6896,11 @@ gent_extlinks(void) H5Lcreate_external(FILE62, "type", source_fid, "ext_link3", H5P_DEFAULT, H5P_DEFAULT); H5Lcreate_external(FILE62, "group/elink_t2", source_fid, "ext_link4", H5P_DEFAULT, H5P_DEFAULT); H5Lcreate_external(FILE62, "empty_group", source_fid, "ext_link5", H5P_DEFAULT, H5P_DEFAULT); +/* external link to soft link which linked to a dataset */ + H5Lcreate_external(FILE4_1, "/soft_dset1", source_fid, "ext2soft_link1", H5P_DEFAULT, H5P_DEFAULT); + +/* external link to dangle soft link */ + H5Lcreate_external(FILE4_1, "/soft_dangle", source_fid, "ext2softdangle_link1", H5P_DEFAULT, H5P_DEFAULT); /*------------------------------------------------------------------------- * create external link in the "far" file pointing to the source file |