Imported Upstream version 58.1
[platform/upstream/icu.git] / source / allinone / icucheck.bat
index 597c438..f8331a0 100644 (file)
-@echo off
-REM  ********************************************************************
-REM  * COPYRIGHT:
-REM  * Copyright (c) 2010-2014, 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="%~dp0"\..\..
-
-if "%ICU_ARCH%" == "x64" (
-set ICU_BINDIR=%~dp0\..\..\bin64
-) else (
-set ICU_BINDIR=%~dp0\..\..\bin
-)
-
-set PATH=%ICU_BINDIR%;%PATH%
-
-echo testing ICU in %ICU_ICUDIR%  arch=%ICU_ARCH% type=%ICU_DBRL%
-pushd %ICU_ICUDIR%
-
-@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
-
-set ICUFAILED=
-set ICURUN=
-set ICUFAILCNT=0
-
-@echo on
-
-@set THT=icuinfo
-@echo ==== %THT% =========================================================================
-%ICUINFO_CMD% %ICUINFO_OPTS%
-
-@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%
-
-@REM  (Layout is deprecated)
-@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%
-
-@echo off
-
-REM clean up
-set PATH=%ICU_OPATH%
-REM unset ICU_OPATH
-popd
-
-@REM done
-
-echo -
-echo -
-echo -
-echo ============================================================
-echo Summary: ICU in %ICU_ICUDIR%  arch=%ICU_ARCH% type=%ICU_DBRL%
-echo -
-echo Tests Run    : %ICURUN%
-
-if %ICUFAILCNT% == 0 (
-       echo " - All Passed!"
-       exit /b 0
-)
-echo Failing Tests: %ICUFAILED%
-echo -
-echo FAILED!
-
-exit /b 1
\ No newline at end of file
+@echo off\r
+REM Copyright (C) 2016 and later: Unicode, Inc. and others.\r
+REM License & terms of use: http://www.unicode.org/copyright.html\r
+REM  ********************************************************************\r
+REM  * COPYRIGHT:\r
+REM  * Copyright (c) 2010-2014, International Business Machines Corporation\r
+REM  * and others. All Rights Reserved.\r
+REM  ********************************************************************\r
+\r
+set ICU_ARCH=%1\r
+set ICU_DBRL=%2\r
+\r
+if "%1" == "" (\r
+echo Usage: %0 "x86 or x64"  "Debug or Release"\r
+exit /b 1\r
+)\r
+\r
+if "%2" == "" (\r
+echo Usage: %0 %1 "Debug or Release"\r
+exit /b 1\r
+)\r
+\r
+set ICU_OPATH=%PATH%\r
+\r
+set ICU_ICUDIR="%~dp0"\..\..\r
+\r
+if "%ICU_ARCH%" == "x64" (\r
+set ICU_BINDIR=%~dp0\..\..\bin64\r
+) else (\r
+set ICU_BINDIR=%~dp0\..\..\bin\r
+)\r
+\r
+set PATH=%ICU_BINDIR%;%PATH%\r
+\r
+echo testing ICU in %ICU_ICUDIR%  arch=%ICU_ARCH% type=%ICU_DBRL%\r
+pushd %ICU_ICUDIR%\r
+\r
+@rem factor these out\r
+set ICUINFO_CMD=%ICU_ICUDIR%\source\tools\icuinfo\%ICU_ARCH%\%ICU_DBRL%\icuinfo.exe\r
+set INTLTEST_CMD=%ICU_ICUDIR%\source\test\intltest\%ICU_ARCH%\%ICU_DBRL%\intltest.exe\r
+set IOTEST_CMD=%ICU_ICUDIR%\source\test\iotest\%ICU_ARCH%\%ICU_DBRL%\iotest.exe\r
+set CINTLTST_CMD=%ICU_ICUDIR%\source\test\cintltst\%ICU_ARCH%\%ICU_DBRL%\cintltst.exe\r
+set LETEST_CMD=%ICU_ICUDIR%\source\test\letest\%ICU_ARCH%\%ICU_DBRL%\letest.exe\r
+\r
+set ICUFAILED=\r
+set ICURUN=\r
+set ICUFAILCNT=0\r
+\r
+@echo on\r
+\r
+@set THT=icuinfo\r
+@echo ==== %THT% =========================================================================\r
+%ICUINFO_CMD% %ICUINFO_OPTS%\r
+\r
+@IF NOT ERRORLEVEL 1 GOTO OK_%THT%\r
+@set ICUFAILED=%ICUFAILED% %THT%\r
+@set ICUFAILCNT=1\r
+:OK_icuinfo\r
+@set ICURUN=%ICURUN% %THT%\r
+\r
+@set THT=intltest\r
+@echo ==== %THT% =========================================================================\r
+@cd %ICU_ICUDIR%\source\test\intltest\r
+%INTLTEST_CMD% %INTLTEST_OPTS%\r
+\r
+@IF NOT ERRORLEVEL 1 GOTO OK_%THT%\r
+@set ICUFAILED=%ICUFAILED% %THT%\r
+@set ICUFAILCNT=1\r
+:OK_intltest\r
+@set ICURUN=%ICURUN% %THT%\r
+\r
+@set THT=iotest\r
+@echo ==== %THT% =========================================================================\r
+@cd %ICU_ICUDIR%\source\test\iotest\r
+%IOTEST_CMD% %IOTEST_OPTS%\r
+\r
+@IF NOT ERRORLEVEL 1 GOTO OK_%THT%\r
+@set ICUFAILED=%ICUFAILED% %THT%\r
+@set ICUFAILCNT=1\r
+:OK_IOTEST\r
+@set ICURUN=%ICURUN% %THT%\r
+\r
+@set THT=cintltst\r
+@echo ==== %THT% =========================================================================\r
+@cd %ICU_ICUDIR%\source\test\cintltst\r
+%CINTLTST_CMD% %CINTLTST_OPTS%\r
+\r
+@IF NOT ERRORLEVEL 1 GOTO OK_%THT%\r
+@set ICUFAILED=%ICUFAILED% %THT%\r
+@set ICUFAILCNT=1\r
+:OK_cintltst\r
+@set ICURUN=%ICURUN% %THT%\r
+\r
+@REM  (Layout is deprecated - this would require HarfBuzz)\r
+@REM  @set THT=letest\r
+@REM  @echo ==== %THT% =========================================================================\r
+@REM  @cd %ICU_ICUDIR%\source\test\letest\r
+@REM  %LETST_CMD% %LETEST_OPTS%\r
+\r
+@REM  @IF NOT ERRORLEVEL 1 GOTO OK_%THT%\r
+@REM  @set ICUFAILED=%ICUFAILED% %THT%\r
+@REM  @set ICUFAILCNT=1\r
+@REM  :OK_letest\r
+@REM  @set ICURUN=%ICURUN% %THT%\r
+\r
+@echo off\r
+\r
+REM clean up\r
+set PATH=%ICU_OPATH%\r
+REM unset ICU_OPATH\r
+popd\r
+\r
+@REM done\r
+\r
+echo -\r
+echo -\r
+echo -\r
+echo ============================================================\r
+echo Summary: ICU in %ICU_ICUDIR%  arch=%ICU_ARCH% type=%ICU_DBRL%\r
+echo -\r
+echo Tests Run    : %ICURUN%\r
+\r
+if %ICUFAILCNT% == 0 (\r
+       echo " - All Passed!"\r
+       exit /b 0\r
+)\r
+echo Failing Tests: %ICUFAILED%\r
+echo -\r
+echo FAILED!\r
+\r
+exit /b 1\r