diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2010-05-05 17:18:50 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2010-05-05 17:18:50 (GMT) |
commit | ca7fc8e96a70b06b08e1db21040056ae17a51906 (patch) | |
tree | 3d665b7a3119174158fc91a05fd8055f6ca7074b /windows/tools | |
parent | b24e2d4dd861b67a61fcf56be5975bcd4d37203b (diff) | |
download | hdf5-ca7fc8e96a70b06b08e1db21040056ae17a51906.zip hdf5-ca7fc8e96a70b06b08e1db21040056ae17a51906.tar.gz hdf5-ca7fc8e96a70b06b08e1db21040056ae17a51906.tar.bz2 |
[svn-r18708] Description:
Bring r18638:18704 from trunk to revise_chunks branch.
Tested on:
Mac OS X/32 10.6.3 (amazon) w/debug & production
(h5committest not required on this branch)
Diffstat (limited to 'windows/tools')
-rw-r--r-- | windows/tools/h5copy/testh5copy.bat | 54 | ||||
-rw-r--r-- | windows/tools/h5ls/testh5ls.bat | 2 |
2 files changed, 54 insertions, 2 deletions
diff --git a/windows/tools/h5copy/testh5copy.bat b/windows/tools/h5copy/testh5copy.bat index a0e164a..26f1b2c 100644 --- a/windows/tools/h5copy/testh5copy.bat +++ b/windows/tools/h5copy/testh5copy.bat @@ -49,6 +49,9 @@ set verbose=yes set srcfile1=h5copytst.h5
set srcfile2=h5copy_ref.h5
+set hdf_ext_src_file=h5copy_extlinks_src.h5
+set hdf_ext_trg_file=h5copy_extlinks_trg.h5
+
set indir=%CD%\testfiles
set outdir=%CD%\..\testfiles
@@ -378,7 +381,55 @@ rem <none> )
exit /b
-
+
+rem Copy external links.
+rem adding to the destination file each time compare the result
+rem
+rem Assumed arguments:
+rem <none>
+:copy_ext_links
+
+ set testfile=%indir%\%hdf_ext_src_file%
+ set fileout=%outdir%\%hdf_ext_src_file:.h5=.out.h5%
+
+ rem Remove any output file left over from previous test run
+ del /f %fileout% 2> nul
+
+ echo.Test copying external link directly without -f ext
+ call :tooltest -v -i %testfile% -o %fileout% -s /group_ext/extlink_dset -d /copy1_dset
+
+ echo.Test copying external link directly with -f ext
+ call :tooltest -f ext -i %testfile% -o %fileout% -v -s /group_ext/extlink_dset -d /copy2_dset
+
+ echo.Test copying dangling external link (no obj) directly without -f ext
+ call :tooltest -i %testfile% -o %fileout% -v -s /group_ext/extlink_notyet1 -d /copy_dangle1_1
+
+ echo.Test copying dangling external link (no obj) directly with -f ext
+ call :tooltest -f ext -i %testfile% -o %fileout% -v -s /group_ext/extlink_notyet1 -d /copy_dangle1_2
+
+ echo.Test copying dangling external link (no file) directly without -f ext
+ call :tooltest -i %testfile% -o %fileout% -v -s /group_ext/extlink_notyet2 -d /copy_dangle2_1
+
+ echo.Test copying dangling external link (no file) directly with -f ext
+ call :tooltest -f ext -i %testfile% -o %fileout% -v -s /group_ext/extlink_notyet2 -d /copy_dangle2_2
+
+ echo.Test copying a group contains external links without -f ext
+ call :tooltest -v -i %testfile% -o %fileout% -s /group_ext -d /copy1_group
+
+ echo.Test copying a group contains external links with -f ext
+ call :tooltest -f ext -i %testfile% -o %fileout% -v -f ext -s /group_ext -d /copy2_group
+
+ rem Verify that the file created above is correct
+ call :h5lstest %fileout%
+
+ rem Remove output file created, if the "no cleanup" environment variable is
+ rem not defined
+ if not defined HDF5_NOCLEANUP (
+ del /f %fileout%
+ )
+
+ exit /b
+
rem ##############################################################################
rem ### T H E T E S T S ###
rem ##############################################################################
@@ -386,6 +437,7 @@ rem ############################################################################ :main
call :copyobjects
call :copyreferences
+ call :copy_ext_links
if %nerrors% equ 0 (
echo.All h5copy tests passed.
diff --git a/windows/tools/h5ls/testh5ls.bat b/windows/tools/h5ls/testh5ls.bat index bf0cb5e..90321e5 100644 --- a/windows/tools/h5ls/testh5ls.bat +++ b/windows/tools/h5ls/testh5ls.bat @@ -216,7 +216,7 @@ rem ############################################################################ rem tests for error handling.
rem test for non-existing file
- call :tooltest nosuchfile.ls 0 nosuchfile.h5
+ call :tooltest nosuchfile.ls 1 nosuchfile.h5
rem test for variable length data types in verbose mode
call :tooltest tvldtypes2le.ls 0 -v tvldtypes1.h5
|