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