2000-09-15 04:36:28 -03:00
|
|
|
@rem Run Tests. Run the regression test suite.
|
|
|
|
@rem Plain "rt" runs Release build, arguments passed on to regrtest.
|
|
|
|
@rem "rt -d" runs Debug build similarly, after shifting off -d.
|
2001-01-19 17:43:49 -04:00
|
|
|
@rem Normally the tests are run twice, the first time after deleting
|
2001-01-22 22:42:09 -04:00
|
|
|
@rem all the .py[co] files from Lib/ and Lib/test/. But
|
2001-01-19 17:43:49 -04:00
|
|
|
@rem "rt -q" (for Quick) runs the tests just once, and without
|
|
|
|
@rem bothering to delete .py[co] files.
|
2001-01-22 22:42:09 -04:00
|
|
|
@rem "rt -O" runs python or python_d with -O (depending on -d).
|
2000-09-15 04:36:28 -03:00
|
|
|
@set _exe=python
|
2001-01-19 17:43:49 -04:00
|
|
|
@set _qmode=no
|
2001-01-22 22:42:09 -04:00
|
|
|
@set _dashO=
|
|
|
|
@goto CheckOpts
|
|
|
|
:Again
|
|
|
|
@shift
|
|
|
|
:CheckOpts
|
|
|
|
@if "%1"=="-O" set _dashO=-O
|
|
|
|
@if "%1"=="-O" goto Again
|
2001-01-19 17:43:49 -04:00
|
|
|
@if "%1"=="-q" set _qmode=yes
|
2001-01-22 22:42:09 -04:00
|
|
|
@if "%1"=="-q" goto Again
|
2001-01-19 17:43:49 -04:00
|
|
|
@if "%1"=="-d" set _exe=python_d
|
2001-01-22 22:42:09 -04:00
|
|
|
@if "%1"=="-d" goto Again
|
2001-01-19 21:53:43 -04:00
|
|
|
@if "%_qmode%"=="yes" goto Qmode
|
2001-01-19 17:43:49 -04:00
|
|
|
@echo Deleting .pyc/.pyo files ...
|
2001-01-19 17:00:04 -04:00
|
|
|
@del ..\Lib\*.pyc
|
|
|
|
@del ..\Lib\*.pyo
|
|
|
|
@del ..\Lib\test\*.pyc
|
|
|
|
@del ..\Lib\test\*.pyo
|
2001-01-22 22:42:09 -04:00
|
|
|
%_exe% %_dashO% ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
|
2001-01-19 21:53:43 -04:00
|
|
|
@echo About to run again without deleting .pyc/.pyo first:
|
|
|
|
@pause
|
|
|
|
:Qmode
|
2001-01-22 22:42:09 -04:00
|
|
|
%_exe% %_dashO% ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
|
2000-09-15 04:36:28 -03:00
|
|
|
@set _exe=
|
2001-01-19 17:43:49 -04:00
|
|
|
@set _qmode=
|
2001-01-22 22:42:09 -04:00
|
|
|
@set _dashO=
|