diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2015-06-10 05:43:20 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2015-06-10 05:43:20 (GMT) |
commit | 785273cd84a81a695a2707c0ef48df4f285f8699 (patch) | |
tree | e10327d27bbadbc24db464c268cc20b2e5f26de1 /Tools | |
parent | 9380acbbf707d570696ab953489e62173e515b24 (diff) | |
parent | 6250df81bfbe567bb12c6dc29af149c62f35afa6 (diff) | |
download | cpython-785273cd84a81a695a2707c0ef48df4f285f8699.zip cpython-785273cd84a81a695a2707c0ef48df4f285f8699.tar.gz cpython-785273cd84a81a695a2707c0ef48df4f285f8699.tar.bz2 |
Merge forward extras beyond #21907 backport.
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/buildbot/build.bat | 7 | ||||
-rw-r--r-- | Tools/buildbot/clean-amd64.bat | 2 | ||||
-rw-r--r-- | Tools/buildbot/clean.bat | 19 | ||||
-rw-r--r-- | Tools/buildbot/test-amd64.bat | 5 | ||||
-rw-r--r-- | Tools/buildbot/test.bat | 14 |
5 files changed, 19 insertions, 28 deletions
diff --git a/Tools/buildbot/build.bat b/Tools/buildbot/build.bat index 1debfc1..5e840cc 100644 --- a/Tools/buildbot/build.bat +++ b/Tools/buildbot/build.bat @@ -1,10 +1,7 @@ @rem Used by the buildbot "compile" step.
@rem Clean up
-set PLAT=
-if '%1' EQU '-p' if '%2' EQU 'x64' (set PLAT=-amd64)
-
-call "%~dp0clean%PLAT%.bat"
+call "%~dp0clean.bat" %*
@rem If you need the buildbots to start fresh (such as when upgrading to
@rem a new version of an external library, especially Tcl/Tk):
@@ -17,4 +14,4 @@ call "%~dp0clean%PLAT%.bat" @rem 4) re-comment, commit and push again
@rem Do the build
-call "%~dp0..\..\PCbuild\build.bat" -e -d -v %*
+call "%~dp0..\..\PCbuild\build.bat" -e -d -k -v %*
diff --git a/Tools/buildbot/clean-amd64.bat b/Tools/buildbot/clean-amd64.bat index 5e68e30..6bbbb65 100644 --- a/Tools/buildbot/clean-amd64.bat +++ b/Tools/buildbot/clean-amd64.bat @@ -1,2 +1,2 @@ @rem Used by the buildbot "clean" step.
-@call "%~dp0clean.bat" x64
+call "%~dp0clean.bat" -p x64 %*
diff --git a/Tools/buildbot/clean.bat b/Tools/buildbot/clean.bat index 6890453..0fc68fd 100644 --- a/Tools/buildbot/clean.bat +++ b/Tools/buildbot/clean.bat @@ -5,25 +5,12 @@ setlocal set root=%~dp0..\..
set pcbuild=%root%\PCbuild
-if "%1" == "x64" (
- set vcvars_target=x86_amd64
- set platform=x64
-) else (
- set vcvars_target=x86
- set platform=Win32
-)
-
-call "%pcbuild%\env.bat" %vcvars_target%
-
-echo.Attempting to kill Pythons...
-msbuild /v:m /nologo /target:KillPython "%pcbuild%\pythoncore.vcxproj" /p:Configuration=Release /p:Platform=%platform% /p:KillPython=true
+echo Deleting build
+call "%pcbuild%\build.bat" -t Clean -k %*
+call "%pcbuild%\build.bat" -t Clean -k -d %*
echo Deleting .pyc/.pyo files ...
del /s "%root%\Lib\*.pyc" "%root%\Lib\*.pyo"
echo Deleting test leftovers ...
rmdir /s /q "%root%\build"
-
-echo Deleting build
-msbuild /v:m /nologo /target:clean "%pcbuild%\pcbuild.proj" /p:Configuration=Release /p:Platform=%platform%
-msbuild /v:m /nologo /target:clean "%pcbuild%\pcbuild.proj" /p:Configuration=Debug /p:Platform=%platform%
diff --git a/Tools/buildbot/test-amd64.bat b/Tools/buildbot/test-amd64.bat index 9467e86..859b37f 100644 --- a/Tools/buildbot/test-amd64.bat +++ b/Tools/buildbot/test-amd64.bat @@ -1,5 +1,2 @@ @rem Used by the buildbot "test" step.
-
-setlocal
-
-call "%~dp0..\..\PCbuild\rt.bat" -d -q -x64 -uall -rwW -n --timeout=3600 %*
+call "%~dp0test.bat" -x64 %*
diff --git a/Tools/buildbot/test.bat b/Tools/buildbot/test.bat index 995f012..154dfa5 100644 --- a/Tools/buildbot/test.bat +++ b/Tools/buildbot/test.bat @@ -1,5 +1,15 @@ @rem Used by the buildbot "test" step.
+@setlocal
-setlocal
+@set here=%~dp0
+@set rt_opts=-q -d
-call "%~dp0..\..\PCbuild\rt.bat" -d -q -uall -rwW -n --timeout=3600 %*
+:CheckOpts
+@if '%1'=='-x64' (set rt_opts=%rt_opts% %1) & 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
+
+call "%here%..\..\PCbuild\rt.bat" %rt_opts% -uall -rwW -n --timeout=3600 %1 %2 %3 %4 %5 %6 %7 %8 %9
|