Mercurial > cpython-lru_cache-weakref
annotate PCbuild/rt.bat @ 27998:e27f58a50737 legacy-trunk
SF bug #690377: Dud footnote reference in distutils docs
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Fri, 21 Feb 2003 02:47:09 +0000 |
| parents | 9d84a5bd767f |
| children | 6acd7070ed66 |
| rev | line source |
|---|---|
|
14585
d84d57594815
Added simple batch file to make running the test suite from the PCbuild
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
1 @rem Run Tests. Run the regression test suite. |
| 16697 | 2 @rem Usage: rt [-d] [-O] [-q] regrtest_args |
| 3 @rem -d Run Debug build (python_d.exe). Else release build. | |
| 4 @rem -O Run python.exe or python_d.exe (see -d) with -O. | |
| 5 @rem -q "quick" -- normally the tests are run twice, the first time | |
| 6 @rem after deleting all the .py[co] files reachable from Lib/. | |
| 7 @rem -q runs the tests just once, and without deleting .py[co] files. | |
| 8 @rem All leading instances of these switches are shifted off, and | |
| 9 @rem whatever remains is passed to regrtest.py. For example, | |
| 10 @rem rt -O -d -x test_thread | |
| 11 @rem runs | |
| 12 @rem python_d -O ../lib/test/regrtest.py -x test_thread | |
| 13 @rem twice, and | |
| 14 @rem rt -q -g test_binascii | |
| 15 @rem runs | |
| 16 @rem python_d ../lib/test/regrtest.py -g test_binascii | |
| 17 @rem to generate the expected-output file for binascii quickly. | |
|
14585
d84d57594815
Added simple batch file to make running the test suite from the PCbuild
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
18 @set _exe=python |
|
16049
bb805cceb403
Run tests twice by default, first time deleting .pyc/.pyo files.
Tim Peters <tim.peters@gmail.com>
parents:
16046
diff
changeset
|
19 @set _qmode=no |
|
16149
7d765c1d49e2
Added -O option (to run python or python_d w/ -O),
Tim Peters <tim.peters@gmail.com>
parents:
16059
diff
changeset
|
20 @set _dashO= |
|
7d765c1d49e2
Added -O option (to run python or python_d w/ -O),
Tim Peters <tim.peters@gmail.com>
parents:
16059
diff
changeset
|
21 @goto CheckOpts |
|
7d765c1d49e2
Added -O option (to run python or python_d w/ -O),
Tim Peters <tim.peters@gmail.com>
parents:
16059
diff
changeset
|
22 :Again |
|
7d765c1d49e2
Added -O option (to run python or python_d w/ -O),
Tim Peters <tim.peters@gmail.com>
parents:
16059
diff
changeset
|
23 @shift |
|
7d765c1d49e2
Added -O option (to run python or python_d w/ -O),
Tim Peters <tim.peters@gmail.com>
parents:
16059
diff
changeset
|
24 :CheckOpts |
|
7d765c1d49e2
Added -O option (to run python or python_d w/ -O),
Tim Peters <tim.peters@gmail.com>
parents:
16059
diff
changeset
|
25 @if "%1"=="-O" set _dashO=-O |
|
7d765c1d49e2
Added -O option (to run python or python_d w/ -O),
Tim Peters <tim.peters@gmail.com>
parents:
16059
diff
changeset
|
26 @if "%1"=="-O" goto Again |
|
16049
bb805cceb403
Run tests twice by default, first time deleting .pyc/.pyo files.
Tim Peters <tim.peters@gmail.com>
parents:
16046
diff
changeset
|
27 @if "%1"=="-q" set _qmode=yes |
|
16149
7d765c1d49e2
Added -O option (to run python or python_d w/ -O),
Tim Peters <tim.peters@gmail.com>
parents:
16059
diff
changeset
|
28 @if "%1"=="-q" goto Again |
|
16049
bb805cceb403
Run tests twice by default, first time deleting .pyc/.pyo files.
Tim Peters <tim.peters@gmail.com>
parents:
16046
diff
changeset
|
29 @if "%1"=="-d" set _exe=python_d |
|
16149
7d765c1d49e2
Added -O option (to run python or python_d w/ -O),
Tim Peters <tim.peters@gmail.com>
parents:
16059
diff
changeset
|
30 @if "%1"=="-d" goto Again |
|
16059
564bc242ff0f
When running the tests twice, stuck a "Press any key to continue ..." pause
Tim Peters <tim.peters@gmail.com>
parents:
16049
diff
changeset
|
31 @if "%_qmode%"=="yes" goto Qmode |
|
16049
bb805cceb403
Run tests twice by default, first time deleting .pyc/.pyo files.
Tim Peters <tim.peters@gmail.com>
parents:
16046
diff
changeset
|
32 @echo Deleting .pyc/.pyo files ... |
|
16556
27fce2d7facd
Change Windows test to do a complete job of removing .pyc/.pyo files
Tim Peters <tim.peters@gmail.com>
parents:
16149
diff
changeset
|
33 @%_exe% rmpyc.py |
|
24650
9d84a5bd767f
Add -E and -tt options to the python invocations, as for the Unix tests.
Guido van Rossum <guido@python.org>
parents:
16697
diff
changeset
|
34 %_exe% %_dashO% -E -tt ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9 |
|
16059
564bc242ff0f
When running the tests twice, stuck a "Press any key to continue ..." pause
Tim Peters <tim.peters@gmail.com>
parents:
16049
diff
changeset
|
35 @echo About to run again without deleting .pyc/.pyo first: |
|
564bc242ff0f
When running the tests twice, stuck a "Press any key to continue ..." pause
Tim Peters <tim.peters@gmail.com>
parents:
16049
diff
changeset
|
36 @pause |
|
564bc242ff0f
When running the tests twice, stuck a "Press any key to continue ..." pause
Tim Peters <tim.peters@gmail.com>
parents:
16049
diff
changeset
|
37 :Qmode |
|
24650
9d84a5bd767f
Add -E and -tt options to the python invocations, as for the Unix tests.
Guido van Rossum <guido@python.org>
parents:
16697
diff
changeset
|
38 %_exe% %_dashO% -E -tt ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9 |
|
14585
d84d57594815
Added simple batch file to make running the test suite from the PCbuild
Tim Peters <tim.peters@gmail.com>
parents:
diff
changeset
|
39 @set _exe= |
|
16049
bb805cceb403
Run tests twice by default, first time deleting .pyc/.pyo files.
Tim Peters <tim.peters@gmail.com>
parents:
16046
diff
changeset
|
40 @set _qmode= |
|
16149
7d765c1d49e2
Added -O option (to run python or python_d w/ -O),
Tim Peters <tim.peters@gmail.com>
parents:
16059
diff
changeset
|
41 @set _dashO= |
