Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a1952122
Commit
a1952122
authored
Jun 20, 2019
by
Paul Monson
Committed by
Steve Dower
Jun 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-36511: Improve ARM32 buildbot scripts (GH-14251)
parent
7e1a9aac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
23 deletions
+29
-23
Tools/buildbot/remoteDeploy.bat
Tools/buildbot/remoteDeploy.bat
+23
-19
Tools/buildbot/remotePythonInfo.bat
Tools/buildbot/remotePythonInfo.bat
+3
-2
Tools/buildbot/test.bat
Tools/buildbot/test.bat
+3
-2
No files found.
Tools/buildbot/remoteDeploy.bat
View file @
a1952122
...
...
@@ -2,6 +2,7 @@
rem Used by the buildbot "remotedeploy" step.
setlocal
set
PATH
=
%PATH%
;
%SystemRoot%
\SysNative\OpenSSH
;
%SystemRoot%
\System32\OpenSSH
set
here
=
%~dp0
set
arm32_ssh
=
...
...
@@ -13,28 +14,31 @@ if "%arm32_ssh%"=="true" goto :Arm32Ssh
:Arm
32
Ssh
if
"
%SSH_SERVER%
"
==
""
goto
:Arm
32
SshHelp
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%
ssh
%SSH_SERVER%
echo
Make
sure
we
can
find
SSH
and
SSH_SERVER
variable
is
valid
if
%ERRORLEVEL%
NEQ
0
(
echo
SSH
does
not
work
)
&
exit
/b
%ERRORLEVEL
%
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%
\
)
%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%
-r
"
%PYTHON_SOURCE%
Tools"
"
%SSH_SERVER%
:
%REMOTE_PYTHON_DIR%
Tools"
%SCP%
"
%PYTHON_SOURCE%
Modules\Setup"
"
%SSH_SERVER%
:
%REMOTE_PYTHON_DIR%
Modules"
%SCP%
"
%PYTHON_SOURCE%
PC\pyconfig.h"
"
%SSH_SERVER%
:
%REMOTE_PYTHON_DIR%
PC"
echo
PYTHON_SOURCE
=
%PYTHON_SOURCE%
echo
REMOTE_PYTHON_DIR
=
%REMOTE_PYTHON_DIR%
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
-r
"
%PYTHON_SOURCE%
Tools"
"
%SSH_SERVER%
:
%REMOTE_PYTHON_DIR%
Tools"
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
%ERRORLEVEL%
...
...
Tools/buildbot/remotePythonInfo.bat
View file @
a1952122
...
...
@@ -2,6 +2,7 @@
rem Used by the buildbot "remotedeploy" step.
setlocal
set
PATH
=
%PATH%
;
%SystemRoot%
\SysNative\OpenSSH
;
%SystemRoot%
\System32\OpenSSH
set
here
=
%~dp0
set
arm32_ssh
=
set
suffix
=
_d
...
...
@@ -18,10 +19,10 @@ if "%arm32_ssh%"=="true" goto :Arm32Ssh
:Arm
32
Ssh
if
"
%SSH_SERVER%
"
==
""
goto
:Arm
32
SshHelp
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
ssh
%SSH_SERVER%
%PYTHON_EXE%
-m
test
.pythoninfo
exit
/b
%ERRORLEVEL%
:Arm
32
SshHelp
...
...
Tools/buildbot/test.bat
View file @
a1952122
...
...
@@ -2,6 +2,7 @@
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
=
-j
1
...
...
@@ -31,11 +32,11 @@ 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%
\
)
if
"
%SSH%
"
==
""
if
EXIST
%WINDIR%
\System32\OpenSSH\ssh.exe
(
set
SSH
=
%WINDIR%
\System32\OpenSSH\ssh.exe
)
set
TEMP_ARGS
=-
-temp
%REMOTE_PYTHON_DIR%
temp
set
rt_args
=
%rt_opts%
%dashU%
-rwW
-
-slowest
-
-timeout
=
1200
-
-fail-env-changed
%regrtest_args%
%TEMP_ARGS%
%SSH%
%SSH_SERVER%
"set TEMP=
%REMOTE_PYTHON_DIR%
temp&
%REMOTE_PYTHON_DIR%
PCbuild\rt.bat"
%rt_args%
ssh
%SSH_SERVER%
"set TEMP=
%REMOTE_PYTHON_DIR%
temp&
%REMOTE_PYTHON_DIR%
PCbuild\rt.bat"
%rt_args%
exit
/b
%ERRORLEVEL%
:Arm
32
SshHelp
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment