diff options
author | Scott Wegner <swegner@hdfgroup.org> | 2007-09-10 19:14:08 (GMT) |
---|---|---|
committer | Scott Wegner <swegner@hdfgroup.org> | 2007-09-10 19:14:08 (GMT) |
commit | 43bb1ba8e53c3eb23448baba68485222514ab992 (patch) | |
tree | e32be74f0faad61cb3c3b29ead9849be5dc59a4d /windows/hdf5check.BAT | |
parent | 33efca34cb30bcf7e17f6e3aa580233bd58a0075 (diff) | |
download | hdf5-43bb1ba8e53c3eb23448baba68485222514ab992.zip hdf5-43bb1ba8e53c3eb23448baba68485222514ab992.tar.gz hdf5-43bb1ba8e53c3eb23448baba68485222514ab992.tar.bz2 |
[svn-r14138]
Diffstat (limited to 'windows/hdf5check.BAT')
-rwxr-xr-x | windows/hdf5check.BAT | 592 |
1 files changed, 134 insertions, 458 deletions
diff --git a/windows/hdf5check.BAT b/windows/hdf5check.BAT index 423a115..929abab 100755 --- a/windows/hdf5check.BAT +++ b/windows/hdf5check.BAT @@ -1,460 +1,136 @@ -@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 File Name: hdf5check.bat
-@REM This batch file is used to test HDF5 Libraries and Tools.
-@REM There are 4 options for this batch file:
-@REM 1. hdf5check -- HDF5 tools and c library tests
-@REM 2. hdf5check enablecpp -- HDF5 tools and c/c++ library tests
-@REM 3. hdf5check enablefortran -- HDF5 tools and c/fortran library tests
-@REM 4. hdf5check enableall -- HDF5 tools and c/c++/fortran library tests
-@REM By Xuan Bai
-@REM Created: Aug. 12, 2004
-@REM Last Updated: Aug. 16, 2004
-
-@ECHO OFF
-echo install_dll
-call install_dll
-
-echo install_hldll
-call install_hldll
-
-type nul > check_results.txt
-echo ***************************************************************************** >> check_results.txt
-echo HDF5 C Library Tests -- Release>> check_results.txt
-echo ***************************************************************************** >> check_results.txt
-
-cd test
-echo hdf5test release
-call hdf5test release >> ..\check_results.txt
-
-echo. >> ..\check_results.txt
-echo ***************************************************************************** >> ..\check_results.txt
-echo HDF5 Timing Test -- Release>> ..\check_results.txt
-echo ***************************************************************************** >> ..\check_results.txt
-echo hdf5timingtest release
-call hdf5timingtest release >> ..\check_results.txt
-
-cd ..\tools
-echo. >> ..\check_results.txt
-echo testhdf5tools Release
-call testhdf5tools Release
-more toolstest_release.txt >> ..\check_results.txt
-del toolstest_release.txt
-cd ..
-
-echo ***************************************************************************** >> check_results.txt
-echo HDF5 High Level C Library Tests -- Release>> check_results.txt
-echo ***************************************************************************** >> check_results.txt
-
-cd hl\test
-echo test_hdf5_hl Release
-call test_hdf5_hl Release >> ..\..\check_results.txt
-cd ..\..
-
-echo. >> check_results.txt
-echo ***************************************************************************** >> check_results.txt
-echo HDF5 C Library Tests -- Debug >> check_results.txt
-echo ***************************************************************************** >> check_results.txt
-
-cd test
-echo hdf5test debug
-call hdf5test debug >> ..\check_results.txt
-
-echo. >> ..\check_results.txt
-echo ***************************************************************************** >> ..\check_results.txt
-echo HDF5 Timing Test -- Debug>> ..\check_results.txt
-echo ***************************************************************************** >> ..\check_results.txt
-echo hdf5timingtest debug
-call hdf5timingtest debug >> ..\check_results.txt
-
-cd ..\tools
-echo. >> ..\check_results.txt
-echo testhdf5tools Debug
-call testhdf5tools Debug
-more toolstest_debug.txt >> ..\check_results.txt
-del toolstest_debug.txt
-cd ..
-
-echo ***************************************************************************** >> check_results.txt
-echo HDF5 High Level C Library Tests -- Debug>> check_results.txt
-echo ***************************************************************************** >> check_results.txt
-
-cd hl\test
-echo test_hdf5_hl Debug
-call test_hdf5_hl Debug >> ..\..\check_results.txt
-cd ..\..
-
-echo. >> check_results.txt
-echo ***************************************************************************** >> check_results.txt
-echo HDF5 C Library Tests -- Release DLL >> check_results.txt
-echo ***************************************************************************** >> check_results.txt
-
-cd test
-echo hdf5test release dll
-call hdf5test release dll >> ..\check_results.txt
-
-echo. >> ..\check_results.txt
-echo ***************************************************************************** >> ..\check_results.txt
-echo HDF5 Timing Test -- Release DLL>> ..\check_results.txt
-echo ***************************************************************************** >> ..\check_results.txt
-echo hdf5timingtest release dll
-call hdf5timingtest release dll >> ..\check_results.txt
-
-cd ..\tools
-echo. >> ..\check_results.txt
-echo testhdf5tools Release dll
-call testhdf5tools Release dll
-more toolstest_releasedll.txt >> ..\check_results.txt
-del toolstest_releasedll.txt
-cd ..
-echo. >> check_results.txt
-
-echo ***************************************************************************** >> check_results.txt
-echo HDF5 High Level C Library Tests -- Release DLL>> check_results.txt
-echo ***************************************************************************** >> check_results.txt
-
-cd hl\test
-echo test_hdf5_hl Release dll
-call test_hdf5_hl Release dll>> ..\..\check_results.txt
-cd ..\..
-
-echo. >> check_results.txt
-echo ***************************************************************************** >> check_results.txt
-echo HDF5 C Library Tests -- Debug DLL >> check_results.txt
-echo ***************************************************************************** >> check_results.txt
-
-cd test
-echo hdf5test debug dll
-call hdf5test debug dll >> ..\check_results.txt
-
-echo. >> ..\check_results.txt
-echo ***************************************************************************** >> ..\check_results.txt
-echo HDF5 Timing Test -- Debug DLL>> ..\check_results.txt
-echo ***************************************************************************** >> ..\check_results.txt
-echo hdf5timingtest debug dll
-call hdf5timingtest debug dll >> ..\check_results.txt
-
-cd ..\tools
-echo. >> ..\check_results.txt
-echo testhdf5tools Debug dll
-call testhdf5tools Debug dll
-more toolstest_debugdll.txt >> ..\check_results.txt
-del toolstest_debugdll.txt
-cd ..
-
-echo ***************************************************************************** >> check_results.txt
-echo HDF5 High Level C Library Tests -- Debug DLL>> check_results.txt
-echo ***************************************************************************** >> check_results.txt
-
-cd hl\test
-echo test_hdf5_hl Debug dll
-call test_hdf5_hl Debug dll>> ..\..\check_results.txt
-cd ..\..
-
-echo. >> check_results.txt
-
-if "%1"=="enablecpp" (
-echo. >> check_results.txt
-echo install_cppdll
-call install_cppdll
-echo install_hlcppdll
-call install_hlcppdll
-cd c++\test
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 C++ Library Tests -- Release >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo hdf5cpptest release
-call hdf5cpptest release >> ..\..\check_results.txt
-
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 High Level C++ Library Tests -- Release >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-cd ..\..\hl\c++\test
-echo test_hdf5_hl_cpp Release
-call test_hdf5_hl_cpp Release >> ..\..\..\check_results.txt
-cd ..\..\..\c++\test
-echo. >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 C++ Library Tests -- Debug >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo hdf5cpptest debug
-call hdf5cpptest debug >> ..\..\check_results.txt
-
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 High Level C++ Library Tests -- Debug >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-cd ..\..\hl\c++\test
-echo test_hdf5_hl_cpp Debug
-call test_hdf5_hl_cpp Debug >> ..\..\..\check_results.txt
-cd ..\..\..\c++\test
-echo. >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 C++ Library Tests -- Release DLL >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo hdf5cpptest release dll
-call hdf5cpptest release dll >> ..\..\check_results.txt
-echo. >> ..\..\check_results.txt
-
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 High Level C++ Library Tests -- Release DLL >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-cd ..\..\hl\c++\test
-echo test_hdf5_hl_cpp Release dll
-call test_hdf5_hl_cpp Release dll>> ..\..\..\check_results.txt
-cd ..\..\..\c++\test
-echo. >> ..\..\check_results.txt
-
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 C++ Library Tests -- Debug DLL >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo hdf5cpptest debug dll
-call hdf5cpptest debug dll >> ..\..\check_results.txt
-
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 High Level C++ Library Tests -- Debug DLL>> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-cd ..\..\hl\c++\test
-echo test_hdf5_hl_cpp Debug dll
-call test_hdf5_hl_cpp Debug dll>> ..\..\..\check_results.txt
-echo. >> ..\..\..\check_results.txt
-
-cd ..\..\..\
-)
-
-
-if "%1"=="enablefortran" (
-echo. >> check_results.txt
-echo install_f90dll
-call install_f90dll
-echo install_hlf90dll
-call install_hlf90dll
-cd fortran\test
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 Fortran Library Tests -- Release >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo testhdf5_fortran release
-call testhdf5_fortran release >> ..\..\check_results.txt
-
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 High Level Fortran Library Tests -- Release >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-
-cd ..\..\hl\fortran\test
-echo test_hdf5_hl_fortran Release
-call test_hdf5_hl_fortran Release >> ..\..\..\check_results.txt
-
-cd ..\..\..\fortran\test
-echo. >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 Fortran Library Tests -- Debug >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo testhdf5_fortran debug
-call testhdf5_fortran debug >> ..\..\check_results.txt
-
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 High Level Fortran Library Tests -- Debug >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-
-cd ..\..\hl\fortran\test
-echo test_hdf5_hl_fortran Debug
-call test_hdf5_hl_fortran Debug >> ..\..\..\check_results.txt
-
-cd ..\..\..\fortran\test
-echo. >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 Fortran Library Tests -- Release DLL >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo testhdf5_fortran release dll
-call testhdf5_fortran release dll >> ..\..\check_results.txt
-echo. >> ..\..\check_results.txt
-
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 Hight Level Fortran Library Tests -- Release DLL >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-cd ..\..\hl\fortran\test
-echo test_hdf5_hl_fortran release dll
-call test_hdf5_hl_fortran release dll >> ..\..\..\check_results.txt
-cd ..\..\..\fortran\test
-echo. >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 Fortran Library Tests -- Debug DLL >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo testhdf5_fortran debug dll
-call testhdf5_fortran debug dll >> ..\..\check_results.txt
-
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 Hight Level Fortran Library Tests -- Debug DLL >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-cd ..\..\hl\fortran\test
-echo test_hdf5_hl_fortran debug dll
-call test_hdf5_hl_fortran debug dll >> ..\..\..\check_results.txt
-
-echo. >> ..\..\..\check_results.txt
-cd ..\..\..\
-)
-
-
-if "%1"=="enableall" (
-echo. >> check_results.txt
-echo install_cppdll
-call install_cppdll
-echo install_hlcppdll
-call install_hlcppdll
-cd c++\test
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 C++ Library Tests -- Release >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo hdf5cpptest release
-call hdf5cpptest release >> ..\..\check_results.txt
-
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 High Level C++ Library Tests -- Release >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-cd ..\..\hl\c++\test
-echo test_hdf5_hl_cpp Release
-call test_hdf5_hl_cpp Release >> ..\..\..\check_results.txt
-cd ..\..\..\c++\test
-echo. >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 C++ Library Tests -- Debug >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo hdf5cpptest debug
-call hdf5cpptest debug >> ..\..\check_results.txt
-
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 High Level C++ Library Tests -- Debug >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-cd ..\..\hl\c++\test
-echo test_hdf5_hl_cpp Debug
-call test_hdf5_hl_cpp Debug >> ..\..\..\check_results.txt
-cd ..\..\..\c++\test
-echo. >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 C++ Library Tests -- Release DLL >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo hdf5cpptest release dll
-call hdf5cpptest release dll >> ..\..\check_results.txt
-echo. >> ..\..\check_results.txt
-
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 High Level C++ Library Tests -- Release DLL >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-cd ..\..\hl\c++\test
-echo test_hdf5_hl_cpp Release dll
-call test_hdf5_hl_cpp Release dll>> ..\..\..\check_results.txt
-cd ..\..\..\c++\test
-echo. >> ..\..\check_results.txt
-
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 C++ Library Tests -- Debug DLL >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo hdf5cpptest debug dll
-call hdf5cpptest debug dll >> ..\..\check_results.txt
-
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 High Level C++ Library Tests -- Debug DLL >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-cd ..\..\hl\c++\test
-echo test_hdf5_hl_cpp Debug dll
-call test_hdf5_hl_cpp Debug dll>> ..\..\..\check_results.txt
-echo. >> ..\..\..\check_results.txt
-
-cd ..\..\..\
-
-echo install_f90dll
-call install_f90dll
-echo install_hlf90dll
-call install_hlf90dll
-cd fortran\test
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 Fortran Library Tests -- Release >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo testhdf5_fortran release
-call testhdf5_fortran release >> ..\..\check_results.txt
-
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 High Level Fortran Library Tests -- Release >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-
-cd ..\..\hl\fortran\test
-echo test_hdf5_hl_fortran Release
-call test_hdf5_hl_fortran Release >> ..\..\..\check_results.txt
-
-cd ..\..\..\fortran\test
-echo. >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 Fortran Library Tests -- Debug >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo testhdf5_fortran debug
-call testhdf5_fortran debug >> ..\..\check_results.txt
-
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 High Level Fortran Library Tests -- Debug >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-
-cd ..\..\hl\fortran\test
-echo test_hdf5_hl_fortran Debug
-call test_hdf5_hl_fortran Debug >> ..\..\..\check_results.txt
-
-cd ..\..\..\fortran\test
-echo. >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 Fortran Library Tests -- Release DLL >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo testhdf5_fortran release dll
-call testhdf5_fortran release dll >> ..\..\check_results.txt
-echo. >> ..\..\check_results.txt
-
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 Hight Level Fortran Library Tests -- Release DLL >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-cd ..\..\hl\fortran\test
-echo test_hdf5_hl_fortran release dll
-call test_hdf5_hl_fortran release dll >> ..\..\..\check_results.txt
-cd ..\..\..\fortran\test
-echo. >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 Fortran Library Tests -- Debug DLL >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo testhdf5_fortran debug dll
-call testhdf5_fortran debug dll >> ..\..\check_results.txt
-
-echo ***************************************************************************** >> ..\..\check_results.txt
-echo HDF5 High Level Fortran Library Tests -- Debug DLL >> ..\..\check_results.txt
-echo ***************************************************************************** >> ..\..\check_results.txt
-cd ..\..\hl\fortran\test
-echo test_hdf5_hl_fortran debug dll
-call test_hdf5_hl_fortran debug dll >> ..\..\..\check_results.txt
-
-echo. >> ..\..\..\check_results.txt
-cd ..\..\..\
-)
-
-type nul > number_failed.txt
-type nul > tests_results.txt
-find /C "FAIL" check_results.txt > number_failed.txt
-find "FAIL" check_results.txt > tests_failed.txt
-for /f "tokens=1,2*" %%a in (
- number_failed.txt
-) do ( if %%c==0 (
- echo All HDF5 Tests Passed! >> tests_results.txt
-) else (
- echo The Following HDF5 Tests Failed: >> tests_results.txt
- more /e +2 tests_failed.txt >> tests_results.txt
-)
+@echo off
+rem
+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
+rem File Name: hdf5check.bat
+rem This batch file is used to test HDF5 Libraries and Tools.
+rem There are 4 options for this batch file:
+rem 1. hdf5check -- HDF5 tools and c library tests
+rem 2. hdf5check enablecpp -- HDF5 tools and c/c++ library tests
+rem 3. hdf5check enablefortran -- HDF5 tools and c/fortran library tests
+rem 4. hdf5check enableall -- HDF5 tools and c/c++/fortran library tests
+rem By Xuan Bai
+rem Created: Aug. 12, 2004
+rem Last Updated: Scott Wegner, 9/10/07
+
+setlocal enabledelayedexpansion
+pushd %~dp0
+
+rem Clean any variables starting with "HDF5_TEST_", as we use these for our
+rem tests. Also clear "HDF5_TEST_TESTS", as we will be addding all of our tests
+rem to this variable.
+rem Set at least one variable in set beforehand to avoid error message.
+rem --SJW 9/5/07
+set hdf5_test_=foo
+for /f "tokens=1 delims==" %%a in ('set hdf5_test_') do set %%a=
+set hdf5_test_tests=
+
+rem Put built DLLs in the system folder for testing
+call install_dll.BAT
+
+set nerrors=0
+
+rem See if we have built the HL C++ / Fortran libraries, and set
+rem BUILD_*_CONDITIONAL appropriately
+if /i "%1" equ "enablecpp" (
+ set build_cpp_conditional=true
+) else if /i "%1" equ "enablefortran" (
+ set build_fortran_conditional=true
+) else if /i "%1" equ "enableall" (
+ set build_cpp_conditional=true
+ set build_fortran_conditional=true
)
-del number_failed.txt
-del tests_failed.txt
+goto main
+
+
+rem Function to add a test to the test suite.
+rem Expects the following parameters:
+rem %1 - Name of the test being tested
+rem %2 - Relative path of script
+:add_test
+
+ set hdf5_test_tests=%hdf5_test_tests% %1
+ set hdf5_test_%1_test=%CD%\%2\%1
+
+ exit /b
+
+
+rem Run all of the tests that have been added to the suite. Print a header
+rem at the beginning of each one. Short-circuit if a test fails.
+rem Expects the following parameters:
+rem %1 - release or debug version
+rem %2 - "dll" or nothing
+:run_tests
+ for %%a in (%hdf5_test_tests%) do (
+ echo.
+ echo.************************************
+ echo. Testing %%a ^(%1 %2^)
+ echo.************************************
+
+ rem Only add our parameters for batch scripts.
+ call !hdf5_test_%%a_test:.bat= %1 %2!
+ rem Exit early if test fails.
+ if !errorlevel! neq 0 exit /b
+ )
+
+ rem If we get here, that means all of our tests passed.
+ echo.All HDF5 %* tests passed.
+
+ exit /b
+
+
+rem This is where we add tests to the suite, and run them all at the end.
+rem Make sure only to run dll versions of tests you build dll for
+rem Also make sure to add *.bat to batch scripts, as the above functions rely
+rem on it for sending parameters. --SJW 9/6/07
+:main
+
+ call :add_test checktests.bat .\test
+ call :add_test checktools.bat .\tools
+
+ rem Only check C++/Fortran if they are set to build.
+ if defined build_cxx_conditional (
+ call :add_test checkcpptests.bat .\c++\test
+ )
+ if defined build_fortran_conditional (
+ call :add_test checkfortrantests.bat .\fortran\test
+ )
+
+ rem Assume HL libraries are built. This should be commented out if the
+ rem default is changed.
+ call :add_test checkhltests.bat .\hl\test
+ call :add_test checkperformtests.bat .\perform
+
+
+ rem Run the tests for each version of HDF5
+ rem We use "nodll" here because we cannot simply leave it blank. Filter
+ rem it out below. --SJW 9/10/07
+ for %%b in (nodll dll) do (
+ for %%a in (debug release) do (
+ set hdf5_config=%%a %%b
+ call :run_tests !hdf5_config:nodll=!
+ if !errorlevel! neq 0 (
+ set /a nerrors=!nerrors!+1
+ )
+ )
+ )
+
+ if %nerrors% equ 0 (
+ echo.HDF5 Tests passed for all configurations!
+ )
+
+ popd
+ endlocal & exit /b %nerrors%
+
\ No newline at end of file |