Kaynağa Gözat

Remove unused buildall/testall scripts

Doug Ilijev 7 yıl önce
ebeveyn
işleme
4e716ab120
4 değiştirilmiş dosya ile 0 ekleme ve 207 silme
  1. 0 12
      jenkins/buildall.cmd
  2. 0 12
      jenkins/testall.cmd
  3. 0 35
      test/jenkins.buildall.cmd
  4. 0 148
      test/jenkins.testall.cmd

+ 0 - 12
jenkins/buildall.cmd

@@ -1,12 +0,0 @@
-::-------------------------------------------------------------------------------------------------------
-:: Copyright (C) Microsoft. All rights reserved.
-:: Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
-::-------------------------------------------------------------------------------------------------------
-
-@echo off
-setlocal
-
-set JENKINS_BUILD=True
-call %~dp0..\test\jenkins.buildall.cmd %*
-
-endlocal

+ 0 - 12
jenkins/testall.cmd

@@ -1,12 +0,0 @@
-::-------------------------------------------------------------------------------------------------------
-:: Copyright (C) Microsoft. All rights reserved.
-:: Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
-::-------------------------------------------------------------------------------------------------------
-
-@echo off
-setlocal
-
-set JENKINS_BUILD=True
-call %~dp0..\test\jenkins.testall.cmd %*
-
-endlocal

+ 0 - 35
test/jenkins.buildall.cmd

@@ -1,35 +0,0 @@
-::-------------------------------------------------------------------------------------------------------
-:: Copyright (C) Microsoft. All rights reserved.
-:: Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
-::-------------------------------------------------------------------------------------------------------
-
-@echo off
-setlocal
-
-if not "%JENKINS_BUILD%" == "True" (
-    echo This script should be run under a Jenkins Build environment
-    exit /b 2
-)
-
-pushd %~dp0
-
-call jenkins.build.init.cmd %*
-
-set _BuildArch=
-set _BuildType=
-
-call jenkins.build.cmd x86 debug %JENKINS_BUILD_ARGS%
-call jenkins.build.cmd x86 test %JENKINS_BUILD_ARGS%
-call jenkins.build.cmd x86 release %JENKINS_BUILD_ARGS%
-
-call jenkins.build.cmd x64 debug %JENKINS_BUILD_ARGS%
-call jenkins.build.cmd x64 test %JENKINS_BUILD_ARGS%
-call jenkins.build.cmd x64 release %JENKINS_BUILD_ARGS%
-
-call jenkins.build.cmd arm debug %JENKINS_BUILD_ARGS%
-call jenkins.build.cmd arm test %JENKINS_BUILD_ARGS%
-call jenkins.build.cmd arm release %JENKINS_BUILD_ARGS%
-
-popd
-
-endlocal

+ 0 - 148
test/jenkins.testall.cmd

