summaryrefslogtreecommitdiffstats
path: root/windows/hl/examples/test_hl_cexamples.BAT
diff options
context:
space:
mode:
Diffstat (limited to 'windows/hl/examples/test_hl_cexamples.BAT')
-rw-r--r--windows/hl/examples/test_hl_cexamples.BAT55
1 files changed, 29 insertions, 26 deletions
diff --git a/windows/hl/examples/test_hl_cexamples.BAT b/windows/hl/examples/test_hl_cexamples.BAT
index be63180..33d2311 100644
--- a/windows/hl/examples/test_hl_cexamples.BAT
+++ b/windows/hl/examples/test_hl_cexamples.BAT
@@ -1,23 +1,26 @@
-@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.
+@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.
-@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 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
-:: Track errors
+rem Use delayed expansion to track changes inside a loop
+setlocal enabledelayedexpansion
+
+rem Track errors
set total_error=0
if %1.==. GOTO WRONG
@@ -36,25 +39,25 @@ GOTO WRONG
echo Testing %1 %2 version of High Level examples
echo.
-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 %%i in (ex_ds1 ex_lite1 ex_table01 ex_image1 ptExampleFL) do (
+ HLCexamples%1%2\%%i%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!
+ echo.
+ echo. All of the HL C Examples Passed!
) else (
-echo.
-echo. %total_error% HL C Examples Failed!
+ echo.
+ echo. %total_error% HL C Examples Failed!
)
GOTO END
:WRONG
echo The syntax of the command is incorrect.
-echo Use test_hl_cexamples /? for usage informtaion
+echo Use test_hl_cexamples /? for usage information
echo.
GOTO END