2 REM Copyright (C) 2016 and later: Unicode, Inc. and others.
3 REM License & terms of use: http://www.unicode.org/copyright.html
4 REM ********************************************************************
6 REM * Copyright (c) 2010-2014, International Business Machines Corporation
7 REM * and others. All Rights Reserved.
8 REM ********************************************************************
14 echo Usage
: %0 "x86 or x64" "Debug or Release"
19 echo Usage
: %0 %1 "Debug or Release"
25 set ICU_ICUDIR
="%~dp0"\..\..
27 if "%ICU_ARCH%" == "x64" (
28 set ICU_BINDIR
=%~dp0\..\..
\bin
64
30 set ICU_BINDIR
=%~dp0\..\..
\bin
33 set PATH=%ICU_BINDIR%;%PATH%
35 echo testing ICU in
%ICU_ICUDIR% arch
=%ICU_ARCH% type=%ICU_DBRL%
39 set ICUINFO_CMD
=%ICU_ICUDIR%\source
\tools\icuinfo\
%ICU_ARCH%\
%ICU_DBRL%\icuinfo.exe
40 set INTLTEST_CMD
=%ICU_ICUDIR%\source
\test\intltest\
%ICU_ARCH%\
%ICU_DBRL%\intltest.exe
41 set IOTEST_CMD
=%ICU_ICUDIR%\source
\test\iotest\
%ICU_ARCH%\
%ICU_DBRL%\iotest.exe
42 set CINTLTST_CMD
=%ICU_ICUDIR%\source
\test\cintltst\
%ICU_ARCH%\
%ICU_DBRL%\cintltst.exe
43 set LETEST_CMD
=%ICU_ICUDIR%\source
\test\letest\
%ICU_ARCH%\
%ICU_DBRL%\letest.exe
52 @
echo ==== %THT% =========================================================================
53 %ICUINFO_CMD% %ICUINFO_OPTS%
55 @
IF %ERRORLEVEL% EQU
0 GOTO OK_
%THT%
56 @
set ICUFAILED
=%ICUFAILED% %THT%
59 @
set ICURUN
=%ICURUN% %THT%
62 @
echo ==== %THT% =========================================================================
63 @
cd %ICU_ICUDIR%\source
\test\intltest
64 %INTLTEST_CMD% %INTLTEST_OPTS%
66 @
IF %ERRORLEVEL% EQU
0 GOTO OK_
%THT%
67 @
set ICUFAILED
=%ICUFAILED% %THT%
70 @
set ICURUN
=%ICURUN% %THT%
73 @
echo ==== %THT% =========================================================================
74 @
cd %ICU_ICUDIR%\source
\test\iotest
75 %IOTEST_CMD% %IOTEST_OPTS%
77 @
IF %ERRORLEVEL% EQU
0 GOTO OK_
%THT%
78 @
set ICUFAILED
=%ICUFAILED% %THT%
81 @
set ICURUN
=%ICURUN% %THT%
84 @
echo ==== %THT% =========================================================================
85 @
cd %ICU_ICUDIR%\source
\test\cintltst
86 %CINTLTST_CMD% %CINTLTST_OPTS%
88 @
IF %ERRORLEVEL% EQU
0 GOTO OK_
%THT%
89 @
set ICUFAILED
=%ICUFAILED% %THT%
92 @
set ICURUN
=%ICURUN% %THT%
94 @REM
(Layout is deprecated
- this would require HarfBuzz
)
96 @REM @
echo ==== %THT% =========================================================================
97 @REM @
cd %ICU_ICUDIR%\source
\test\letest
98 @REM
%LETST_CMD% %LETEST_OPTS%
100 @REM @
IF %ERRORLEVEL% EQU
0 GOTO OK_
%THT%
101 @REM @
set ICUFAILED
=%ICUFAILED% %THT%
102 @REM @
set ICUFAILCNT
=1
104 @REM @
set ICURUN
=%ICURUN% %THT%
118 echo ============================================================
119 echo Summary
: ICU in
%ICU_ICUDIR% arch
=%ICU_ARCH% type=%ICU_DBRL%
121 echo Tests
Run : %ICURUN%
123 if %ICUFAILCNT% == 0 (
124 echo " - All Passed!"
127 echo Failing Tests
: %ICUFAILED%