summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-10-27 20:55:44 (GMT)
committerGeorg Brandl <georg@python.org>2009-10-27 20:55:44 (GMT)
commit8319170abbe5bd9bc88deee384001a89b59f50fb (patch)
treebc03c2a4612ef5bb14def4241f0c726fd0116ab8 /Lib
parent71a015ac1cf80e2f7af989f28e68c8f070964092 (diff)
downloadcpython-8319170abbe5bd9bc88deee384001a89b59f50fb.zip
cpython-8319170abbe5bd9bc88deee384001a89b59f50fb.tar.gz
cpython-8319170abbe5bd9bc88deee384001a89b59f50fb.tar.bz2
Reformat the regrtest command-line option help and group the options into sections.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/regrtest.py55
1 files changed, 35 insertions, 20 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 942ca1f50..8511ab1 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -8,26 +8,41 @@ additional facilities.
Command line options:
--v: verbose -- run tests in verbose mode with output to stdout
--w: verbose2 -- re-run failed tests in verbose mode
--W: verbose3 -- re-run failed tests in verbose mode immediately
--q: quiet -- don't print anything except if a test fails
--x: exclude -- arguments are tests to *exclude*
--s: single -- run only a single test (see below)
--S: slow -- print the slowest 10 tests
--r: random -- randomize test execution order
--f: fromfile -- read names of tests to run from a file (see below)
--l: findleaks -- if GC is available detect tests that leak memory
--u: use -- specify which special resource intensive tests to run
--h: help -- print this text and exit
--t: threshold -- call gc.set_threshold(N)
--T: coverage -- turn on code coverage using the trace module
--D: coverdir -- Directory where coverage files are put
--N: nocoverdir -- Put coverage files alongside modules
--L: runleaks -- run the leaks(1) command just before exit
--R: huntrleaks -- search for reference leaks (needs debug build, v. slow)
--M: memlimit -- run very large memory-consuming tests
--j: multiprocess -- run several processes at once
+-h/--help -- print this text and exit
+
+Verbosity
+
+-v/--verbose -- run tests in verbose mode with output to stdout
+-w/--verbose2 -- re-run failed tests in verbose mode
+-W/--verbose3 -- re-run failed tests in verbose mode immediately
+-q/--quiet -- don't print anything except if a test fails
+-S/--slow -- print the slowest 10 tests
+
+Selecting tests
+
+-r/--random -- randomize test execution order
+-f/--fromfile -- read names of tests to run from a file (see below)
+-x/--exclude -- arguments are tests to *exclude*
+-s/--single -- run only a single test (see below)
+-u/--use RES1,RES2,...
+ -- specify which special resource intensive tests to run
+-M/--memlimit LIMIT
+ -- run very large memory-consuming tests
+
+Special runs
+
+-l/--findleaks -- if GC is available detect tests that leak memory
+-L/--runleaks -- run the leaks(1) command just before exit
+-R/--huntrleaks RUNCOUNTS
+ -- search for reference leaks (needs debug build, v. slow)
+-j/--multiprocess PROCESSES
+ -- run PROCESSES processes at once
+-T/--coverage -- turn on code coverage using the trace module
+-D/--coverdir DIRECTORY
+ -- Directory where coverage files are put
+-N/--nocoverdir -- Put coverage files alongside modules
+-t/--threshold THRESHOLD
+ -- call gc.set_threshold(THRESHOLD)
If non-option arguments are present, they are names for tests to run,
unless -x is given, in which case they are names for tests not to run.