[Python-checkins] Update runall.bat to the latest Windows build system. (GH-18571) (#18573)

Miss Islington (bot) webhook-mailer at python.org
Thu Feb 20 13:31:16 EST 2020


https://github.com/python/cpython/commit/471d2b9ce071947ea1d6b61618518cbeb9227348
commit: 471d2b9ce071947ea1d6b61618518cbeb9227348
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-02-20T19:31:11+01:00
summary:

Update runall.bat to the latest Windows build system. (GH-18571) (#18573)

(cherry picked from commit 9b833e00e447a3b8b6966686bff701f549c66263)

Co-authored-by: Stefan Krah <skrah at bytereef.org>

Co-authored-by: Stefan Krah <skrah at bytereef.org>

files:
M Modules/_decimal/tests/runall.bat

diff --git a/Modules/_decimal/tests/runall.bat b/Modules/_decimal/tests/runall.bat
index 5bc872a63f83a..a9d6c6f19c8bb 100755
--- a/Modules/_decimal/tests/runall.bat
+++ b/Modules/_decimal/tests/runall.bat
@@ -7,105 +7,123 @@ cd ..\..\..\
 
 echo.
 echo # ======================================================================
-echo #                            Building Python
+echo #                      Building Python (Debug^|x64)
 echo # ======================================================================
 echo.
 
-call "%VS100COMNTOOLS%\..\..\VC\vcvarsall.bat" x64
-msbuild /noconsolelogger /target:clean PCbuild\pcbuild.sln /p:Configuration=Release /p:PlatformTarget=x64
-msbuild /noconsolelogger /target:clean PCbuild\pcbuild.sln /p:Configuration=Debug /p:PlatformTarget=x64
-msbuild /noconsolelogger PCbuild\pcbuild.sln /p:Configuration=Release /p:Platform=x64
-msbuild /noconsolelogger PCbuild\pcbuild.sln /p:Configuration=Debug /p:Platform=x64
-
-call "%VS100COMNTOOLS%\..\..\VC\vcvarsall.bat" x86
-msbuild /noconsolelogger PCbuild\pcbuild.sln /p:Configuration=Release /p:Platform=Win32
-msbuild /noconsolelogger PCbuild\pcbuild.sln /p:Configuration=Debug /p:Platform=Win32
-echo.
-echo.
+call .\Tools\buildbot\clean.bat
+call .\Tools\buildbot\build.bat -c Debug -p x64
 
 echo.
 echo # ======================================================================
-echo #                       test_decimal: platform=x64
+echo #                           platform=Debug^|x64
 echo # ======================================================================
 echo.
 
-cd PCbuild\amd64
-
 echo # ==================== refleak tests =======================
 echo.
-python_d.exe -m test -uall -R 2:2 test_decimal
+call python.bat -m test -uall -R 3:3 test_decimal
 echo.
 echo.
 
 echo # ==================== regular tests =======================
 echo.
-python.exe -m test -uall test_decimal
+call python.bat -m test -uall test_decimal
+echo.
+echo.
+
+echo # ==================== deccheck =======================
+echo.
+call python.bat .\Modules\_decimal\tests\deccheck.py
 echo.
 echo.
 
-cd ..
 
 echo.
 echo # ======================================================================
-echo #                       test_decimal: platform=x86
+echo #                      Building Python (Release^|x64)
 echo # ======================================================================
 echo.
 
-echo # ==================== refleak tests =======================
-echo.
-python_d.exe -m test -uall -R 2:2 test_decimal
+call .\Tools\buildbot\clean.bat
+call .\Tools\buildbot\build.bat -c Release -p x64
+
 echo.
+echo # ======================================================================
+echo #                          platform=Release^|x64
+echo # ======================================================================
 echo.
 
 echo # ==================== regular tests =======================
 echo.
-python.exe -m test -uall test_decimal
+call python.bat -m test -uall test_decimal
+echo.
+echo.
+
+echo # ==================== deccheck =======================
+echo.
+call python.bat .\Modules\_decimal\tests\deccheck.py
+echo.
+echo.
+
+
 echo.
+echo # ======================================================================
+echo #                      Building Python (Debug^|Win32)
+echo # ======================================================================
 echo.
 
-cd amd64
+call .\Tools\buildbot\clean.bat
+call Tools\buildbot\build.bat -c Debug -p Win32
 
 echo.
 echo # ======================================================================
-echo #                         deccheck: platform=x64
+echo #                         platform=Debug^|Win32
 echo # ======================================================================
 echo.
 
-echo # ==================== debug build =======================
+echo # ==================== refleak tests =======================
+echo.
+call python.bat -m test -uall -R 3:3 test_decimal
+echo.
+echo.
+
+echo # ==================== regular tests =======================
 echo.
-python_d.exe ..\..\Modules\_decimal\tests\deccheck.py
+call python.bat -m test -uall test_decimal
 echo.
 echo.
 
-echo # =================== release build ======================
+echo # ==================== deccheck =======================
 echo.
-python.exe ..\..\Modules\_decimal\tests\deccheck.py
+call python.bat .\Modules\_decimal\tests\deccheck.py
 echo.
 echo.
 
-cd ..
 
 echo.
 echo # ======================================================================
-echo #                         deccheck: platform=x86
+echo #                      Building Python (Release^|Win32)
 echo # ======================================================================
 echo.
+
+call .\Tools\buildbot\clean.bat
+call .\Tools\buildbot\build.bat -c Release -p Win32
+
+echo.
+echo # ======================================================================
+echo #                          platform=Release^|Win32
+echo # ======================================================================
 echo.
 
-echo # ==================== debug build =======================
+echo # ==================== regular tests =======================
 echo.
-python_d.exe ..\Modules\_decimal\tests\deccheck.py
+call python.bat -m test -uall test_decimal
 echo.
 echo.
 
-echo # =================== release build ======================
+echo # ==================== deccheck =======================
 echo.
-python.exe ..\Modules\_decimal\tests\deccheck.py
+call python.bat .\Modules\_decimal\tests\deccheck.py
 echo.
 echo.
-
-
-cd ..\Modules\_decimal\tests
-
-
-



More information about the Python-checkins mailing list