summaryrefslogtreecommitdiffstats
path: root/windows/hl/examples/test_hl_cexamples.BAT
diff options
context:
space:
mode:
authorScott Wegner <swegner@hdfgroup.org>2008-02-18 18:51:47 (GMT)
committerScott Wegner <swegner@hdfgroup.org>2008-02-18 18:51:47 (GMT)
commita937d785c0a3fa0f9342aef69f37d0a91216c620 (patch)
tree47ad5ea0e01acb647683435c58b309f43c2364ac /windows/hl/examples/test_hl_cexamples.BAT
parentd2eaed4f42a3351b304a32eae7f5ec9ba395a0cc (diff)
downloadhdf5-a937d785c0a3fa0f9342aef69f37d0a91216c620.zip
hdf5-a937d785c0a3fa0f9342aef69f37d0a91216c620.tar.gz
hdf5-a937d785c0a3fa0f9342aef69f37d0a91216c620.tar.bz2
[svn-r14605] Purpose: Rename Windows HL Example projects to match other platforms
Description: The collection of HL C examples that we distribute for Windows is incomplete. I wasn't aware of it until Pedro pointed it out, because we use different (although similar) names for the generated files. This checkin changes the naming to follow Linux, in preparation to add the rest of the HL examples to Windows. Note: I believe I've updated the MANIFEST accordingly, but I may have missed something-- I'll check on Linux shortly after this commit. Tested: VS2005 on WinXP VS.NET on WinXP
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