1@echo off 2rem Used by the buildbot "remotedeploy" step. 3setlocal 4 5set PATH=%PATH%;%SystemRoot%\SysNative\OpenSSH;%SystemRoot%\System32\OpenSSH 6set here=%~dp0 7set arm32_ssh= 8set suffix=_d 9if "%REMOTE_PYTHON_DIR%"=="" (set REMOTE_PYTHON_DIR=C:\python\) 10if NOT "%REMOTE_PYTHON_DIR:~-1,1%"=="\" (set REMOTE_PYTHON_DIR=%REMOTE_PYTHON_DIR%\) 11 12:CheckOpts 13if "%1"=="-arm32" (set arm32_ssh=true) & (set prefix=%REMOTE_PYTHON_DIR%pcbuild\arm32) & shift & goto CheckOpts 14if "%1"=="-d" (set suffix=_d) & shift & goto CheckOpts 15if "%1"=="+d" (set suffix=) & shift & goto CheckOpts 16if NOT "%1"=="" (echo unrecognized option %1) & goto Arm32SshHelp 17 18if "%arm32_ssh%"=="true" goto :Arm32Ssh 19 20:Arm32Ssh 21if "%SSH_SERVER%"=="" goto :Arm32SshHelp 22 23set PYTHON_EXE=%prefix%\python%suffix%.exe 24echo on 25ssh %SSH_SERVER% %PYTHON_EXE% -m test.pythoninfo 26exit /b %ERRORLEVEL% 27 28:Arm32SshHelp 29echo SSH_SERVER environment variable must be set to administrator@[ip address] 30echo where [ip address] is the address of a Windows IoT Core ARM32 device. 31echo. 32echo The test worker should have the SSH agent running. 33echo Also a key must be created with ssh-keygen and added to both the buildbot worker machine 34echo and the ARM32 worker device: see https://docs.microsoft.com/en-us/windows/iot-core/connect-your-device/ssh 35exit /b 127 36