mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
* Add --fast-ci and --slow-ci options to libregrtest:
* --fast-ci uses a default timeout of 10 minutes and "-u all,-cpu"
(skip slowest tests).
* --slow-ci uses a default timeout of 20 minues and "-u all" (run
all tests).
* regrtest header now lists test resources.
* Makefile changes:
* "make test", "make hostrunnertest" and "make coverage-report" now
use --fast-ci option and TESTTIMEOUT variable.
* "make buildbottest" now uses "--slow-ci". Remove options which
became redundant with "--slow-ci".
* "make testall" and "make testuniversal" now use --slow-ci option
and TESTTIMEOUT variable.
* "make testall" now uses "find -exec rm ..." instead of
"find ... -print|xargs rm ...", same as "make clean".
* GitHub Actions workflow:
* Ubuntu and Address Sanitizer jobs now use "make test". Remove
options which became redundant with "--fast-ci".
* Windows jobs now use --fast-ci option.
* Use -j0 to detect the number of CPUs.
* Set Makefile TESTTIMEOUT default to an empty string, since
--slow-ci and --fast-ci use different default timeout. It's now
accepted to pass "--timeout=" to regrtest: treated as not timeout.
* Tools/scripts/run_tests.py now uses --fast-ci option.
* Tools/buildbot/test.bat now uses --slow-ci option. Remove
--timeout=1200 option, redundant with --slow-ci.
51 lines
2.2 KiB
Batchfile
51 lines
2.2 KiB
Batchfile
@echo off
|
|
rem Used by the buildbot "test" step.
|
|
setlocal
|
|
|
|
set PATH=%PATH%;%SystemRoot%\SysNative\OpenSSH;%SystemRoot%\System32\OpenSSH
|
|
set here=%~dp0
|
|
set rt_opts=-q -d
|
|
set regrtest_args=
|
|
set arm32_ssh=
|
|
|
|
:CheckOpts
|
|
if "%1"=="-x64" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
|
|
if "%1"=="-arm64" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
|
|
if "%1"=="-arm32" (set rt_opts=%rt_opts% %1) & (set arm32_ssh=true) & shift & goto CheckOpts
|
|
if "%1"=="-d" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
|
|
if "%1"=="-O" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
|
|
if "%1"=="-q" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
|
|
if "%1"=="+d" (set rt_opts=%rt_opts:-d=%) & shift & goto CheckOpts
|
|
if "%1"=="+q" (set rt_opts=%rt_opts:-q=%) & shift & goto CheckOpts
|
|
if NOT "%1"=="" (set regrtest_args=%regrtest_args% %1) & shift & goto CheckOpts
|
|
|
|
if "%PROCESSOR_ARCHITECTURE%"=="ARM" if "%arm32_ssh%"=="true" goto NativeExecution
|
|
if "%arm32_ssh%"=="true" goto :Arm32Ssh
|
|
|
|
:NativeExecution
|
|
call "%here%..\..\PCbuild\rt.bat" %rt_opts% --slow-ci %regrtest_args%
|
|
exit /b %ERRORLEVEL%
|
|
|
|
:Arm32Ssh
|
|
set dashU=-unetwork -udecimal -usubprocess -uurlfetch -utzdata
|
|
if "%SSH_SERVER%"=="" goto :Arm32SshHelp
|
|
if "%PYTHON_SOURCE%"=="" (set PYTHON_SOURCE=%here%..\..\)
|
|
if "%REMOTE_PYTHON_DIR%"=="" (set REMOTE_PYTHON_DIR=C:\python\)
|
|
if NOT "%REMOTE_PYTHON_DIR:~-1,1%"=="\" (set REMOTE_PYTHON_DIR=%REMOTE_PYTHON_DIR%\)
|
|
|
|
set TEMP_ARGS=--temp %REMOTE_PYTHON_DIR%temp
|
|
|
|
set rt_args=%rt_opts% --slow-ci %dashU% %regrtest_args% %TEMP_ARGS%
|
|
ssh %SSH_SERVER% "set TEMP=%REMOTE_PYTHON_DIR%temp& cd %REMOTE_PYTHON_DIR% & %REMOTE_PYTHON_DIR%PCbuild\rt.bat" %rt_args%
|
|
set ERR=%ERRORLEVEL%
|
|
scp %SSH_SERVER%:"%REMOTE_PYTHON_DIR%test-results.xml" "%PYTHON_SOURCE%\test-results.xml"
|
|
exit /b %ERR%
|
|
|
|
:Arm32SshHelp
|
|
echo SSH_SERVER environment variable must be set to administrator@[ip address]
|
|
echo where [ip address] is the address of a Windows IoT Core ARM32 device.
|
|
echo.
|
|
echo The test worker should have the SSH agent running.
|
|
echo Also a key must be created with ssh-keygen and added to both the buildbot worker machine
|
|
echo and the ARM32 worker device: see https://docs.microsoft.com/en-us/windows/iot-core/connect-your-device/ssh
|
|
exit /b 127
|