diff options
author | Scott Wegner <swegner@hdfgroup.org> | 2008-05-12 20:47:31 (GMT) |
---|---|---|
committer | Scott Wegner <swegner@hdfgroup.org> | 2008-05-12 20:47:31 (GMT) |
commit | 8380b1827ed138815f76ec46683e7e4a54c77acf (patch) | |
tree | 7617eb80ecab140e494a5fcf975fc989115bf5c9 /windows/tools/h5dump | |
parent | 7f54a6cbebc281c1a287f61fa770433574ec6864 (diff) | |
download | hdf5-8380b1827ed138815f76ec46683e7e4a54c77acf.zip hdf5-8380b1827ed138815f76ec46683e7e4a54c77acf.tar.gz hdf5-8380b1827ed138815f76ec46683e7e4a54c77acf.tar.bz2 |
[svn-r14983] Purpose: Update h5dump test script on Windows
Description:
One test has been added to h5dump test for custom output formats. This adds the test on Windows as well.
Tested:
VS2005 on WinXP
Diffstat (limited to 'windows/tools/h5dump')
-rw-r--r-- | windows/tools/h5dump/testh5dump.bat | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/windows/tools/h5dump/testh5dump.bat b/windows/tools/h5dump/testh5dump.bat index b8e8210..498f5ef 100644 --- a/windows/tools/h5dump/testh5dump.bat +++ b/windows/tools/h5dump/testh5dump.bat @@ -16,7 +16,7 @@ rem rem Tests for the h5dump tool
rem
rem Created: Scott Wegner, 8/23/07
-rem Modified: Scott Wegner, 8/27/07
+rem Modified: Scott Wegner, 5/12/08
rem
setlocal enabledelayedexpansion
@@ -70,9 +70,9 @@ rem set test_msg=!test_msg! %%~nxa
) )
)
- rem We need to replace PERCENT-ZERO here with "%0" for the tfamily test.
- rem --SJW 8/24/07
- set test_msg=!test_msg:PERCENT-ZERO=%%0!
+ rem We need to replace PERCENT here with "%" for tests that use a percent
+ rem sign. --SJW 5/12/08
+ set test_msg=!test_msg:PERCENT=%%!
echo.%test_msg:~0,69% %1
exit /b
@@ -106,15 +106,15 @@ rem rem Run test.
(
- rem We need to replace PERCENT-ZERO here with "%0" for the tfamily test.
+ rem We need to replace PERCENT here with "%" for tests that use percents
rem Also remove quotes here, because Linux 'echo' command strips them.
rem --SJW 8/24/07
- set params_echo=!params:PERCENT-ZERO=%%0!
+ set params_echo=!params:PERCENT=%%!
echo.#############################
echo.Expected output for 'h5dump !params_echo:"=!'
echo.#############################
pushd %CD%\..\testfiles
- %dumper_bin% !params:PERCENT-ZERO=%%0!
+ %dumper_bin% !params:PERCENT=%%!
popd
) > %actual% 2> %actual_err%
type %actual_err% >> %actual%
@@ -166,7 +166,7 @@ rem use for the binary tests that expect a full path in -o rem Run test.
(
pushd %CD%\..\testfiles
- %dumper_bin% !params:PERCENT-ZERO=%%0!
+ %dumper_bin% !params:PERCENT=%%!
popd
) > %actual% 2> %actual_err%
type %actual_err% >> %actual%
@@ -386,10 +386,10 @@ rem ############################################################################ rem test the --filedriver flag
call :tooltest tsplit_file.ddl --filedriver=split tsplit_file
- rem On Windows, we pass "PERCENT-ZERO", and let other calls replace it with
- rem the "%0". We cannot pass "%0" directly because Windows interprets it as
+ rem On Windows, we pass "PERCENT", and let other calls replace it with
+ rem the "%". We cannot pass "%" directly because Windows interprets it as
rem the name of the script. --SJW 8/24/07
- call :tooltest tfamily.ddl --filedriver=family tfamilyPERCENT-ZERO5d.h5
+ call :tooltest tfamily.ddl --filedriver=family tfamilyPERCENT05d.h5
call :tooltest tmulti.ddl --filedriver=multi tmulti
rem test for files with group names which reach > 1024 bytes in size
@@ -591,6 +591,11 @@ rem ############################################################################ call :tooltest torderattr3.ddl -H --sort_by=creation_order --sort_order=ascending torderattr.h5
call :tooltest torderattr4.ddl -H --sort_by=creation_order --sort_order=descending torderattr.h5
+ rem tests for floating point user defined printf format
+ rem Note: Make sure to use PERCENT rather than "%", because Windows needs
+ rem to handle it specially. --SJW 5/12/08
+ call :tooltest tfpformat.ddl -m PERCENT.7f tfpformat.h5
+
if %nerrors% equ 0 (
|