• Home
  • Raw
  • Download

Lines Matching +full:enable +full:- +full:ssl +full:- +full:trace

9 python -m test [options] [test_name1 [test_name2 ...]]
18 them in alphabetical order (but see -M and -u, below, for exceptions).
23 python -E -Wd -m test [options] [test_name1 ...]
29 -r randomizes test execution order. You can use --randseed=int to provide an
33 -s On the first invocation of regrtest using -s, the first test file found
42 consume too many resources to run the full regression test non-stop.
44 -S is used to continue running tests after an aborted run. It will
45 maintain the order a standard run (ie, this assumes -r is not used).
50 -f reads the names of tests from the file given as f's argument, one
55 -L causes the leaks(1) command to be run just before exit if it exists.
57 FreeBSD-derived systems.
59 -R runs each test several times and examines sys.gettotalrefcount() to
65 "reflog.txt" respectively), and the minimal invocation is '-R :'.
67 -M runs tests that require an exorbitant amount of memory. These tests
69 2 billion objects, which only works on 64-bit systems. There are also some
71 sense on 32-bit systems with at least 2Gb of memory. The passed-in memlimit,
79 to use more than memlimit memory will be skipped. The big-memory tests
82 -u is used to specify which special resource intensive tests to run,
84 The argument is a comma-separated list of words indicating the
87 all - Enable all special resources.
89 none - Disable all special resources (this is the default).
91 audio - Tests that use the audio device. (There are known
95 curses - Tests that use curses and will modify the terminal's
98 largefile - It is okay to run some test that may create huge
102 network - It is okay to run tests that use external network
103 resource, e.g. testing SSL support for sockets.
105 decimal - Test the decimal module against a large suite that
108 cpu - Used for certain CPU-heavy tests.
112 urlfetch - It is okay to download files required on testing.
114 gui - Run tests that require a running GUI.
116 tzdata - Run tests that require timezone data.
118 To enable all resources except one, use '-uall,-<resource>'. For
120 option '-uall,-gui'.
122 --matchfile filters tests using a text file, one pattern per line.
125 - test method: test_stat_attributes
126 - test class: FileTests
127 - test identifier: test_os.FileTests.test_stat_attributes
134 # Other resources excluded from --use=all:
136 # - extralagefile (ex: test_zipfile64): really too slow to be enabled
138 # - tzdata: while needed to validate fully test_datetime, it makes
139 # test_datetime too slow (15-20 min on some buildbots) and so is disabled by
140 # default (see bpo-30822).
145 def __init__(self, **kwargs) -> None:
156 self.trace = False
179 super().error(message + "\nPass -h or --help for complete help.")
184 # error messages when using "python -m test ...".
198 group.add_argument('-h', '--help', action='help',
200 group.add_argument('--timeout', metavar='TIMEOUT', type=float,
204 group.add_argument('--wait', action='store_true',
207 group.add_argument('--worker-args', metavar='ARGS')
208 group.add_argument('-S', '--start', metavar='START',
213 group.add_argument('-v', '--verbose', action='count',
215 group.add_argument('-w', '--verbose2', action='store_true',
216 help='re-run failed tests in verbose mode')
217 group.add_argument('-W', '--verbose3', action='store_true',
219 group.add_argument('-q', '--quiet', action='store_true',
221 group.add_argument('-o', '--slowest', action='store_true', dest='print_slow',
223 group.add_argument('--header', action='store_true',
227 group.add_argument('-r', '--randomize', action='store_true',
229 group.add_argument('--randseed', metavar='SEED',
233 group.add_argument('-f', '--fromfile', metavar='FILE',
236 group.add_argument('-x', '--exclude', action='store_true',
238 group.add_argument('-s', '--single', action='store_true',
241 group.add_argument('-m', '--match', metavar='PAT',
244 group.add_argument('-i', '--ignore', metavar='PAT',
247 group.add_argument('--matchfile', metavar='FILENAME',
249 help='similar to --match but get patterns from a '
251 group.add_argument('--ignorefile', metavar='FILENAME',
253 help='similar to --matchfile but it receives patterns '
255 group.add_argument('-G', '--failfast', action='store_true',
256 help='fail as soon as a test fails (only with -v or -W)')
257 group.add_argument('-u', '--use', metavar='RES1,RES2,...',
261 group.add_argument('-M', '--memlimit', metavar='LIMIT',
262 help='run very large memory-consuming tests.' +
264 group.add_argument('--testdir', metavar='DIR',
270 group.add_argument('-l', '--findleaks', action='store_const', const=2,
272 help='deprecated alias to --fail-env-changed')
273 group.add_argument('-L', '--runleaks', action='store_true',
276 group.add_argument('-R', '--huntrleaks', metavar='RUNCOUNTS',
280 group.add_argument('-j', '--multiprocess', metavar='PROCESSES',
283 group.add_argument('-T', '--coverage', action='store_true',
284 dest='trace',
285 help='turn on code coverage tracing using the trace '
287 group.add_argument('-D', '--coverdir', metavar='DIR',
290 group.add_argument('-N', '--nocoverdir',
293 group.add_argument('-t', '--threshold', metavar='THRESHOLD',
296 group.add_argument('-n', '--nowindows', action='store_true',
298 group.add_argument('-F', '--forever', action='store_true',
300 'error happens; imply --failfast')
301 group.add_argument('--list-tests', action='store_true',
304 group.add_argument('--list-cases', action='store_true',
307 group.add_argument('-P', '--pgo', dest='pgo', action='store_true',
308 help='enable Profile Guided Optimization (PGO) training')
309 group.add_argument('--pgo-extended', action='store_true',
310 help='enable extended PGO training (slower training)')
311 group.add_argument('--fail-env-changed', action='store_true',
315 group.add_argument('--junit-xml', dest='xmlpath', metavar='FILENAME',
316 help='writes JUnit-style XML results to the specified '
318 group.add_argument('--tempdir', metavar='PATH',
320 group.add_argument('--cleanup', action='store_true',
335 'needs 2 or 3 colon-separated arguments')
347 if r[0] == '-':
370 if arg.startswith('-'):
375 # --findleaks implies --fail-env-changed
378 parser.error("-s and -f don't go together!")
379 if ns.use_mp is not None and ns.trace:
380 parser.error("-T and -j don't go together!")
382 parser.error("-G/--failfast needs either -v or -W")
384 parser.error("--pgo/-v don't go together!")
389 print("Warning: the --nowindows (-n) option is deprecated. "
390 "Use -vv to display assertions in stderr.", file=sys.stderr)
411 if r[0] == '-':
425 print("WARNING: Disable --verbose3 because it's incompatible with "
426 "--huntrleaks: see http://bugs.python.org/issue27103",
441 # --forever implies --failfast