]> git.saurik.com Git - apple/icu.git/blame - icuSources/allinone/icucheck.bat
ICU-64243.0.1.tar.gz
[apple/icu.git] / icuSources / allinone / icucheck.bat
CommitLineData
f3c0d7a5
A
1@echo off
2REM Copyright (C) 2016 and later: Unicode, Inc. and others.
3REM License & terms of use: http://www.unicode.org/copyright.html
4REM ********************************************************************
5REM * COPYRIGHT:
6REM * Copyright (c) 2010-2014, International Business Machines Corporation
7REM * and others. All Rights Reserved.
8REM ********************************************************************
9
10set ICU_ARCH=%1
11set ICU_DBRL=%2
12
13if "%1" == "" (
14echo Usage: %0 "x86 or x64" "Debug or Release"
15exit /b 1
16)
17
18if "%2" == "" (
19echo Usage: %0 %1 "Debug or Release"
20exit /b 1
21)
22
23set ICU_OPATH=%PATH%
24
25set ICU_ICUDIR="%~dp0"\..\..
26
27if "%ICU_ARCH%" == "x64" (
28set ICU_BINDIR=%~dp0\..\..\bin64
29) else (
30set ICU_BINDIR=%~dp0\..\..\bin
31)
32
33set PATH=%ICU_BINDIR%;%PATH%
34
35echo testing ICU in %ICU_ICUDIR% arch=%ICU_ARCH% type=%ICU_DBRL%
36pushd %ICU_ICUDIR%
37
38@rem factor these out
39set ICUINFO_CMD=%ICU_ICUDIR%\source\tools\icuinfo\%ICU_ARCH%\%ICU_DBRL%\icuinfo.exe
40set INTLTEST_CMD=%ICU_ICUDIR%\source\test\intltest\%ICU_ARCH%\%ICU_DBRL%\intltest.exe
41set IOTEST_CMD=%ICU_ICUDIR%\source\test\iotest\%ICU_ARCH%\%ICU_DBRL%\iotest.exe
42set CINTLTST_CMD=%ICU_ICUDIR%\source\test\cintltst\%ICU_ARCH%\%ICU_DBRL%\cintltst.exe
43set LETEST_CMD=%ICU_ICUDIR%\source\test\letest\%ICU_ARCH%\%ICU_DBRL%\letest.exe
44
45set ICUFAILED=
46set ICURUN=
47set ICUFAILCNT=0
48
49@echo on
50
51@set THT=icuinfo
52@echo ==== %THT% =========================================================================
53%ICUINFO_CMD% %ICUINFO_OPTS%
54
3d1f044b 55@IF %ERRORLEVEL% EQU 0 GOTO OK_%THT%
f3c0d7a5
A
56@set ICUFAILED=%ICUFAILED% %THT%
57@set ICUFAILCNT=1
58:OK_icuinfo
59@set ICURUN=%ICURUN% %THT%
60
61@set THT=intltest
62@echo ==== %THT% =========================================================================
63@cd %ICU_ICUDIR%\source\test\intltest
64%INTLTEST_CMD% %INTLTEST_OPTS%
65
3d1f044b 66@IF %ERRORLEVEL% EQU 0 GOTO OK_%THT%
f3c0d7a5
A
67@set ICUFAILED=%ICUFAILED% %THT%
68@set ICUFAILCNT=1
69:OK_intltest
70@set ICURUN=%ICURUN% %THT%
71
72@set THT=iotest
73@echo ==== %THT% =========================================================================
74@cd %ICU_ICUDIR%\source\test\iotest
75%IOTEST_CMD% %IOTEST_OPTS%
76
3d1f044b 77@IF %ERRORLEVEL% EQU 0 GOTO OK_%THT%
f3c0d7a5
A
78@set ICUFAILED=%ICUFAILED% %THT%
79@set ICUFAILCNT=1
80:OK_IOTEST
81@set ICURUN=%ICURUN% %THT%
82
83@set THT=cintltst
84@echo ==== %THT% =========================================================================
85@cd %ICU_ICUDIR%\source\test\cintltst
86%CINTLTST_CMD% %CINTLTST_OPTS%
87
3d1f044b 88@IF %ERRORLEVEL% EQU 0 GOTO OK_%THT%
f3c0d7a5
A
89@set ICUFAILED=%ICUFAILED% %THT%
90@set ICUFAILCNT=1
91:OK_cintltst
92@set ICURUN=%ICURUN% %THT%
93
94@REM (Layout is deprecated - this would require HarfBuzz)
95@REM @set THT=letest
96@REM @echo ==== %THT% =========================================================================
97@REM @cd %ICU_ICUDIR%\source\test\letest
98@REM %LETST_CMD% %LETEST_OPTS%
99
3d1f044b 100@REM @IF %ERRORLEVEL% EQU 0 GOTO OK_%THT%
f3c0d7a5
A
101@REM @set ICUFAILED=%ICUFAILED% %THT%
102@REM @set ICUFAILCNT=1
103@REM :OK_letest
104@REM @set ICURUN=%ICURUN% %THT%
105
106@echo off
107
108REM clean up
109set PATH=%ICU_OPATH%
110REM unset ICU_OPATH
111popd
112
113@REM done
114
115echo -
116echo -
117echo -
118echo ============================================================
119echo Summary: ICU in %ICU_ICUDIR% arch=%ICU_ARCH% type=%ICU_DBRL%
120echo -
121echo Tests Run : %ICURUN%
122
123if %ICUFAILCNT% == 0 (
124 echo " - All Passed!"
125 exit /b 0
126)
127echo Failing Tests: %ICUFAILED%
128echo -
129echo FAILED!
130
131exit /b 1