summaryrefslogtreecommitdiffstats
path: root/windows/tools/tooltest.bat
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2006-10-25 20:11:29 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2006-10-25 20:11:29 (GMT)
commita88a102d5c05b97291b071e336472ce4da52439b (patch)
tree7986f2f7970842819dca10edc8a7cf7f7b0de131 /windows/tools/tooltest.bat
parent84bd65e8fcfc28a6a15d062d9a3d36eff674aa9b (diff)
downloadhdf5-a88a102d5c05b97291b071e336472ce4da52439b.zip
hdf5-a88a102d5c05b97291b071e336472ce4da52439b.tar.gz
hdf5-a88a102d5c05b97291b071e336472ce4da52439b.tar.bz2
[svn-r12812] Add h5copy tool tests for windows.
Diffstat (limited to 'windows/tools/tooltest.bat')
-rwxr-xr-xwindows/tools/tooltest.bat19
1 files changed, 16 insertions, 3 deletions
diff --git a/windows/tools/tooltest.bat b/windows/tools/tooltest.bat
index 2a9d448..854f7a8 100755
--- a/windows/tools/tooltest.bat
+++ b/windows/tools/tooltest.bat
@@ -34,7 +34,8 @@
:: Find string "dll" inside %exefile% and remove it
set test_exefile=%exefile:dll=%
- if %test_exefile%==h5repack goto REPACK
+ if %test_exefile%==h5repack goto REPACKCOPY
+ if %test_exefile%==h5copy goto REPACKCOPY
if %test_exefile%==h5diff goto COMMON
if %test_exefile%==h5dump goto DUMP
if %test_exefile%==h5ls goto COMMON
@@ -42,7 +43,8 @@
if %test_exefile%==h5import goto IMPORT
:: This block is for Repack test
-:REPACK
+:REPACKCOPY
+
::----------------------------------
::Test for h5repack or h5repackdll
::----------------------------------
@@ -119,7 +121,13 @@
::Recover "."
set var4=%var4:#=.%
set flagout=%var1% %var4%
-
+
+ if %test_exefile%==h5copy (
+ set testoutput=..\..\testfiles\out.h5copytst.h5
+ goto GTEST
+ )
+
+ if %test_exefile%==h5copy goto GTEST
::Based on the third parameter, we will go to different part.
:: GTEST means general test, no need to check zlib and szlib
@@ -166,10 +174,15 @@
:GTEST
%exefile% %flag%
..\..\h5diff%p2%\%p1%\h5diff%p2% %testinput% %testoutput% > %actual_output% 2>&1
+ if %test_exefile%==h5copy (
+ del %testoutput%
+ )
goto RESULTS
:: End of Repack tests
+:: h5copy tests
+
::H5diff and H5ls Tests
:COMMON