Skip to content

Commit 1edab78

Browse files
author
Stefan Krah
committed
Update test script to Visual Studio 2010.
1 parent 3784ff9 commit 1edab78

2 files changed

Lines changed: 32 additions & 42 deletions

File tree

Modules/_decimal/tests/runall-memorydebugger.sh

100644100755
File mode changed.

Modules/_decimal/tests/runall.bat

100644100755
Lines changed: 32 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,49 @@
22

33
rem Test all machine configurations, pydebug, refleaks, release build.
44

5-
cd ..
5+
cd ..\..\..\
6+
7+
8+
echo.
9+
echo # ======================================================================
10+
echo # Building Python
11+
echo # ======================================================================
12+
echo.
13+
14+
call "%VS100COMNTOOLS%\..\..\VC\vcvarsall.bat" x64
15+
msbuild /noconsolelogger /target:clean PCbuild\pcbuild.sln /p:Configuration=Release /p:PlatformTarget=x64
16+
msbuild /noconsolelogger /target:clean PCbuild\pcbuild.sln /p:Configuration=Debug /p:PlatformTarget=x64
17+
msbuild /noconsolelogger PCbuild\pcbuild.sln /p:Configuration=Release /p:Platform=x64
18+
msbuild /noconsolelogger PCbuild\pcbuild.sln /p:Configuration=Debug /p:Platform=x64
19+
20+
call "%VS100COMNTOOLS%\..\..\VC\vcvarsall.bat" x86
21+
msbuild /noconsolelogger PCbuild\pcbuild.sln /p:Configuration=Release /p:Platform=Win32
22+
msbuild /noconsolelogger PCbuild\pcbuild.sln /p:Configuration=Debug /p:Platform=Win32
23+
echo.
24+
echo.
625

7-
call vcvarsall x64
826
echo.
927
echo # ======================================================================
1028
echo # test_decimal: platform=x64
1129
echo # ======================================================================
1230
echo.
1331

14-
cd ..\..\PCbuild
32+
cd PCbuild\amd64
33+
1534
echo # ==================== refleak tests =======================
1635
echo.
17-
echo building python ...
36+
python_d.exe -m test -uall -R 2:2 test_decimal
1837
echo.
19-
vcbuild /clean pcbuild.sln > NUL 2>&1
20-
vcbuild pcbuild.sln "Debug|x64" > NUL 2>&1
21-
amd64\python_d.exe -m test -uall -R 2:2 test_decimal
2238
echo.
2339

2440
echo # ==================== regular tests =======================
2541
echo.
26-
echo building python ...
27-
echo.
28-
vcbuild /clean pcbuild.sln > NUL 2>&1
29-
vcbuild pcbuild.sln "Release|x64" > NUL 2>&1
30-
amd64\python.exe -m test -uall test_decimal
42+
python.exe -m test -uall test_decimal
3143
echo.
3244
echo.
3345

46+
cd ..
3447

35-
call vcvarsall x86
3648
echo.
3749
echo # ======================================================================
3850
echo # test_decimal: platform=x86
@@ -41,75 +53,53 @@ echo.
4153

4254
echo # ==================== refleak tests =======================
4355
echo.
44-
echo building python ...
45-
echo.
46-
vcbuild /clean pcbuild.sln > NUL 2>&1
47-
vcbuild pcbuild.sln "Debug|win32" > NUL 2>&1
4856
python_d.exe -m test -uall -R 2:2 test_decimal
4957
echo.
58+
echo.
5059

5160
echo # ==================== regular tests =======================
5261
echo.
53-
echo building python ...
54-
echo.
55-
vcbuild /clean pcbuild.sln > NUL 2>&1
56-
vcbuild pcbuild.sln "Release|win32" > NUL 2>&1
5762
python.exe -m test -uall test_decimal
5863
echo.
5964
echo.
6065

66+
cd amd64
6167

62-
call vcvarsall x64
6368
echo.
6469
echo # ======================================================================
6570
echo # deccheck: platform=x64
6671
echo # ======================================================================
6772
echo.
68-
echo.
73+
6974
echo # ==================== debug build =======================
7075
echo.
71-
echo building python ...
72-
echo.
73-
vcbuild /clean pcbuild.sln > NUL 2>&1
74-
vcbuild pcbuild.sln "Debug|x64" > NUL 2>&1
75-
amd64\python_d.exe ..\Modules\_decimal\tests\deccheck.py
76+
python_d.exe ..\..\Modules\_decimal\tests\deccheck.py
7677
echo.
7778
echo.
7879

7980
echo # =================== release build ======================
8081
echo.
81-
echo building python ...
82-
echo.
83-
vcbuild /clean pcbuild.sln > NUL 2>&1
84-
vcbuild pcbuild.sln "Release|x64" > NUL 2>&1
85-
amd64\python.exe ..\Modules\_decimal\tests\deccheck.py
82+
python.exe ..\..\Modules\_decimal\tests\deccheck.py
8683
echo.
8784
echo.
8885

86+
cd ..
8987

90-
call vcvarsall x86
9188
echo.
9289
echo # ======================================================================
9390
echo # deccheck: platform=x86
9491
echo # ======================================================================
9592
echo.
9693
echo.
94+
9795
echo # ==================== debug build =======================
9896
echo.
99-
echo building python ...
100-
echo.
101-
vcbuild /clean pcbuild.sln > NUL 2>&1
102-
vcbuild pcbuild.sln "Debug|win32" > NUL 2>&1
10397
python_d.exe ..\Modules\_decimal\tests\deccheck.py
10498
echo.
10599
echo.
106100

107101
echo # =================== release build ======================
108102
echo.
109-
echo building python ...
110-
echo.
111-
vcbuild /clean pcbuild.sln > NUL 2>&1
112-
vcbuild pcbuild.sln "Release|win32" > NUL 2>&1
113103
python.exe ..\Modules\_decimal\tests\deccheck.py
114104
echo.
115105
echo.

0 commit comments

Comments
 (0)