2010-10-13 19:25:12 +00:00
|
|
|
@echo off
|
2016-06-15 18:58:17 +00:00
|
|
|
REM Copyright (C) 2016 and later: Unicode, Inc. and others.
|
|
|
|
REM License & terms of use: http://www.unicode.org/copyright.html
|
2010-10-13 19:25:12 +00:00
|
|
|
REM ********************************************************************
|
|
|
|
REM * COPYRIGHT:
|
2016-05-31 21:45:07 +00:00
|
|
|
REM * Copyright (c) 2010-2014, International Business Machines Corporation
|
|
|
|
REM * and others. All Rights Reserved.
|
2010-10-13 19:25:12 +00:00
|
|
|
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%
|
|
|
|
|
2012-10-15 20:58:11 +00:00
|
|
|
set ICU_ICUDIR="%~dp0"\..\..
|
2011-07-14 18:58:24 +00:00
|
|
|
|
|
|
|
if "%ICU_ARCH%" == "x64" (
|
2012-10-15 20:58:11 +00:00
|
|
|
set ICU_BINDIR=%~dp0\..\..\bin64
|
2012-09-14 22:19:54 +00:00
|
|
|
) else (
|
2012-10-15 20:58:11 +00:00
|
|
|
set ICU_BINDIR=%~dp0\..\..\bin
|
2011-07-14 18:58:24 +00:00
|
|
|
)
|
|
|
|
|
2010-10-13 19:25:12 +00:00
|
|
|
set PATH=%ICU_BINDIR%;%PATH%
|
|
|
|
|
|
|
|
echo testing ICU in %ICU_ICUDIR% arch=%ICU_ARCH% type=%ICU_DBRL%
|
|
|
|
pushd %ICU_ICUDIR%
|
|
|
|
|
2010-11-02 01:51:32 +00:00
|
|
|
@rem factor these out
|
|
|
|
set ICUINFO_CMD=%ICU_ICUDIR%\source\tools\icuinfo\%ICU_ARCH%\%ICU_DBRL%\icuinfo.exe
|
|
|
|
set INTLTEST_CMD=%ICU_ICUDIR%\source\test\intltest\%ICU_ARCH%\%ICU_DBRL%\intltest.exe
|
|
|
|
set IOTEST_CMD=%ICU_ICUDIR%\source\test\iotest\%ICU_ARCH%\%ICU_DBRL%\iotest.exe
|
|
|
|
set CINTLTST_CMD=%ICU_ICUDIR%\source\test\cintltst\%ICU_ARCH%\%ICU_DBRL%\cintltst.exe
|
|
|
|
set LETEST_CMD=%ICU_ICUDIR%\source\test\letest\%ICU_ARCH%\%ICU_DBRL%\letest.exe
|
2010-10-13 19:25:12 +00:00
|
|
|
|
2010-11-02 01:51:32 +00:00
|
|
|
set ICUFAILED=
|
|
|
|
set ICURUN=
|
|
|
|
set ICUFAILCNT=0
|
2010-10-13 19:25:12 +00:00
|
|
|
|
2010-11-02 01:51:32 +00:00
|
|
|
@echo on
|
2010-10-13 19:25:12 +00:00
|
|
|
|
2010-11-02 01:51:32 +00:00
|
|
|
@set THT=icuinfo
|
|
|
|
@echo ==== %THT% =========================================================================
|
|
|
|
%ICUINFO_CMD% %ICUINFO_OPTS%
|
2010-10-13 19:25:12 +00:00
|
|
|
|
2010-11-02 01:51:32 +00:00
|
|
|
@IF NOT ERRORLEVEL 1 GOTO OK_%THT%
|
|
|
|
@set ICUFAILED=%ICUFAILED% %THT%
|
|
|
|
@set ICUFAILCNT=1
|
|
|
|
:OK_icuinfo
|
|
|
|
@set ICURUN=%ICURUN% %THT%
|
|
|
|
|
|
|
|
@set THT=intltest
|
|
|
|
@echo ==== %THT% =========================================================================
|
|
|
|
@cd %ICU_ICUDIR%\source\test\intltest
|
|
|
|
%INTLTEST_CMD% %INTLTEST_OPTS%
|
|
|
|
|
|
|
|
@IF NOT ERRORLEVEL 1 GOTO OK_%THT%
|
|
|
|
@set ICUFAILED=%ICUFAILED% %THT%
|
|
|
|
@set ICUFAILCNT=1
|
|
|
|
:OK_intltest
|
|
|
|
@set ICURUN=%ICURUN% %THT%
|
|
|
|
|
|
|
|
@set THT=iotest
|
|
|
|
@echo ==== %THT% =========================================================================
|
|
|
|
@cd %ICU_ICUDIR%\source\test\iotest
|
|
|
|
%IOTEST_CMD% %IOTEST_OPTS%
|
|
|
|
|
|
|
|
@IF NOT ERRORLEVEL 1 GOTO OK_%THT%
|
|
|
|
@set ICUFAILED=%ICUFAILED% %THT%
|
|
|
|
@set ICUFAILCNT=1
|
|
|
|
:OK_IOTEST
|
|
|
|
@set ICURUN=%ICURUN% %THT%
|
|
|
|
|
|
|
|
@set THT=cintltst
|
|
|
|
@echo ==== %THT% =========================================================================
|
|
|
|
@cd %ICU_ICUDIR%\source\test\cintltst
|
|
|
|
%CINTLTST_CMD% %CINTLTST_OPTS%
|
|
|
|
|
|
|
|
@IF NOT ERRORLEVEL 1 GOTO OK_%THT%
|
|
|
|
@set ICUFAILED=%ICUFAILED% %THT%
|
|
|
|
@set ICUFAILCNT=1
|
|
|
|
:OK_cintltst
|
|
|
|
@set ICURUN=%ICURUN% %THT%
|
|
|
|
|
2016-09-09 21:28:18 +00:00
|
|
|
@REM (Layout is deprecated - this would require HarfBuzz)
|
2014-06-26 01:17:03 +00:00
|
|
|
@REM @set THT=letest
|
|
|
|
@REM @echo ==== %THT% =========================================================================
|
|
|
|
@REM @cd %ICU_ICUDIR%\source\test\letest
|
|
|
|
@REM %LETST_CMD% %LETEST_OPTS%
|
|
|
|
|
|
|
|
@REM @IF NOT ERRORLEVEL 1 GOTO OK_%THT%
|
|
|
|
@REM @set ICUFAILED=%ICUFAILED% %THT%
|
|
|
|
@REM @set ICUFAILCNT=1
|
|
|
|
@REM :OK_letest
|
|
|
|
@REM @set ICURUN=%ICURUN% %THT%
|
2010-11-02 01:51:32 +00:00
|
|
|
|
|
|
|
@echo off
|
2010-10-13 19:25:12 +00:00
|
|
|
|
|
|
|
REM clean up
|
|
|
|
set PATH=%ICU_OPATH%
|
|
|
|
REM unset ICU_OPATH
|
|
|
|
popd
|
|
|
|
|
|
|
|
@REM done
|
2010-11-02 01:51:32 +00:00
|
|
|
|
|
|
|
echo -
|
|
|
|
echo -
|
|
|
|
echo -
|
|
|
|
echo ============================================================
|
2011-07-14 18:58:24 +00:00
|
|
|
echo Summary: ICU in %ICU_ICUDIR% arch=%ICU_ARCH% type=%ICU_DBRL%
|
2010-11-02 01:51:32 +00:00
|
|
|
echo -
|
|
|
|
echo Tests Run : %ICURUN%
|
|
|
|
|
|
|
|
if %ICUFAILCNT% == 0 (
|
|
|
|
echo " - All Passed!"
|
|
|
|
exit /b 0
|
|
|
|
)
|
|
|
|
echo Failing Tests: %ICUFAILED%
|
|
|
|
echo -
|
|
|
|
echo FAILED!
|
|
|
|
|
2016-06-15 18:58:17 +00:00
|
|
|
exit /b 1
|