Mercurial > cpython-lru_cache-weakref
annotate PCbuild/rt.bat @ 58925:eecf1bef052d 2.6
Merged revisions 78207 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78207 | ezio.melotti | 2010-02-17 01:26:09 +0200 (Wed, 17 Feb 2010) | 1 line
#7930: fix stripid
........
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Tue, 16 Feb 2010 23:29:44 +0000 |
| parents | f6b3cf2f3331 |
| children | d00f2ea25d20 |
| 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= |
|
45756
f6b3cf2f3331
Patch #2284: add -x64 option to rt.bat.
Martin v. Löwis <martin@v.loewis.de>
parents:
44395
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 |
|
45756
f6b3cf2f3331
Patch #2284: add -x64 option to rt.bat.
Martin v. Löwis <martin@v.loewis.de>
parents:
44395
diff
changeset
|
41 PATH %PATH%;..\..\%tcltk%\bin |
|
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% |
|
43972
a8dd8874ff2d
Backport of the PCbuild9 directory from the py3k branch.
Christian Heimes <christian@cheimes.de>
parents:
diff
changeset
|
43 set cmd=%exe% %dashO% -E -tt ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9 |
|
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% |
