Mercurial > cpython-lru_cache-weakref
annotate PCbuild/rt.bat @ 79675:c0a2294de787 2.7
Issue #16199: Backport 2to3 typo fix from 3.2.
| author | Chris Jerdonek <chris.jerdonek@gmail.com> |
|---|---|
| date | Thu, 11 Oct 2012 16:15:46 -0700 |
| parents | e12b10435530 |
| children | 3c58fa7dc7f1 |
| rev | line source |
|---|---|
|
43972
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
1 @echo off |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
2 rem Run Tests. Run the regression test suite. |
|
45756
f6b3cf2f3331
Patch #2284: add -x64 option to rt.bat.
Martin v. Löwis <martin@v.loewis.de>
parents:
44395
diff
changeset
|
3 rem Usage: rt [-d] [-O] [-q] [-x64] regrtest_args |
|
43972
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
4 rem -d Run Debug build (python_d.exe). Else release build. |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
5 rem -O Run python.exe or python_d.exe (see -d) with -O. |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
6 rem -q "quick" -- normally the tests are run twice, the first time |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
7 rem after deleting all the .py[co] files reachable from Lib/. |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
8 rem -q runs the tests just once, and without deleting .py[co] files. |
|
45756
f6b3cf2f3331
Patch #2284: add -x64 option to rt.bat.
Martin v. Löwis <martin@v.loewis.de>
parents:
44395
diff
changeset
|
9 rem -x64 Run the 64-bit build of python (or python_d if -d was specified) |
|
f6b3cf2f3331
Patch #2284: add -x64 option to rt.bat.
Martin v. Löwis <martin@v.loewis.de>
parents:
44395
diff
changeset
|
10 rem from the 'amd64' dir instead of the 32-bit build in this dir. |
|
43972
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
11 rem All leading instances of these switches are shifted off, and |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
12 rem whatever remains is passed to regrtest.py. For example, |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
13 rem rt -O -d -x test_thread |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
14 rem runs |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
15 rem python_d -O ../lib/test/regrtest.py -x test_thread |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
16 rem twice, and |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
17 rem rt -q -g test_binascii |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
18 rem runs |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
19 rem python_d ../lib/test/regrtest.py -g test_binascii |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
20 rem to generate the expected-output file for binascii quickly. |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
21 rem |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
22 rem Confusing: if you want to pass a comma-separated list, like |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
23 rem -u network,largefile |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
24 rem then you have to quote it on the rt line, like |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
25 rem rt -u "network,largefile" |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
26 |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
27 setlocal |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
28 |
|
45756
f6b3cf2f3331
Patch #2284: add -x64 option to rt.bat.
Martin v. Löwis <martin@v.loewis.de>
parents:
44395
diff
changeset
|
29 set prefix=.\ |
|
f6b3cf2f3331
Patch #2284: add -x64 option to rt.bat.
Martin v. Löwis <martin@v.loewis.de>
parents:
44395
diff
changeset
|
30 set suffix= |
|
43972
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
31 set qmode= |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
32 set dashO= |
|
65006
e12b10435530
Recorded rollback of revisions 84857,84870,84875 via svnmerge from
Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
parents:
64831
diff
changeset
|
33 set tcltk= |
|
43972
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
34 |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
35 :CheckOpts |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
36 if "%1"=="-O" (set dashO=-O) & shift & goto CheckOpts |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
37 if "%1"=="-q" (set qmode=yes) & shift & goto CheckOpts |
|
45756
f6b3cf2f3331
Patch #2284: add -x64 option to rt.bat.
Martin v. Löwis <martin@v.loewis.de>
parents:
44395
diff
changeset
|
38 if "%1"=="-d" (set suffix=_d) & shift & goto CheckOpts |
|
f6b3cf2f3331
Patch #2284: add -x64 option to rt.bat.
Martin v. Löwis <martin@v.loewis.de>
parents:
44395
diff
changeset
|
39 if "%1"=="-x64" (set prefix=amd64) & (set tcltk=tcltk64) & shift & goto CheckOpts |
|
43972
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
40 |
|
65006
e12b10435530
Recorded rollback of revisions 84857,84870,84875 via svnmerge from
Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
parents:
64831
diff
changeset
|
41 PATH %PATH%;..\..\%tcltk%\bin |
|
45756
f6b3cf2f3331
Patch #2284: add -x64 option to rt.bat.
Martin v. Löwis <martin@v.loewis.de>
parents:
44395
diff
changeset
|
42 set exe=%prefix%\python%suffix% |
|
60118
d00f2ea25d20
Add -Wd and -3 to the flags used to run the tests on Windows.
Ezio Melotti <ezio.melotti@gmail.com>
parents:
45756
diff
changeset
|
43 set cmd=%exe% %dashO% -Wd -3 -E -tt ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9 |
|
43972
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
44 if defined qmode goto Qmode |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
45 |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
46 echo Deleting .pyc/.pyo files ... |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
47 %exe% rmpyc.py |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
48 |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
49 echo on |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
50 %cmd% |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
51 @echo off |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
52 |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
53 echo About to run again without deleting .pyc/.pyo first: |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
54 pause |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
55 |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
56 :Qmode |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
57 echo on |
|
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
58 %cmd% |
