diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2008-04-30 19:23:26 (GMT) |
---|---|---|
committer | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2008-04-30 19:23:26 (GMT) |
commit | 5773fd34bc5adf59b4530d95ac9f0c0585902803 (patch) | |
tree | 456ad239799382e1f083fb7fc74399e43b471912 /windows/hl/examples/test_hl_cexamples.BAT | |
parent | 0138995d1ce2068db1f790503435a2121132d3ad (diff) | |
download | hdf5-5773fd34bc5adf59b4530d95ac9f0c0585902803.zip hdf5-5773fd34bc5adf59b4530d95ac9f0c0585902803.tar.gz hdf5-5773fd34bc5adf59b4530d95ac9f0c0585902803.tar.bz2 |
[svn-r14902] Merged fortran_1_8 branch changes r14505:14901 into the trunk. New fortran wrappers added.
Diffstat (limited to 'windows/hl/examples/test_hl_cexamples.BAT')
-rw-r--r-- | windows/hl/examples/test_hl_cexamples.BAT | 128 |
1 files changed, 52 insertions, 76 deletions
diff --git a/windows/hl/examples/test_hl_cexamples.BAT b/windows/hl/examples/test_hl_cexamples.BAT index 4fb6309..be63180 100644 --- a/windows/hl/examples/test_hl_cexamples.BAT +++ b/windows/hl/examples/test_hl_cexamples.BAT @@ -1,26 +1,23 @@ -@echo OFF
-rem Copyright by The HDF Group.
-rem Copyright by the Board of Trustees of the University of Illinois.
-rem All rights reserved.
-rem
-rem This file is part of HDF5. The full HDF5 copyright notice, including
-rem terms governing use, modification, and redistribution, is contained in
-rem the files COPYING and Copyright.html. COPYING can be found at the root
-rem of the source code distribution tree; Copyright.html can be found at the
-rem root level of an installed copy of the electronic HDF5 document set and
-rem is linked from the top-level documents page. It can also be found at
-rem http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have
-rem access to either file, you may request a copy from help@hdfgroup.org.
+@REM Copyright by The HDF Group.
+@REM Copyright by the Board of Trustees of the University of Illinois.
+@REM All rights reserved.
+@REM
+@REM This file is part of HDF5. The full HDF5 copyright notice, including
+@REM terms governing use, modification, and redistribution, is contained in
+@REM the files COPYING and Copyright.html. COPYING can be found at the root
+@REM of the source code distribution tree; Copyright.html can be found at the
+@REM root level of an installed copy of the electronic HDF5 document set and
+@REM is linked from the top-level documents page. It can also be found at
+@REM http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have
+@REM access to either file, you may request a copy from help@hdfgroup.org.
-rem This batch file is used to test HDF5 High Level C examples.
-rem Written by : Fang GUO
-rem Created : 07/26/2005
-rem Last Modified: 2/18/08
+@ECHO OFF
+@:: This batch file is used to test HDF5 High Level C examples.
+@:: Written by : Fang GUO
+@:: Created : 07/26/2005
+@:: Last Modified:
-rem Use delayed expansion to track changes inside a loop
-setlocal enabledelayedexpansion
-
-rem Track errors
+:: Track errors
set total_error=0
if %1.==. GOTO WRONG
@@ -31,70 +28,49 @@ if "%1"=="debug" GOTO CONFIG GOTO WRONG
:CONFIG
- if "%2"=="dll" GOTO TEST
- if %2.==. GOTO TEST
- GOTO WRONG
+if "%2"=="dll" GOTO TEST
+if %2.==. GOTO TEST
+GOTO WRONG
:TEST
- echo Testing %1 %2 version of High Level examples
- echo.
+echo Testing %1 %2 version of High Level examples
+echo.
- HLCexamples%1%2\ex_ds1%2.exe HLCexamples%1%2
-
- for /l %%a in (1,1,2) do (
- HLCexamples%1%2\ex_image%%a%2.exe HLCexamples%1%2
- if not !errorlevel!==0 set /A total_error=!total_error!+1
- )
-
- for /l %%a in (1,1,3) do (
- HLCexamples%1%2\ex_lite%%a%2.exe HLCexamples%1%2
- if not !errorlevel!==0 set /A total_error=!total_error!+1
- )
+for %%i in (ds lite table images packet) do (
+HLCexamples%1%2\ex_%%i%2
+if not %errorlevel%==0 set /A totalerror=totalerror+1
+)
- for /l %%a in (1,1,9) do (
- HLCexamples%1%2\ex_table0%%a%2.exe HLCexamples%1%2
- if not !errorlevel!==0 set /A total_error=!total_error!+1
- )
-
- for /l %%a in (10,1,12) do (
- HLCexamples%1%2\ex_table%%a%2.exe HLCexamples%1%2
- if not !errorlevel!==0 set /A total_error=!total_error!+1
- )
-
- for %%a in (FL VL) do (
- HLCexamples%1%2\ptExample%%a%2.exe HLCexamples%1%2
- if not !errorlevel!==0 set /A total_error=!total_error!+1
- )
- if %total_error%==0 (
- echo.
- echo. All of the HL C Examples Passed!
- ) else (
- echo.
- echo. %total_error% HL C Examples Failed!
- )
+if %total_error%==0 (
+echo.
+echo. All of the HL C Examples Passed!
+) else (
+echo.
+echo. %total_error% HL C Examples Failed!
+)
- GOTO END
+GOTO END
:WRONG
- echo The syntax of the command is incorrect.
- echo Use test_hl_cexamples /? for usage information
- echo.
- GOTO END
+echo The syntax of the command is incorrect.
+echo Use test_hl_cexamples /? for usage informtaion
+echo.
+GOTO END
:HELP
- echo Tests HDF5 High Level C examples.
- echo.
- echo test_hl_cexamples [OPTION]
- echo.
- echo Please use one of the following options!
- echo.
- echo test_hl_cexamples release test HDF5 HL C examples -- release version
- echo test_hl_cexamples release dll test HDF5 HL C examples -- release dll version
- echo test_hl_cexamples debug test HDF5 HL C examples -- debug version
- echo test_hl_cexamples debug dll test HDF5 HL C examples -- debug dll version
- echo test_hl_cexamples /? Help information
- echo.
- GOTO END
+echo Tests HDF5 High Level C examples.
+echo.
+echo test_hl_cexamples [OPTION]
+echo.
+echo Please use one of the following options!
+echo.
+echo test_hl_cexamples release test HDF5 HL C examples -- release version
+echo test_hl_cexamples release dll test HDF5 HL C examples -- release dll version
+echo test_hl_cexamples debug test HDF5 HL C examples -- debug version
+echo test_hl_cexamples debug dll test HDF5 HL C examples -- debug dll version
+echo test_hl_cexamples /? Help information
+echo.
+GOTO END
:END
|