ICU-8001 batch script and readme.html for testing

X-SVN-Rev: 28816
This commit is contained in:
Steven R. Loomis 2010-10-13 19:25:12 +00:00
parent 5bf81805bd
commit 1bcfb1258c
3 changed files with 84 additions and 0 deletions

1
.gitattributes vendored
View file

@ -49,6 +49,7 @@ README text !eol
*.tri2 -text
icu4c/icu4c.css -text
icu4c/source/allinone/icucheck.bat -text
icu4c/source/common/common.vcxproj -text
icu4c/source/common/common.vcxproj.filters -text
icu4c/source/config/mh-haiku -text

View file

@ -963,6 +963,31 @@
build the Debug and Release at the same time, see the <a href=
"#HowToBuildWindowsBatch">batch configuration note</a> below.</li>
<li>Run the tests. They can be run from the command line or from within Visual Studio.
<h4>Running the Tests from the Windows Command Line (cmd)</h4>
<ul>
<li>For x86 (32 bit) and Debug, use: <br />
<tt><i>&lt;ICU&gt;</i>\source\allinone\icucheck.bat <i>Platform</i> <i>Configuration</i>
</tt> <br />
</li>
<li>So, for example:
<br />
<tt><i>&lt;ICU&gt;</i>\source\allinone\icucheck.bat <b>x86</b> <b>Debug</b>
</tt>
<br/> or <br />
<tt><i>&lt;ICU&gt;</i>\source\allinone\icucheck.bat <b>x86</b> <b>Release</b>
</tt>
<br/> or <br />
<tt><i>&lt;ICU&gt;</i>\source\allinone\icucheck.bat <b>x64</b> <b>Release</b>
</tt></li>
</ul>
<h4>Running the Tests from within Visual Studio</h4>
<ol>
<li>Run the C++ test suite, "intltest". To do this: set the active startup
project to "intltest", and press Ctrl+F5 to run it. Make sure that it
passes without any errors.</li>
@ -975,6 +1000,10 @@
project to "iotest", and press Ctrl+F5 to run it. Make sure that it passes
without any errors.</li>
</ol>
</li>
<li>You are now able to develop applications with ICU by using the
libraries and tools in <i>&lt;ICU&gt;</i>\bin\. The headers are in
<i>&lt;ICU&gt;</i>\include\ and the link libraries are in

View file

@ -0,0 +1,54 @@
@echo off
REM ********************************************************************
REM * COPYRIGHT:
REM * Copyright (c) 2010, International Business Machines Corporation
REM * and others. All Rights Reserved.
REM ********************************************************************
set ICU_ARCH=%1
set ICU_DBRL=%2
if "%1" == "" (
echo Usage: %0 "x86 or x64" "Debug or Release"
exit /b 1
)
if "%2" == "" (
echo Usage: %0 %1 "Debug or Release"
exit /b 1
)
set ICU_OPATH=%PATH%
set ICU_ICUDIR=%~f0\..\..\..
set ICU_BINDIR=%ICU_ICUDIR%\bin
set PATH=%ICU_BINDIR%;%PATH%
echo testing ICU in %ICU_ICUDIR% arch=%ICU_ARCH% type=%ICU_DBRL%
pushd %ICU_ICUDIR%
echo "====" icuinfo
%ICU_ICUDIR%\source\tools\icuinfo\%ICU_ARCH%\%ICU_DBRL%\icuinfo.exe %ICUINFO_OPTS%
echo "====" intltest
cd %ICU_ICUDIR%\source\test\intltest
%ICU_ICUDIR%\source\test\intltest\%ICU_ARCH%\%ICU_DBRL%\intltest.exe %INTLTEST_OPTS%
echo "====" iotest
cd %ICU_ICUDIR%\source\test\iotest
%ICU_ICUDIR%\source\test\iotest\%ICU_ARCH%\%ICU_DBRL%\iotest.exe %IOTEST_OPTS%
echo "====" cintltst
cd %ICU_ICUDIR%\source\test\cintltst
%ICU_ICUDIR%\source\test\cintltst\%ICU_ARCH%\%ICU_DBRL%\cintltst.exe %CINTLTST_OPTS%
echo "====" letest
cd %ICU_ICUDIR%\source\test\letest
%ICU_ICUDIR%\source\test\letest\%ICU_ARCH%\%ICU_DBRL%\letest.exe %LETEST_OPTS%
REM clean up
set PATH=%ICU_OPATH%
REM unset ICU_OPATH
popd
@REM done