Lines Matching +full:- +full:uall
6 python -m test.regrtest [options] [test_name1 [test_name2 ...]]
12 them in alphabetical order (but see -M and -u, below, for exceptions).
17 python -E -tt -Wd -3 -m test.regrtest [options] [test_name1 ...]
22 -h/--help -- print this text and exit
26 -v/--verbose -- run tests in verbose mode with output to stdout
27 -w/--verbose2 -- re-run failed tests in verbose mode
28 -W/--verbose3 -- re-run failed tests in verbose mode immediately
29 -q/--quiet -- no output unless one or more tests fail
30 -S/--slowest -- print the slowest 10 tests
31 --header -- print header with interpreter info
35 -r/--randomize -- randomize test execution order (see below)
36 --randseed -- pass a random seed to reproduce a previous random run
37 -f/--fromfile -- read names of tests to run from a file (see below)
38 -x/--exclude -- arguments are tests to *exclude*
39 -s/--single -- single step through a set of tests (see below)
40 -m/--match PAT -- match test cases and methods with glob pattern PAT
41 --matchfile FILENAME -- filters tests using a text file, one pattern per line
42 -G/--failfast -- fail as soon as a test fails (only with -v or -W)
43 -u/--use RES1,RES2,...
44 -- specify which special resource intensive tests to run
45 -M/--memlimit LIMIT
46 -- run very large memory-consuming tests
50 -l/--findleaks -- if GC is available detect tests that leak memory
51 -L/--runleaks -- run the leaks(1) command just before exit
52 -R/--huntrleaks RUNCOUNTS
53 -- search for reference leaks (needs debug build, v. slow)
54 -j/--multiprocess PROCESSES
55 -- run PROCESSES processes at once
56 -T/--coverage -- turn on code coverage tracing using the trace module
57 -D/--coverdir DIRECTORY
58 -- Directory where coverage files are put
59 -N/--nocoverdir -- Put coverage files alongside modules
60 -t/--threshold THRESHOLD
61 -- call gc.set_threshold(THRESHOLD)
62 -F/--forever -- run the specified tests in a loop, until an error happens
63 -P/--pgo -- enable Profile Guided Optimization training
64 --testdir -- execute test files in the specified directory
66 --list-tests -- only write the name of tests that will be run,
68 --list-cases -- only write the name of test cases that will be run,
70 --fail-env-changed -- if a test file alters the environment, mark the test
76 -r randomizes test execution order. You can use --randseed=int to provide an
80 -s On the first invocation of regrtest using -s, the first test file found
89 consume too many resources to run the full regression test non-stop.
91 -f reads the names of tests from the file given as f's argument, one
96 -L causes the leaks(1) command to be run just before exit if it exists.
98 FreeBSD-derived systems.
100 -R runs each test several times and examines sys.gettotalrefcount() to
106 "reflog.txt" respectively), and the minimal invocation is '-R :'.
108 -M runs tests that require an exorbitant amount of memory. These tests
110 2 billion objects, which only works on 64-bit systems. There are also some
112 sense on 32-bit systems with at least 2Gb of memory. The passed-in memlimit,
120 to use more than memlimit memory will be skipped. The big-memory tests
123 -u is used to specify which special resource intensive tests to run,
125 The argument is a comma-separated list of words indicating the
128 all - Enable all special resources.
130 audio - Tests that use the audio device. (There are known
134 curses - Tests that use curses and will modify the terminal's
137 largefile - It is okay to run some test that may create huge
141 network - It is okay to run tests that use external network
144 bsddb - It is okay to run the bsddb testsuite, which takes
147 decimal - Test the decimal module against a large suite that
150 cpu - Used for certain CPU-heavy tests.
154 urlfetch - It is okay to download files required on testing.
156 gui - Run tests that require a running GUI.
158 xpickle - Test pickle and cPickle against Python 2.4, 2.5 and 2.6 to
162 To enable all resources except one, use '-uall,-<resource>'. For
164 option '-uall,-bsddb'.
166 --matchfile filters tests using a text file, one pattern per line.
169 - test method: test_stat_attributes
170 - test class: FileTests
171 - test identifier: test_os.FileTests.test_stat_attributes
197 # These modules are searched first in sys.path[0] (so '' -- the CWD) and if
239 ENV_CHANGED = -1
240 SKIPPED = -2
241 RESOURCE_DENIED = -3
242 INTERRUPTED = -4
243 CHILD_ERROR = -5 # error in a child process
258 # Other resources excluded from --use=all:
260 # - extralagefile (ex: test_zipfile64): really too slow to be enabled
344 This also parses command-line options and modifies its behavior
347 tests -- a list of strings containing test names (optional)
348 testdir -- the directory in which to look for tests (optional)
355 command-line will be used. If that's empty, too, then all *.py
375 'failfast', 'match=', 'testdir=', 'list-tests', 'list-cases',
376 'coverage', 'matchfile=', 'fail-env-changed'])
390 if o in ('-h', '--help'):
392 elif o in ('-v', '--verbose'):
394 elif o in ('-w', '--verbose2'):
396 elif o in ('-W', '--verbose3'):
398 elif o in ('-G', '--failfast'):
400 elif o in ('-q', '--quiet'):
403 elif o in ('-x', '--exclude'):
405 elif o in ('-s', '--single'):
407 elif o in ('-S', '--slow', '--slowest'):
409 elif o in ('-r', '--randomize'):
411 elif o == '--randseed':
413 elif o in ('-f', '--fromfile'):
415 elif o in ('-m', '--match'):
419 elif o == '--matchfile':
426 elif o in ('-l', '--findleaks'):
428 elif o in ('-L', '--runleaks'):
430 elif o in ('-t', '--threshold'):
433 elif o in ('-T', '--coverage'):
435 elif o in ('-D', '--coverdir'):
437 elif o in ('-N', '--nocoverdir'):
439 elif o in ('-R', '--huntrleaks'):
443 usage(2, '-R takes 2 or 3 colon-separated arguments')
454 elif o in ('-M', '--memlimit'):
456 elif o in ('-u', '--use'):
463 if r[0] == '-':
467 usage(1, 'Invalid -u/--use option: ' + a)
473 elif o in ('-F', '--forever'):
475 elif o in ('-j', '--multiprocess'):
477 elif o == '--header':
479 elif o == '--slaveargs':
481 elif o in ('-P', '--pgo'):
483 elif o == '--testdir':
485 elif o == '--list-tests':
487 elif o == '--list-cases':
489 elif o == '--fail-env-changed':
496 usage(2, "-s and -f don't go together!")
498 usage(2, "-T and -j don't go together!")
500 usage(2, "-l and -j don't go together!")
502 usage("-G/--failfast needs either -v or -W")
522 msg = ("Invalid values for the --huntrleaks/-R parameters. The "
600 # FIXME: bpo-31731: test_io hangs with --huntrleaks
601 print("Warning: bpo-31731: test_io hangs with --huntrleaks: "
665 test_count_width = len(test_count) - 1
681 test_time = time.time() - regrtest_start_time
697 "%s-endian" % sys.byteorder
706 print("WARNING: Running tests with --huntrleaks/-R and less than "
736 base_cmd = [sys.executable] + opt_args + ['-m', 'test.regrtest']
739 base_cmd = base_cmd + ['--pgo']
752 # -E is needed by some tests, e.g. test_import
753 args = base_cmd + ['--slaveargs', json.dumps(args_tuple)]
755 args.extend(('--testdir', testdir))
806 dt = time.time() - worker.start_time
839 text += ' -- running: %s' % ', '.join(running)
867 text = '%s -- %s' % (text, previous_test)
891 print "Re-running test %r in verbose mode" % test
900 test_time = time.time() - start_time
949 omitted = set(selected) - set(good) - set(bad) - set(skipped)
964 print("- %s: %.1fs" % (test, test_time))
985 surprise = set(skipped) - e.getexpected() - set(resource_denieds)
998 print("%s:" % count(len(rerun), "re-run test"))
1008 print "Re-running failed tests in verbose mode"
1011 print "Re-running test %r in verbose mode" % test
1046 duration = time.time() - regrtest_start_time
1095 test -- the name of the test
1096 verbose -- if true, print more messages
1097 quiet -- if true, don't print 'skipped' messages (probably redundant)
1098 test_times -- a list of (time, test_name) pairs
1099 huntrleaks -- run multiple times to test for leaks; requires a debug
1100 build; a triple corresponding to -R's three arguments
1101 pgo -- if true, do not print unnecessary info when running the test
1106 INTERRUPTED KeyboardInterrupt when run under -j
1278 "Warning -- {} was modified by {}".format(
1316 # Old tests run to completion simply as a side-effect of
1326 test_time = time.time() - start_time
1332 print test, "skipped --", msg
1337 print test, "skipped --", msg
1344 print >>sys.stderr, "test", test, "failed --", msg
1350 print >>sys.stderr, "test", test, "crashed --", str(type) + ":", value
1471 rc_deltas[i - nwarmup] = rc_after - rc_before
1472 fd_deltas[i - nwarmup] = fd_after - fd_before
1481 # bpo-30776: Try to ignore false positives:
1485 # [8, -8, 1]
1647 list(range(-5, 257))
1676 # Print the sorted list: 'x' may be a '--random' list or a set()
1888 'hp-ux11':
2067 elif len(u'\0'.encode('unicode-internal')) == 4:
2123 # testing (see the -j option).