[Python-checkins] cpython: Update test script to Visual Studio 2010.

stefan.krah python-checkins at python.org
Mon Jun 25 14:42:30 CEST 2012


http://hg.python.org/cpython/rev/1000759f89f6
changeset:   77773:1000759f89f6
user:        Stefan Krah <skrah at bytereef.org>
date:        Mon Jun 25 14:41:37 2012 +0200
summary:
  Update test script to Visual Studio 2010.

files:
  Modules/_decimal/tests/runall-memorydebugger.sh |   0 
  Modules/_decimal/tests/runall.bat               |  74 ++++-----
  2 files changed, 32 insertions(+), 42 deletions(-)


diff --git a/Modules/_decimal/tests/runall-memorydebugger.sh b/Modules/_decimal/tests/runall-memorydebugger.sh
old mode 100644
new mode 100755
diff --git a/Modules/_decimal/tests/runall.bat b/Modules/_decimal/tests/runall.bat
old mode 100644
new mode 100755
--- a/Modules/_decimal/tests/runall.bat
+++ b/Modules/_decimal/tests/runall.bat
@@ -2,37 +2,49 @@
 
 rem Test all machine configurations, pydebug, refleaks, release build.
 
-cd ..
+cd ..\..\..\
 
-call vcvarsall x64
+
+echo.
+echo # ======================================================================
+echo #                            Building Python
+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.
+
 echo.
 echo # ======================================================================
 echo #                       test_decimal: platform=x64
 echo # ======================================================================
 echo.
 
-cd ..\..\PCbuild
+cd PCbuild\amd64
+
 echo # ==================== refleak tests =======================
 echo.
-echo building python ...
+python_d.exe -m test -uall -R 2:2 test_decimal
 echo.
-vcbuild /clean pcbuild.sln > NUL 2>&1
-vcbuild pcbuild.sln "Debug|x64" > NUL 2>&1
-amd64\python_d.exe -m test -uall -R 2:2 test_decimal
 echo.
 
 echo # ==================== regular tests =======================
 echo.
-echo building python ...
-echo.
-vcbuild /clean pcbuild.sln > NUL 2>&1
-vcbuild pcbuild.sln "Release|x64" > NUL 2>&1
-amd64\python.exe -m test -uall test_decimal
+python.exe -m test -uall test_decimal
 echo.
 echo.
 
+cd ..
 
-call vcvarsall x86
 echo.
 echo # ======================================================================
 echo #                       test_decimal: platform=x86
@@ -41,75 +53,53 @@
 
 echo # ==================== refleak tests =======================
 echo.
-echo building python ...
+python_d.exe -m test -uall -R 2:2 test_decimal
 echo.
-vcbuild /clean pcbuild.sln > NUL 2>&1
-vcbuild pcbuild.sln "Debug|win32" > NUL 2>&1
-python_d.exe -m test -uall -R 2:2 test_decimal
 echo.
 
 echo # ==================== regular tests =======================
 echo.
-echo building python ...
-echo.
-vcbuild /clean pcbuild.sln > NUL 2>&1
-vcbuild pcbuild.sln "Release|win32" > NUL 2>&1
 python.exe -m test -uall test_decimal
 echo.
 echo.
 
+cd amd64
 
-call vcvarsall x64
 echo.
 echo # ======================================================================
 echo #                         deccheck: platform=x64
 echo # ======================================================================
 echo.
-echo.
+
 echo # ==================== debug build =======================
 echo.
-echo building python ...
-echo.
-vcbuild /clean pcbuild.sln > NUL 2>&1
-vcbuild pcbuild.sln "Debug|x64" > NUL 2>&1
-amd64\python_d.exe ..\Modules\_decimal\tests\deccheck.py
+python_d.exe ..\..\Modules\_decimal\tests\deccheck.py
 echo.
 echo.
 
 echo # =================== release build ======================
 echo.
-echo building python ...
-echo.
-vcbuild /clean pcbuild.sln > NUL 2>&1
-vcbuild pcbuild.sln "Release|x64" > NUL 2>&1
-amd64\python.exe ..\Modules\_decimal\tests\deccheck.py
+python.exe ..\..\Modules\_decimal\tests\deccheck.py
 echo.
 echo.
 
+cd ..
 
-call vcvarsall x86
 echo.
 echo # ======================================================================
 echo #                         deccheck: platform=x86
 echo # ======================================================================
 echo.
 echo.
+
 echo # ==================== debug build =======================
 echo.
-echo building python ...
-echo.
-vcbuild /clean pcbuild.sln > NUL 2>&1
-vcbuild pcbuild.sln "Debug|win32" > NUL 2>&1
 python_d.exe ..\Modules\_decimal\tests\deccheck.py
 echo.
 echo.
 
 echo # =================== release build ======================
 echo.
-echo building python ...
-echo.
-vcbuild /clean pcbuild.sln > NUL 2>&1
-vcbuild pcbuild.sln "Release|win32" > NUL 2>&1
 python.exe ..\Modules\_decimal\tests\deccheck.py
 echo.
 echo.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list