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 or ARM or ARM64" "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
29 ) else if "%ICU_ARCH%" == "ARM64" (
30 set ICU_BINDIR
=%~dp0\..\..
\binARM
64
31 ) else if "%ICU_ARCH%" == "ARM" (
32 set ICU_BINDIR
=%~dp0\..\..
\binARM
34 set ICU_BINDIR
=%~dp0\..\..
\bin
37 set PATH=%ICU_BINDIR%;%PATH%
39 echo testing ICU in
%ICU_ICUDIR% arch
=%ICU_ARCH% type=%ICU_DBRL%
43 set ICUINFO_CMD
=%ICU_ICUDIR%\source
\tools\icuinfo\
%ICU_ARCH%\
%ICU_DBRL%\icuinfo.exe
44 set INTLTEST_CMD
=%ICU_ICUDIR%\source
\test\intltest\
%ICU_ARCH%\
%ICU_DBRL%\intltest.exe
45 set IOTEST_CMD
=%ICU_ICUDIR%\source
\test\iotest\
%ICU_ARCH%\
%ICU_DBRL%\iotest.exe
46 set CINTLTST_CMD
=%ICU_ICUDIR%\source
\test\cintltst\
%ICU_ARCH%\
%ICU_DBRL%\cintltst.exe
47 set LETEST_CMD
=%ICU_ICUDIR%\source
\test\letest\
%ICU_ARCH%\
%ICU_DBRL%\letest.exe
56 @
echo ==== %THT% =========================================================================
57 %ICUINFO_CMD% %ICUINFO_OPTS%
59 @
IF %ERRORLEVEL% EQU
0 GOTO OK_
%THT%
60 @
set ICUFAILED
=%ICUFAILED% %THT%
63 @
set ICURUN
=%ICURUN% %THT%
66 @
echo ==== %THT% =========================================================================
67 @
cd %ICU_ICUDIR%\source
\test\intltest
68 %INTLTEST_CMD% %INTLTEST_OPTS%
70 @
IF %ERRORLEVEL% EQU
0 GOTO OK_
%THT%
71 @
set ICUFAILED
=%ICUFAILED% %THT%
74 @
set ICURUN
=%ICURUN% %THT%
77 @
echo ==== %THT% =========================================================================
78 @
cd %ICU_ICUDIR%\source
\test\iotest
79 %IOTEST_CMD% %IOTEST_OPTS%
81 @
IF %ERRORLEVEL% EQU
0 GOTO OK_
%THT%
82 @
set ICUFAILED
=%ICUFAILED% %THT%
85 @
set ICURUN
=%ICURUN% %THT%
88 @
echo ==== %THT% =========================================================================
89 @
cd %ICU_ICUDIR%\source
\test\cintltst
90 %CINTLTST_CMD% %CINTLTST_OPTS%
92 @
IF %ERRORLEVEL% EQU
0 GOTO OK_
%THT%
93 @
set ICUFAILED
=%ICUFAILED% %THT%
96 @
set ICURUN
=%ICURUN% %THT%
98 @REM
(Layout is deprecated
- this would require HarfBuzz
)
100 @REM @
echo ==== %THT% =========================================================================
101 @REM @
cd %ICU_ICUDIR%\source
\test\letest
102 @REM
%LETST_CMD% %LETEST_OPTS%
104 @REM @
IF %ERRORLEVEL% EQU
0 GOTO OK_
%THT%
105 @REM @
set ICUFAILED
=%ICUFAILED% %THT%
106 @REM @
set ICUFAILCNT
=1
108 @REM @
set ICURUN
=%ICURUN% %THT%
122 echo ============================================================
123 echo Summary
: ICU in
%ICU_ICUDIR% arch
=%ICU_ARCH% type=%ICU_DBRL%
125 echo Tests
Run : %ICURUN%
127 if %ICUFAILCNT% == 0 (
128 echo " - All Passed!"
131 echo Failing Tests
: %ICUFAILED%