2000-09-15 09:36:28 +02:00
|
|
|
@rem Run Tests. Run the regression test suite.
|
2001-02-19 22:44:53 +01: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 09:36:28 +02:00
|
|
|
@set _exe=python
|
2001-01-19 22:43:49 +01:00
|
|
|
@set _qmode=no
|
2001-01-23 03:42:09 +01:00
|
|
|
@set _dashO=
|
|
|
|
@goto CheckOpts
|
|
|
|
:Again
|
|
|
|
@shift
|
|
|
|
:CheckOpts
|
|
|
|
@if "%1"=="-O" set _dashO=-O
|
|
|
|
@if "%1"=="-O" goto Again
|
2001-01-19 22:43:49 +01:00
|
|
|
@if "%1"=="-q" set _qmode=yes
|
2001-01-23 03:42:09 +01:00
|
|
|
@if "%1"=="-q" goto Again
|
2001-01-19 22:43:49 +01:00
|
|
|
@if "%1"=="-d" set _exe=python_d
|
2001-01-23 03:42:09 +01:00
|
|
|
@if "%1"=="-d" goto Again
|
2001-01-20 02:53:43 +01:00
|
|
|
@if "%_qmode%"=="yes" goto Qmode
|
2001-01-19 22:43:49 +01:00
|
|
|
@echo Deleting .pyc/.pyo files ...
|
2001-02-11 01:46:39 +01:00
|
|
|
@%_exe% rmpyc.py
|
2001-01-23 03:42:09 +01:00
|
|
|
%_exe% %_dashO% ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
|
2001-01-20 02:53:43 +01:00
|
|
|
@echo About to run again without deleting .pyc/.pyo first:
|
|
|
|
@pause
|
|
|
|
:Qmode
|
2001-01-23 03:42:09 +01:00
|
|
|
%_exe% %_dashO% ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
|
2000-09-15 09:36:28 +02:00
|
|
|
@set _exe=
|
2001-01-19 22:43:49 +01:00
|
|
|
@set _qmode=
|
2001-01-23 03:42:09 +01:00
|
|
|
@set _dashO=
|