@@ -1,148 +0,0 @@
-::-------------------------------------------------------------------------------------------------------
-:: Copyright (C) Microsoft. All rights reserved.
-:: Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
-::-------------------------------------------------------------------------------------------------------
-
-:: ============================================================================
-::
-:: jenkins.testall.cmd
-::
-:: Runs tests for Jenkins continuous integration. This script is called from
-:: the Jenkins CI build and it runs all tests for x86 and x64, debug and test
-:: build configs.
-::
-:: Do not use this script to run all tests on your dev box.
-::   - It will delete all your existing test logs
-::   - It does not run the various flavors of the tests in parallel (though
-::     this is not currently possible anyway because rl stages logs in a
-::     common directory)
-::   - It does nothing to provide useful output when there are failures, e.g.
-::     they can be buried under thousands of lines of output from further
-::     tests run.
-::   - It cannot be cancelled without risk of polluting your command prompt
-::     environment with environment variables that will make further calls to
-::     runtests.cmd behave unexpectedly.
-::
-:: ============================================================================
-
-@echo off
-setlocal
-
-set _RootDir=%~dp0..
-set _BinDir=%_RootDir%\Build\VcBuild\bin
-set _HadFailures=0
-
-:: ============================================================================
-:: Main script
-:: ============================================================================
-:main
-
-  if not "%JENKINS_BUILD%" == "True" (
-    echo This script should be run under a Jenkins Build environment
-    exit /b 2
-  )
-
-  pushd %_RootDir%\test
-  set _TestDir=%CD%
-
-  call jenkins.parsetestargs.cmd %*
-
-  call :doSilent rd /s/q %_TestDir%\logs
-
-  call :runTests x86debug
-  call :runTests x86test
-  call :runTests x64debug
-  call :runTests x64test
-  call :runNativeTests x86debug
-  call :runNativeTests x86test
-  call :runNativeTests x64debug
-  call :runNativeTests x64test
-
-  call :summarizeLogs
-
-  echo.
-  echo -- jenkins.testall.cmd ^>^> Failure code: %_HadFailures%
-  if "%_HadFailures%" NEQ "0" (
-    if "%_HadFailures%" == "3" (
-      echo -- jenkins.testall.cmd ^>^> Unit tests failed! 1>&2
-    ) else if "%_HadFailures%" == "4" (
-      echo -- jenkins.testall.cmd ^>^> Native tests failed! 1>&2
-    ) else (
-      echo -- jenkins.testall.cmd ^>^> Unknown failure! 1>&2
-    )
-  ) else (
-    echo -- jenkins.testall.cmd ^>^> Tests passed!
-  )
-
-  popd
-
-  exit /b %_HadFailures%
-
-  goto :eof
-
-:: ============================================================================
-:: Run one test suite against one build config and record if there were errors
-:: ============================================================================
-:runTests
-
-  call :do %_TestDir%\runtests.cmd -%1 -quiet -cleanupall -nottags exclude_jenkins %_ExtraTestArgs% -binDir %_BinDir%
-
-  set _error=%ERRORLEVEL%
-  if "%_error%" NEQ "0" (
-    echo -- jenkins.testall.cmd ^>^> runtests.cmd returned error code: %_error%
-    set _HadFailures=3
-  )
-
-  goto :eof
-
-:: ============================================================================
-:: Run jsrt test suite against one build config and record if there were errors
-:: ============================================================================
-:runNativeTests
-
-  set _LogFile=%_LogDir%\nativetests.log
-  call :do %_TestDir%\runnativetests.cmd -%1 -binDir %_BinDir% > %_LogFile% 2>&1
-
-  set _error=%ERRORLEVEL%
-  echo -- jenkins.testall.cmd ^>^> runnativetests.cmd returned error code: %_error%
-
-  if "%_error%" NEQ "0" (
-    echo -- jenkins.testall.cmd ^>^> runnativetests.cmd failed; printing %_LogFile%
-    powershell -c "if (Test-Path %_LogFile%) { Get-Content  %_LogFile% }"
-    set _HadFailures=4
-  )
-
-  goto :eof
-
-:: ============================================================================
-:: Summarize the logs into a listing of only the failures
-:: ============================================================================
-:summarizeLogs
-
-  pushd %_TestDir%\logs
-  findstr /sp failed rl.results.log > summary.log
-  findstr /sip failed nativetests.log >> summary.log
-  rem Echo to stderr so that VSO includes the output in the build summary
-  type summary.log 1>&2
-  popd
-
-:: ============================================================================
-:: Echo a command line before executing it
-:: ============================================================================
-:do
-
-  echo -- jenkins.testall.cmd ^>^> %*
-  cmd /s /c "%*"
-
-  goto :eof
-
-:: ============================================================================
-:: Echo a command line before executing it and redirect the command's output
-:: to nul
-:: ============================================================================
-:doSilent
-
-  echo -- jenkins.testall.cmd ^>^> %* ^> nul 2^>^&1
-  cmd /s /c "%* > nul 2>&1"
-
-  goto :eof