]>
git.saurik.com Git - apple/icu.git/blob - icuSources/allinone/icucheck.bat
2 REM ********************************************************************
4 REM * Copyright (c) 2010-2012, International Business Machines Corporation
5 REM * and others. All Rights Reserved.
6 REM ********************************************************************
12 echo Usage
: %0 "x86 or x64" "Debug or Release"
17 echo Usage
: %0 %1 "Debug or Release"
23 set ICU_ICUDIR
="%~dp0"\..\..
25 if "%ICU_ARCH%" == "x64" (
26 set ICU_BINDIR
=%~dp0\..\..
\bin
64
28 set ICU_BINDIR
=%~dp0\..\..
\bin
31 set PATH=%ICU_BINDIR%;%PATH%
33 echo testing ICU in
%ICU_ICUDIR% arch
=%ICU_ARCH% type=%ICU_DBRL%
37 set ICUINFO_CMD
=%ICU_ICUDIR%\source
\tools\icuinfo\
%ICU_ARCH%\
%ICU_DBRL%\icuinfo.exe
38 set INTLTEST_CMD
=%ICU_ICUDIR%\source
\test\intltest\
%ICU_ARCH%\
%ICU_DBRL%\intltest.exe
39 set IOTEST_CMD
=%ICU_ICUDIR%\source
\test\iotest\
%ICU_ARCH%\
%ICU_DBRL%\iotest.exe
40 set CINTLTST_CMD
=%ICU_ICUDIR%\source
\test\cintltst\
%ICU_ARCH%\
%ICU_DBRL%\cintltst.exe
41 set LETEST_CMD
=%ICU_ICUDIR%\source
\test\letest\
%ICU_ARCH%\
%ICU_DBRL%\letest.exe
50 @
echo ==== %THT% =========================================================================
51 %ICUINFO_CMD% %ICUINFO_OPTS%
53 @
IF NOT ERRORLEVEL 1 GOTO OK_
%THT%
54 @
set ICUFAILED
=%ICUFAILED% %THT%
57 @
set ICURUN
=%ICURUN% %THT%
60 @
echo ==== %THT% =========================================================================
61 @
cd %ICU_ICUDIR%\source
\test\intltest
62 %INTLTEST_CMD% %INTLTEST_OPTS%
64 @
IF NOT ERRORLEVEL 1 GOTO OK_
%THT%
65 @
set ICUFAILED
=%ICUFAILED% %THT%
68 @
set ICURUN
=%ICURUN% %THT%
71 @
echo ==== %THT% =========================================================================
72 @
cd %ICU_ICUDIR%\source
\test\iotest
73 %IOTEST_CMD% %IOTEST_OPTS%
75 @
IF NOT ERRORLEVEL 1 GOTO OK_
%THT%
76 @
set ICUFAILED
=%ICUFAILED% %THT%
79 @
set ICURUN
=%ICURUN% %THT%
82 @
echo ==== %THT% =========================================================================
83 @
cd %ICU_ICUDIR%\source
\test\cintltst
84 %CINTLTST_CMD% %CINTLTST_OPTS%
86 @
IF NOT ERRORLEVEL 1 GOTO OK_
%THT%
87 @
set ICUFAILED
=%ICUFAILED% %THT%
90 @
set ICURUN
=%ICURUN% %THT%
93 @
echo ==== %THT% =========================================================================
94 @
cd %ICU_ICUDIR%\source
\test\letest
95 %LETST_CMD% %LETEST_OPTS%
97 @
IF NOT ERRORLEVEL 1 GOTO OK_
%THT%
98 @
set ICUFAILED
=%ICUFAILED% %THT%
101 @
set ICURUN
=%ICURUN% %THT%
115 echo ============================================================
116 echo Summary
: ICU in
%ICU_ICUDIR% arch
=%ICU_ARCH% type=%ICU_DBRL%
118 echo Tests
Run : %ICURUN%
120 if %ICUFAILCNT% == 0 (
121 echo " - All Passed!"
124 echo Failing Tests
: %ICUFAILED%