diff options
author | MuQun Yang <ymuqun@hdfgroup.org> | 2006-09-11 20:35:15 (GMT) |
---|---|---|
committer | MuQun Yang <ymuqun@hdfgroup.org> | 2006-09-11 20:35:15 (GMT) |
commit | f546cc8972285b1f6b8fd6c56492f780cb84eac3 (patch) | |
tree | 3db69fca94d2d9fc559cea1470b0d27fa3af7d4a /windows/tools/repacktest.BAT | |
parent | 6442a5dd9c0afc1a185dc555813c5631090a9a0a (diff) | |
download | hdf5-f546cc8972285b1f6b8fd6c56492f780cb84eac3.zip hdf5-f546cc8972285b1f6b8fd6c56492f780cb84eac3.tar.gz hdf5-f546cc8972285b1f6b8fd6c56492f780cb84eac3.tar.bz2 |
[svn-r12658] There was a bug in the repacktest.BAT on windows.
If either szip or zlib filter was not present, the batch still tried to use h5repack tool to test the data compression feature. Therefore the h5repack test failed.
Fixed the bug. Now if the compression filter is not present, that particular repack test will be skipped.
Diffstat (limited to 'windows/tools/repacktest.BAT')
-rwxr-xr-x | windows/tools/repacktest.BAT | 52 |
1 files changed, 49 insertions, 3 deletions
diff --git a/windows/tools/repacktest.BAT b/windows/tools/repacktest.BAT index aa36438..d3b58de 100755 --- a/windows/tools/repacktest.BAT +++ b/windows/tools/repacktest.BAT @@ -252,36 +252,82 @@ call %tooltest% %test4% %nodiff% ::all filters
::------------
set flag=-i %test4% -o %output4% -f dset2:SHUF -f dset2:FLET -f dset2:SZIP=8,NN -f dset2:GZIP=1 -l dset2:CHUNK=20x10
-call %tooltest% %test4% %nodiff%
+:: Check whether szlib or zlib is available, if either library is not available, skip the test.
+
+if "%HDF5_EXT_SZIP%"=="" (
+ call %tooltest% %test4% %nodiff% skip
+ )else (
+ if "%HDF5_EXT_ZLIB%"=="" (
+ call %tooltest% %test4% %nodiff% skip
+ ) else (
+ call %tooltest% %test4% %nodiff%
+ )
+ )
:: ***********************************************************
-:: the following tests assume the input files have filters
+:: If the filter exists,the following tests assume the input files have filters
:: ***********************************************************
::-----------
:: szip copy
::-----------
set flag=-i %test_szip% -o %output_szip%
+
+::-----------
+:: The following checks whether szip library is available,
+:: If not, skip the test.
+::-----------
+if "%HDF5_EXT_SZIP%"=="" goto SKIP_SZIP_COPY
call %tooltest% %test_szip% %nodiff%
+: SKIP_SZIP_COPY
+call %tooltest% %test_szip% %nodiff% skip
::------------
::szip remove
::------------
set flag=-i %test_szip% -o %output_szip% -f dset_szip:NONE
+
+::-----------
+:: The following checks whether szip library is available,
+:: If not, skip the test.
+::-----------
+if "%HDF5_EXT_SZIP%"=="" goto SKIP_SZIP_REMOVE
call %tooltest% %test_szip% %nodiff%
+: SKIP_SZIP_REMOVE
+call %tooltest% %test_szip% %nodiff% skip
+
::--------------
:: deflate copy
::--------------
set flag=-i %test_deflate% -o %output_deflate%
-call %tooltest% %test_deflate% %nodiff%
+
+::-----------
+:: The following checks whether zlib library is available,
+:: If not, skip the test.
+::-----------
+if "%HDF5_EXT_ZLIB%"=="" goto SKIP_ZLIB_COPY
+call %tooltest% %test_deflate% %nodiff%
+
+: SKIP_ZLIB_COPY
+call %tooltest% %test_deflate% %nodiff% skip
::---------------
:: deflate remove
::---------------
set flag=-i %test_deflate% -o %output_deflate% -f dset_deflate:NONE
+
+::-----------
+:: The following checks whether zlib library is available,
+:: If not, skip the test.
+::-----------
+if "%HDF5_EXT_ZLIB%"=="" goto SKIP_ZLIB_REMOVE
call %tooltest% %test_deflate% %nodiff%
+: SKIP_ZLIB_REMOVE
+call %tooltest% %test_deflate% %nodiff% skip
+
+
::--------------
:: shuffle copy
::--------------
|