summaryrefslogtreecommitdiffstats
path: root/windows/perform
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2009-10-22 21:23:59 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2009-10-22 21:23:59 (GMT)
commit5d27012937307b5027ae28d17715b12ea959cc29 (patch)
tree479538b56d79dae19dccdb295c85822872482d67 /windows/perform
parent3916f4ef4d59da0d8939ec06dcd6dc5079c2cc70 (diff)
downloadhdf5-5d27012937307b5027ae28d17715b12ea959cc29.zip
hdf5-5d27012937307b5027ae28d17715b12ea959cc29.tar.gz
hdf5-5d27012937307b5027ae28d17715b12ea959cc29.tar.bz2
[svn-r17726] Updated the errorlevel checking for better error handling in the windows batch files.
Diffstat (limited to 'windows/perform')
-rw-r--r--windows/perform/checkperformtests.bat21
1 files changed, 16 insertions, 5 deletions
diff --git a/windows/perform/checkperformtests.bat b/windows/perform/checkperformtests.bat
index 35895cf..4d789d1 100644
--- a/windows/perform/checkperformtests.bat
+++ b/windows/perform/checkperformtests.bat
@@ -22,6 +22,8 @@ rem
setlocal enabledelayedexpansion
pushd %~dp0
+set /a nerrors=0
+
rem Clean any variables starting with "HDF5_PERFTEST_", as we use these for our
rem tests. Also clear "HDF5_PERFTEST_TESTS", as we will be addding all of our tests
rem to this variable.
@@ -61,12 +63,16 @@ rem %2 - "dll" or nothing
rem Only add our parameters for batch scripts.
call !hdf5_perftest_%%a_test:.bat= %1 %2!
rem Exit early if test fails.
- if !errorlevel! neq 0 exit /b
+ if errorlevel 1 (
+ set /a nerrors=!nerrors!+1
+ echo.
+ echo.************************************
+ echo. Testing %%a ^(%1 %2^) FAILED
+ exit /b 1
+ )
)
rem If we get here, that means all of our tests passed.
- echo.All performance tests passed.
-
exit /b
@@ -85,6 +91,11 @@ rem on it for sending parameters. --SJW 9/6/07
rem Run the tests, passing in which version to run
call :run_tests %*
+ if "%nerrors%"=="0" (
+ echo.All performance tests passed.
+ ) else (
+ echo.** FAILED performance tests.
+ )
+
popd
- endlocal & exit /b
- \ No newline at end of file
+ endlocal & exit /b %nerrors%