mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
[svn-r19971] Purpose:
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)
This commit is contained in:
parent
c5988b31d3
commit
64651d6954
1
MANIFEST
1
MANIFEST
@ -1227,6 +1227,7 @@
|
||||
./tools/testfiles/texceedsubstride.ddl
|
||||
./tools/testfiles/textlink.h5
|
||||
./tools/testfiles/textlink.h5.xml
|
||||
./tools/testfiles/textlink.ddl
|
||||
./tools/testfiles/textlinkfar.ddl
|
||||
./tools/testfiles/textlinkfar.h5
|
||||
./tools/testfiles/textlinksrc.ddl
|
||||
|
@ -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
|
||||
@ -568,6 +570,8 @@ IF (BUILD_TESTING)
|
||||
textlinksrc.out.err
|
||||
textlinkfar.out
|
||||
textlinkfar.out.err
|
||||
textlink.out
|
||||
textlink.out.err
|
||||
tfamily.out
|
||||
tfamily.out.err
|
||||
tfill.out
|
||||
@ -1002,6 +1006,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
|
||||
|
@ -576,6 +576,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
|
||||
|
||||
|
||||
# Report test results and exit
|
||||
if test $nerrors -eq 0 ; then
|
||||
|
15
tools/testfiles/textlink.ddl
Normal file
15
tools/testfiles/textlink.ddl
Normal file
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
@ -610,6 +610,9 @@ rem ############################################################################
|
||||
rem tests for traversal of external links
|
||||
call :tooltest textlinksrc.ddl textlinksrc.h5
|
||||
call :tooltest textlinkfar.ddl textlinkfar.h5
|
||||
|
||||
rem test for dangling external links
|
||||
call :tooltest textlink.ddl textlink.h5
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user