diff options
author | Jonathan Kim <jkm@hdfgroup.org> | 2010-07-07 18:52:04 (GMT) |
---|---|---|
committer | Jonathan Kim <jkm@hdfgroup.org> | 2010-07-07 18:52:04 (GMT) |
commit | af749bafb7004f116fa5bc062bc4498b10814ca2 (patch) | |
tree | 30b2515f960d035385500faa8ce2c289447121a5 /tools/h5ls/CMakeLists.txt | |
parent | be5d63141038a46db28d1f3679de60d643f9e717 (diff) | |
download | hdf5-af749bafb7004f116fa5bc062bc4498b10814ca2.zip hdf5-af749bafb7004f116fa5bc062bc4498b10814ca2.tar.gz hdf5-af749bafb7004f116fa5bc062bc4498b10814ca2.tar.bz2 |
[svn-r19051] Purpose:
Add --no-dangling-links option to h5ls.
Description:
Related to "Bug 1830 - Following an dangling external link in h5ls should set non-zero return code."
If --no-dangling-links option is specified and any dangling link is found, return exit code 1 (error).
Tested:
jam, amani and heiwa
Diffstat (limited to 'tools/h5ls/CMakeLists.txt')
-rw-r--r-- | tools/h5ls/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/h5ls/CMakeLists.txt b/tools/h5ls/CMakeLists.txt index c2d9100..0a43c84 100644 --- a/tools/h5ls/CMakeLists.txt +++ b/tools/h5ls/CMakeLists.txt @@ -186,6 +186,17 @@ IF (BUILD_TESTING) ADD_H5_TEST (textlinksrc-6-old 0 -w80 -E textlinksrc.h5) ADD_H5_TEST (textlinksrc-7-old 0 -w80 -E textlinksrc.h5/ext_link1) + # tests for no-dangling-links + # if this option is given on dangling link, h5ls should return exit code 1 + # when used alone , expect to print out help and return exit code 1 + ADD_H5_TEST (textlinksrc-nodangle-1 1 -w80 --no-dangling-links textlinksrc.h5) + # external dangling link - expected exit code 1 + ADD_H5_TEST (textlinksrc-nodangle-2 1 -w80 --follow-symlinks --no-dangling-links textlinksrc.h5) + # soft dangling link - expected exit code 1 + ADD_H5_TEST (tsoftlinks-nodangle-1 1 -w80 --follow-symlinks --no-dangling-links tsoftlinks.h5) + # when used file with no dangling links - expected exit code 0 + ADD_H5_TEST (thlinks-nodangle-1 0 -w80 --follow-symlinks --no-dangling-links thlink.h5) + # tests for hard links ADD_H5_TEST (thlink-1 0 -w80 thlink.h5) |