-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
bpo-36511: Fix Windows arm32 buildbot pythoninfo, scp, and ssh #13454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
1d33fe6
3aadf52
7f17d29
9aaa2c4
3f38d18
4e147de
9819647
365701c
69c40d7
086a1b9
042e0e9
e230795
1a1f12d
29601d8
786194d
cd2d5c5
f5c917a
e2fb14b
ce3dfbc
5c355ab
f1ce1bf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,7 @@ | |
|
|
||
| ssl = support.import_module("ssl") | ||
|
|
||
| Py_DEBUG = hasattr(sys, 'gettotalrefcount') | ||
|
|
||
| PROTOCOLS = sorted(ssl._PROTOCOL_NAMES) | ||
| HOST = support.HOST | ||
|
|
@@ -1345,6 +1346,7 @@ def test_load_verify_cadata(self): | |
| ctx.load_verify_locations(cadata=b"broken") | ||
|
|
||
|
|
||
| @unittest.skipIf(Py_DEBUG, "Crashes on debug python builds") | ||
|
||
| def test_load_dh_params(self): | ||
| ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) | ||
| ctx.load_dh_params(DHFILE) | ||
|
|
@@ -1645,6 +1647,7 @@ def test_str(self): | |
| self.assertEqual(str(e), "foo") | ||
| self.assertEqual(e.errno, 1) | ||
|
|
||
| @unittest.skipIf(Py_DEBUG, "Crashes on debug python builds") | ||
| def test_lib_reason(self): | ||
| # Test the library and reason attributes | ||
| ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) | ||
|
|
@@ -3825,6 +3828,7 @@ def test_compression_disabled(self): | |
| sni_name=hostname) | ||
| self.assertIs(stats['compression'], None) | ||
|
|
||
| @unittest.skipIf(Py_DEBUG, "Crashes on debug python builds") | ||
| def test_dh_params(self): | ||
| # Check we can get a connection with ephemeral Diffie-Hellman | ||
| client_context, server_context, hostname = testing_context() | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| @echo off | ||
| rem Used by the buildbot "remotedeploy" step. | ||
| setlocal | ||
|
|
||
| set here=%~dp0 | ||
| set arm32_ssh= | ||
|
|
||
| :CheckOpts | ||
| if "%1"=="-arm32" (set arm32_ssh=true) & shift & goto CheckOpts | ||
| if NOT "%1"=="" (echo unrecognized option %1) & goto Arm32SshHelp | ||
|
|
||
| if "%arm32_ssh%"=="true" goto :Arm32Ssh | ||
|
|
||
| :Arm32Ssh | ||
| if "%SSH_SERVER%"=="" goto :Arm32SshHelp | ||
| if "%SSH%"=="" if EXIST %WINDIR%\System32\OpenSSH\ssh.exe (set SSH=%WINDIR%\System32\OpenSSH\ssh.exe) | ||
| if "%SCP%"=="" if EXIST %WINDIR%\System32\OpenSSH\scp.exe (set SCP=%WINDIR%\System32\OpenSSH\scp.exe) | ||
| echo SSH = %SSH% | ||
| echo SCP = %SCP% | ||
| if "%PYTHON_SOURCE%"=="" (set PYTHON_SOURCE=%here%..\..\) | ||
| if "%REMOTE_PYTHON_DIR%"=="" (set REMOTE_PYTHON_DIR=C:\python\) | ||
| %SSH% %SSH_SERVER% "if EXIST %REMOTE_PYTHON_DIR% (rd %REMOTE_PYTHON_DIR% /s/q)" | ||
| %SSH% %SSH_SERVER% "md %REMOTE_PYTHON_DIR%PCBuild\arm32" | ||
| %SSH% %SSH_SERVER% "md %REMOTE_PYTHON_DIR%temp" | ||
| %SSH% %SSH_SERVER% "md %REMOTE_PYTHON_DIR%Modules" | ||
| %SSH% %SSH_SERVER% "md %REMOTE_PYTHON_DIR%PC" | ||
| for /f "USEBACKQ" %%i in (`dir PCbuild\*.bat /b`) do @%SCP% PCBuild\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild" | ||
| for /f "USEBACKQ" %%i in (`dir PCbuild\*.py /b`) do @%SCP% PCBuild\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild" | ||
| for /f "USEBACKQ" %%i in (`dir PCbuild\arm32\*.exe /b`) do @%SCP% PCBuild\arm32\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild\arm32" | ||
| for /f "USEBACKQ" %%i in (`dir PCbuild\arm32\*.pyd /b`) do @%SCP% PCBuild\arm32\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild\arm32" | ||
| for /f "USEBACKQ" %%i in (`dir PCbuild\arm32\*.dll /b`) do @%SCP% PCBuild\arm32\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild\arm32" | ||
| %SCP% -r "%PYTHON_SOURCE%Include" "%SSH_SERVER%:%REMOTE_PYTHON_DIR%Include" | ||
| %SCP% -r "%PYTHON_SOURCE%Lib" "%SSH_SERVER%:%REMOTE_PYTHON_DIR%Lib" | ||
| %SCP% "%PYTHON_SOURCE%Modules\Setup" "%SSH_SERVER%:%REMOTE_PYTHON_DIR%Modules" | ||
| %SCP% "%PYTHON_SOURCE%PC\pyconfig.h" "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PC" | ||
|
|
||
| exit /b 0 | ||
|
|
||
| :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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| @echo off | ||
| rem Used by the buildbot "remotedeploy" step. | ||
| setlocal | ||
|
|
||
| set here=%~dp0 | ||
| set arm32_ssh= | ||
| set suffix=_d | ||
| :CheckOpts | ||
| if "%1"=="-arm32" (set arm32_ssh=true) & (set prefix=c:\python\pcbuild\arm32) & shift & goto CheckOpts | ||
| if "%1"=="-d" (set suffix=_d) & shift & goto CheckOpts | ||
| if "%1"=="+d" (set suffix=) & shift & goto CheckOpts | ||
| if NOT "%1"=="" (echo unrecognized option %1) & goto Arm32SshHelp | ||
|
|
||
| if "%arm32_ssh%"=="true" goto :Arm32Ssh | ||
|
|
||
| :Arm32Ssh | ||
| if "%SSH_SERVER%"=="" goto :Arm32SshHelp | ||
| if "%SSH%"=="" if EXIST %WINDIR%\System32\OpenSSH\ssh.exe (set SSH=%WINDIR%\System32\OpenSSH\ssh.exe) | ||
| set PYTHON_EXE=%prefix%\python%suffix%.exe | ||
| echo on | ||
| %SSH% %SSH_SERVER% %PYTHON_EXE% -m test.pythoninfo | ||
| exit /b 0 | ||
|
|
||
| :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 |
Uh oh!
There was an error while loading. Please reload this page.