diff options
author | MuQun Yang <ymuqun@hdfgroup.org> | 2006-09-19 22:19:03 (GMT) |
---|---|---|
committer | MuQun Yang <ymuqun@hdfgroup.org> | 2006-09-19 22:19:03 (GMT) |
commit | 6917abeca2e954648a97da69ce48d3013c302be9 (patch) | |
tree | 9c0dc1b50f10c9e466d694718da9da481727cd94 /windows | |
parent | 79a3951338742434ce9c032e40e47d80f0949ad3 (diff) | |
download | hdf5-6917abeca2e954648a97da69ce48d3013c302be9.zip hdf5-6917abeca2e954648a97da69ce48d3013c302be9.tar.gz hdf5-6917abeca2e954648a97da69ce48d3013c302be9.tar.bz2 |
[svn-r12674] Add a batch file to test the validation of h5jam/h5unjam tool. The correctedness test is much harder to be implemented by using batch script on windows. Will handle this later.
Diffstat (limited to 'windows')
-rw-r--r-- | windows/tools/jamtest.bat | 86 | ||||
-rwxr-xr-x | windows/tools/testhdf5tools.BAT | 8 |
2 files changed, 92 insertions, 2 deletions
diff --git a/windows/tools/jamtest.bat b/windows/tools/jamtest.bat new file mode 100644 index 0000000..575df2c --- /dev/null +++ b/windows/tools/jamtest.bat @@ -0,0 +1,86 @@ +
+@REM Should copy all testing files to this directory
+@REM This batch file only tests the validation of h5jam and h5unjam tools on windows,
+@REM It will not check the correctedness of jammed/unjammed user-block.
+cd h5jam%2\%1
+echo off
+copy /Y ..\..\testfiles\tall.h5 tall.h5 >temp.txt
+copy /Y ..\..\testfiles\u10.txt u10.txt >temp.txt
+h5jam -u u10.txt -i tall.h5 -o ta2.h5
+echo h5jam -u u10.txt -i tall.h5 -o ta2.h5 PASSED
+h5jam -u u511.txt -i tall.h5 -o ta3.h5
+echo h5jam -u u511.txt -i tall.h5 -o ta3.h5 PASSED
+h5jam -u u512.txt -i tall.h5 -o ta4.h5
+echo h5jam -u u512.txt -i tall.h5 -o ta4.h5 PASSED
+h5jam -u u513.txt -i tall.h5 -o ta5.h5
+echo h5jam -u u513.txt -i tall.h5 -o ta5.h5 PASSED
+copy /Y tall.h5 ta.h5 >temp.txt
+h5jam -u u10.txt -i ta.h5
+echo h5jam -u u10.txt -i ta.h5 PASSED
+copy /Y tall.h5 ta.h5 >temp.txt
+h5jam -u u511.txt -i ta.h5
+echo h5jam -u u511.txt -i ta.h5 PASSED
+copy /Y tall.h5 ta.h5 >temp.txt
+h5jam -u u512.txt -i ta.h5
+echo h5jam -u u512.txt -i ta.h5 PASSED
+copy /Y tall.h5 ta.h5 >temp.txt
+h5jam -u u513.txt -i ta.h5
+echo h5jam -u u513.txt -i ta.h5 PASSED
+h5jam -u u10.txt -i twithub.h5 -o tax2.h5
+echo h5jam -u u10.txt -i twithub.h5 -o tax2.h5 PASSED
+h5jam -u u511.txt -i twithub.h5 -o tax3.h5
+echo h5jam -u u511.txt -i twithub.h5 -o tax3.h5 PASSED
+h5jam -u u512.txt -i twithub.h5 -o tax4.h5
+echo h5jam -u u512.txt -i twithub.h5 -o tax4.h5 PASSED
+h5jam -u u513.txt -i twithub.h5 -o tax5.h5
+echo h5jam -u u513.txt -i twithub.h5 -o tax5.h5 PASSED
+h5jam -u u10.txt -i twithub513.h5 -o tax6.h5
+echo h5jam -u u10.txt -i twithub513.h5 -o tax6.h5 PASSED
+h5jam -u u511.txt -i twithub513.h5 -o tax7.h5
+echo h5jam -u u511.txt -i twithub513.h5 -o tax7.h5 PASSED
+h5jam -u u512.txt -i twithub513.h5 -o tax8.h5
+echo h5jam -u u512.txt -i twithub513.h5 -o tax8.h5 PASSED
+h5jam -u u513.txt -i twithub513.h5 -o tax9.h5
+echo h5jam -u u513.txt -i twithub513.h5 -o tax9.h5 PASSED
+h5jam -u u10.txt -i twithub.h5 -o taz2.h5 --clobber
+echo h5jam -u u10.txt -i twithub.h5 -o taz2.h5 --clobber PASSED
+h5jam -u u511.txt -i twithub.h5 -o taz3.h5 --clobber
+echo h5jam -u u511.txt -i twithub.h5 -o taz3.h5 --clobber PASSED
+h5jam -u u512.txt -i twithub.h5 -o taz4.h5 --clobber
+echo h5jam -u u512.txt -i twithub.h5 -o taz4.h5 --clobber PASSED
+h5jam -u u513.txt -i twithub.h5 -o taz5.h5 --clobber
+echo h5jam -u u513.txt -i twithub.h5 -o taz5.h5 --clobber PASSED
+h5jam -u u10.txt -i twithub513.h5 -o taz6.h5 --clobber
+echo h5jam -u u10.txt -i twithub513.h5 -o taz6.h5 --clobber PASSED
+h5jam -u u511.txt -i twithub513.h5 -o taz7.h5 --clobber
+echo h5jam -u u511.txt -i twithub513.h5 -o taz7.h5 --clobber PASSED
+h5jam -u u512.txt -i twithub513.h5 -o taz8.h5 --clobber
+echo h5jam -u u512.txt -i twithub513.h5 -o taz8.h5 --clobber PASSED
+h5jam -u u513.txt -i twithub513.h5 -o taz9.h5 --clobber
+echo h5jam -u u513.txt -i twithub513.h5 -o taz9.h5 --clobber PASSED
+copy /Y twithub.h5 tay2.h5 >temp.txt
+h5jam -u u10.txt -i tay2.h5 --clobber
+echo h5jam -u u10.txt -i tay2.h5 --clobber PASSED
+copy /Y twithub.h5 tay3.h5 >temp.txt
+h5jam -u u511.txt -i tay3.h5 --clobber
+echo h5jam -u u511.txt -i tay3.h5 --clobber PASSED
+copy /Y twithub.h5 tay4.h5 >temp.txt
+h5jam -u u512.txt -i tay4.h5 --clobber
+echo h5jam -u u512.txt -i tay4.h5 --clobber PASSED
+copy /Y twithub.h5 tay5.h5 >temp.txt
+h5jam -u u513.txt -i tay5.h5 --clobber
+echo h5jam -u u513.txt -i tay5.h5 --clobber PASSED
+copy /Y twithub513.h5 tay6.h5 >temp.txt
+h5jam -u u10.txt -i tay6.h5 --clobber
+echo h5jam -u u10.txt -i tay6.h5 --clobber PASSED
+copy /Y twithub513.h5 tay7.h5 >temp.txt
+h5jam -u u511.txt -i tay7.h5 --clobber
+echo h5jam -u u511.txt -i tay7.h5 --clobber PASSED
+copy /Y twithub513.h5 tay8.h5 >temp.txt
+h5jam -u u512.txt -i tay8.h5 --clobber
+echo h5jam -u u512.txt -i tay8.h5 --clobber PASSED
+copy /Y twithub513.h5 tay9.h5 >temp.txt
+h5jam -u u513.txt -i tay9.h5 --clobber
+echo h5jam -u u513.txt -i tay9.h5 --clobber PASSED
+del temp.txt
+cd ../..
diff --git a/windows/tools/testhdf5tools.BAT b/windows/tools/testhdf5tools.BAT index 6a2a405..4356216 100755 --- a/windows/tools/testhdf5tools.BAT +++ b/windows/tools/testhdf5tools.BAT @@ -46,5 +46,9 @@ call importtest %1 %2 call repacktest %1 %2
@more repacktest%2_%1.txt >> toolstest_%1%2.txt
@del repacktest%2_%1.txt
-
-
+set p2=%2
+if %2==dll (
+echo "DLL version is not available for h5jam or h5unjam, SKIP the test"
+) else (
+call jamtest %1 %2
+)
|