2000-09-15 07:36:28 +00:00
|
|
|
@rem Run Tests. Run the regression test suite.
|
2001-02-19 21:44:53 +00:00
|
|
|
@rem Usage: rt [-d] [-O] [-q] regrtest_args
|
|
|
|
@rem -d Run Debug build (python_d.exe). Else release build.
|
|
|
|
@rem -O Run python.exe or python_d.exe (see -d) with -O.
|
|
|
|
@rem -q "quick" -- normally the tests are run twice, the first time
|
|
|
|
@rem after deleting all the .py[co] files reachable from Lib/.
|
|
|
|
@rem -q runs the tests just once, and without deleting .py[co] files.
|
|
|
|
@rem All leading instances of these switches are shifted off, and
|
|
|
|
@rem whatever remains is passed to regrtest.py. For example,
|
|
|
|
@rem rt -O -d -x test_thread
|
|
|
|
@rem runs
|
|
|
|
@rem python_d -O ../lib/test/regrtest.py -x test_thread
|
|
|
|
@rem twice, and
|
|
|
|
@rem rt -q -g test_binascii
|
|
|
|
@rem runs
|
|
|
|
@rem python_d ../lib/test/regrtest.py -g test_binascii
|
|
|
|
@rem to generate the expected-output file for binascii quickly.
|
2000-09-15 07:36:28 +00:00
|
|
|
@set _exe=python
|
2001-01-19 21:43:49 +00:00
|
|
|
@set _qmode=no
|
2001-01-23 02:42:09 +00:00
|
|
|
@set _dashO=
|
|
|
|
@goto CheckOpts
|
|
|
|
:Again
|
|
|
|
@shift
|
|
|
|
:CheckOpts
|
|
|
|
@if "%1"=="-O" set _dashO=-O
|
|
|
|
@if "%1"=="-O" goto Again
|
2001-01-19 21:43:49 +00:00
|
|
|
@if "%1"=="-q" set _qmode=yes
|
2001-01-23 02:42:09 +00:00
|
|
|
@if "%1"=="-q" goto Again
|
2001-01-19 21:43:49 +00:00
|
|
|
@if "%1"=="-d" set _exe=python_d
|
2001-01-23 02:42:09 +00:00
|
|
|
@if "%1"=="-d" goto Again
|
2001-01-20 01:53:43 +00:00
|
|
|
@if "%_qmode%"=="yes" goto Qmode
|
2001-01-19 21:43:49 +00:00
|
|
|
@echo Deleting .pyc/.pyo files ...
|
2001-02-11 00:46:39 +00:00
|
|
|
@%_exe% rmpyc.py
|
2002-08-07 19:06:27 +00:00
|
|
|
%_exe% %_dashO% -E -tt ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
|
2001-01-20 01:53:43 +00:00
|
|
|
@echo About to run again without deleting .pyc/.pyo first:
|
|
|
|
@pause
|
|
|
|
:Qmode
|
2002-08-07 19:06:27 +00:00
|
|
|
%_exe% %_dashO% -E -tt ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
|
2000-09-15 07:36:28 +00:00
|
|
|
@set _exe=
|
2001-01-19 21:43:49 +00:00
|
|
|
@set _qmode=
|
2001-01-23 02:42:09 +00:00
|
|
|
@set _dashO=
|