]>
git.saurik.com Git - apple/icu.git/blob - icuSources/allinone/icucheck.bat
2 REM ********************************************************************
4 REM * Copyright (c) 2010, 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
=%~f0\..\..\..
24 set ICU_BINDIR
=%ICU_ICUDIR%\bin
25 set PATH=%ICU_BINDIR%;%PATH%
27 echo testing ICU in
%ICU_ICUDIR% arch
=%ICU_ARCH% type=%ICU_DBRL%
31 set ICUINFO_CMD
=%ICU_ICUDIR%\source
\tools\icuinfo\
%ICU_ARCH%\
%ICU_DBRL%\icuinfo.exe
32 set INTLTEST_CMD
=%ICU_ICUDIR%\source
\test\intltest\
%ICU_ARCH%\
%ICU_DBRL%\intltest.exe
33 set IOTEST_CMD
=%ICU_ICUDIR%\source
\test\iotest\
%ICU_ARCH%\
%ICU_DBRL%\iotest.exe
34 set CINTLTST_CMD
=%ICU_ICUDIR%\source
\test\cintltst\
%ICU_ARCH%\
%ICU_DBRL%\cintltst.exe
35 set LETEST_CMD
=%ICU_ICUDIR%\source
\test\letest\
%ICU_ARCH%\
%ICU_DBRL%\letest.exe
44 @
echo ==== %THT% =========================================================================
45 %ICUINFO_CMD% %ICUINFO_OPTS%
47 @
IF NOT ERRORLEVEL 1 GOTO OK_
%THT%
48 @
set ICUFAILED
=%ICUFAILED% %THT%
51 @
set ICURUN
=%ICURUN% %THT%
54 @
echo ==== %THT% =========================================================================
55 @
cd %ICU_ICUDIR%\source
\test\intltest
56 %INTLTEST_CMD% %INTLTEST_OPTS%
58 @
IF NOT ERRORLEVEL 1 GOTO OK_
%THT%
59 @
set ICUFAILED
=%ICUFAILED% %THT%
62 @
set ICURUN
=%ICURUN% %THT%
65 @
echo ==== %THT% =========================================================================
66 @
cd %ICU_ICUDIR%\source
\test\iotest
67 %IOTEST_CMD% %IOTEST_OPTS%
69 @
IF NOT ERRORLEVEL 1 GOTO OK_
%THT%
70 @
set ICUFAILED
=%ICUFAILED% %THT%
73 @
set ICURUN
=%ICURUN% %THT%
76 @
echo ==== %THT% =========================================================================
77 @
cd %ICU_ICUDIR%\source
\test\cintltst
78 %CINTLTST_CMD% %CINTLTST_OPTS%
80 @
IF NOT ERRORLEVEL 1 GOTO OK_
%THT%
81 @
set ICUFAILED
=%ICUFAILED% %THT%
84 @
set ICURUN
=%ICURUN% %THT%
87 @
echo ==== %THT% =========================================================================
88 @
cd %ICU_ICUDIR%\source
\test\letest
89 %LETST_CMD% %LETEST_OPTS%
91 @
IF NOT ERRORLEVEL 1 GOTO OK_
%THT%
92 @
set ICUFAILED
=%ICUFAILED% %THT%
95 @
set ICURUN
=%ICURUN% %THT%
109 echo ============================================================
112 echo Tests
Run : %ICURUN%
114 if %ICUFAILCNT% == 0 (
115 echo " - All Passed!"
118 echo Failing Tests
: %ICUFAILED%