blob: 4a4c97ec2e7c0c303ccd4fc38c9eb206cd3c8dfc [file] [log] [blame]
Tim Petersa2ebb872000-09-15 07:36:28 +00001@rem Run Tests. Run the regression test suite.
2@rem Plain "rt" runs Release build, arguments passed on to regrtest.
3@rem "rt -d" runs Debug build similarly, after shifting off -d.
Tim Peters2cfa9802001-01-19 21:43:49 +00004@rem Normally the tests are run twice, the first time after deleting
Tim Peters755f4c12001-01-23 02:42:09 +00005@rem all the .py[co] files from Lib/ and Lib/test/. But
Tim Peters2cfa9802001-01-19 21:43:49 +00006@rem "rt -q" (for Quick) runs the tests just once, and without
7@rem bothering to delete .py[co] files.
Tim Peters755f4c12001-01-23 02:42:09 +00008@rem "rt -O" runs python or python_d with -O (depending on -d).
Tim Petersa2ebb872000-09-15 07:36:28 +00009@set _exe=python
Tim Peters2cfa9802001-01-19 21:43:49 +000010@set _qmode=no
Tim Peters755f4c12001-01-23 02:42:09 +000011@set _dashO=
12@goto CheckOpts
13:Again
14@shift
15:CheckOpts
16@if "%1"=="-O" set _dashO=-O
17@if "%1"=="-O" goto Again
Tim Peters2cfa9802001-01-19 21:43:49 +000018@if "%1"=="-q" set _qmode=yes
Tim Peters755f4c12001-01-23 02:42:09 +000019@if "%1"=="-q" goto Again
Tim Peters2cfa9802001-01-19 21:43:49 +000020@if "%1"=="-d" set _exe=python_d
Tim Peters755f4c12001-01-23 02:42:09 +000021@if "%1"=="-d" goto Again
Tim Peters2ad1a442001-01-20 01:53:43 +000022@if "%_qmode%"=="yes" goto Qmode
Tim Peters2cfa9802001-01-19 21:43:49 +000023@echo Deleting .pyc/.pyo files ...
Guido van Rossum4bf9c202001-01-19 21:00:04 +000024@del ..\Lib\*.pyc
25@del ..\Lib\*.pyo
26@del ..\Lib\test\*.pyc
27@del ..\Lib\test\*.pyo
Tim Peters755f4c12001-01-23 02:42:09 +000028%_exe% %_dashO% ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
Tim Peters2ad1a442001-01-20 01:53:43 +000029@echo About to run again without deleting .pyc/.pyo first:
30@pause
31:Qmode
Tim Peters755f4c12001-01-23 02:42:09 +000032%_exe% %_dashO% ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
Tim Petersa2ebb872000-09-15 07:36:28 +000033@set _exe=
Tim Peters2cfa9802001-01-19 21:43:49 +000034@set _qmode=
Tim Peters755f4c12001-01-23 02:42:09 +000035@set _dashO=