Lines Matching +full:- +full:uall
27 LOG_PREFIX = r'[0-9]+:[0-9]+:[0-9]+ (?:load avg: [0-9]+\.[0-9]{2} )?'
50 for opt in '-h', '--help':
58 ns = libregrtest._parse_args(['--timeout', '4.2'])
60 self.checkError(['--timeout'], 'expected one argument')
61 self.checkError(['--timeout', 'foo'], 'invalid float value')
64 ns = libregrtest._parse_args(['--wait'])
68 ns = libregrtest._parse_args(['--worker-args', '[[], {}]'])
70 self.checkError(['--worker-args'], 'expected one argument')
73 for opt in '-S', '--start':
80 ns = libregrtest._parse_args(['-v'])
82 ns = libregrtest._parse_args(['-vvv'])
84 ns = libregrtest._parse_args(['--verbose'])
86 ns = libregrtest._parse_args(['--verbose'] * 3)
92 for opt in '-w', '--verbose2':
98 for opt in '-W', '--verbose3':
104 for opt in '-q', '--quiet':
111 for opt in '-o', '--slowest':
117 ns = libregrtest._parse_args(['--header'])
120 ns = libregrtest._parse_args(['--verbose'])
124 for opt in '-r', '--randomize':
130 ns = libregrtest._parse_args(['--randseed', '12345'])
133 self.checkError(['--randseed'], 'expected one argument')
134 self.checkError(['--randseed', 'foo'], 'invalid int value')
137 for opt in '-f', '--fromfile':
142 self.checkError([opt, 'foo', '-s'], "don't go together")
145 for opt in '-x', '--exclude':
151 for opt in '-s', '--single':
155 self.checkError([opt, '-f', 'foo'], "don't go together")
158 for opt in '-i', '--ignore':
170 ns = libregrtest._parse_args(['-m', 'match',
171 '--ignorefile', filename])
176 for opt in '-m', '--match':
182 ns = libregrtest._parse_args(['-m', 'pattern1',
183 '-m', 'pattern2'])
192 ns = libregrtest._parse_args(['-m', 'match',
193 '--matchfile', filename])
198 for opt in '-G', '--failfast':
200 ns = libregrtest._parse_args([opt, '-v'])
202 ns = libregrtest._parse_args([opt, '-W'])
204 self.checkError([opt], '-G/--failfast needs either -v or -W')
207 for opt in '-u', '--use':
217 ns = libregrtest._parse_args([opt, 'all,-gui'])
232 for opt in '-M', '--memlimit':
239 ns = libregrtest._parse_args(['--testdir', 'foo'])
241 self.checkError(['--testdir'], 'expected one argument')
244 for opt in '-L', '--runleaks':
250 for opt in '-R', '--huntrleaks':
262 'needs 2 or 3 colon-separated arguments')
267 for opt in '-j', '--multiprocess':
273 self.checkError([opt, '2', '-T'], "don't go together")
274 self.checkError([opt, '0', '-T'], "don't go together")
277 for opt in '-T', '--coverage':
283 for opt in '-D', '--coverdir':
291 for opt in '-N', '--nocoverdir':
297 for opt in '-t', '--threshold':
305 for opt in '-n', '--nowindows':
311 self.assertIn('the --nowindows (-n) option is deprecated', err)
314 for opt in '-F', '--forever':
320 self.checkError(['--xxx'], 'usage:')
323 ns = libregrtest._parse_args(['--qui'])
328 ns = libregrtest._parse_args(['--quiet', '--exclude'])
334 ns = libregrtest._parse_args(['--start', ''])
342 ns = libregrtest._parse_args(['--quiet', 'foo'])
348 ns = libregrtest._parse_args(['test_unaryop', '-v', 'test_binop'])
353 self.checkError(['--unknown-option'],
354 'unrecognized arguments: --unknown-option')
360 TESTNAME_REGEX = r'test_[a-zA-Z0-9_]+'
390 with open(path, 'x', encoding='utf-8') as fp:
409 regex = (r'^%s\[ *[0-9]+(?:/ *[0-9]+)*\] (%s)'
468 regex = list_regex('%s re-run test%s', rerun)
470 regex = LOG_PREFIX + r"Re-running failed tests in verbose mode"
473 regex = LOG_PREFIX + f"Re-running {test_name} in verbose mode"
480 good = (len(tests) - len(skipped) - len(failed)
481 - len(omitted) - len(env_changed) - len(no_test_ran))
511 match = self.regex_search(r'Using random seed ([0-9]+)', output)
530 "---\n"
532 "---\n"
537 "---\n"
539 "---\n"
545 args = [sys.executable, '-X', 'faulthandler', '-I', *args]
556 args = ['-Wd', '-E', '-bb', '-m', 'test.regrtest', '--list-tests']
589 self.python_args = ['-Wd', '-E', '-bb']
590 self.regrtest_args = ['-uall', '-rwW',
591 '--testdir=%s' % self.tmptestdir]
592 self.regrtest_args.extend(('--timeout', '3600', '-j4'))
594 self.regrtest_args.append('-n')
612 # -m test
613 args = [*self.python_args, '-m', 'test',
618 # -m test.regrtest
619 args = [*self.python_args, '-m', 'test.regrtest',
624 # -m test.autotest
625 args = [*self.python_args, '-m', 'test.autotest',
632 args = [*self.python_args, '-c', code,
660 test_args = ['--testdir=%s' % self.tmptestdir]
662 test_args.append('-arm64') # ARM 64-bit build
664 test_args.append('-arm32') # 32-bit ARM build
666 test_args.append('-x64') # 64-bit build
677 rt_args = ["-q"] # Quick, don't run tests twice
679 rt_args.append('-arm64') # ARM 64-bit build
681 rt_args.append('-arm32') # 32-bit ARM build
683 rt_args.append('-x64') # 64-bit build
685 rt_args.append('-d') # Debug build, use python_d.exe
695 cmdargs = ['-m', 'test', '--testdir=%s' % self.tmptestdir, *testargs]
715 # test -u command line option
729 # -u all: 2 resources enabled
730 output = self.run_tests('-u', 'all', *test_names)
733 # -u audio: 1 resource enabled
734 output = self.run_tests('-uaudio', *test_names)
744 # test -r and --randseed command line option
752 output = self.run_tests('-r', test)
754 match = self.regex_search(r'TESTRANDOM: ([0-9]+)', output)
758 output = self.run_tests('-r', '--randseed=%s' % randseed, test)
762 match = self.regex_search(r'TESTRANDOM: ([0-9]+)', output)
767 # test --fromfile
776 # test format '0:00:00 [2/7] test_opcodes -- test_grammar took 0 sec'
783 line += " -- %s took 0 sec" % previous
787 output = self.run_tests('--fromfile', filename)
795 output = self.run_tests('--fromfile', filename)
803 output = self.run_tests('--fromfile', filename)
811 output = self.run_tests('--fromfile', filename)
822 # test --slowest
824 output = self.run_tests("--slowest", *tests)
827 '(?:- %s: .*\n){%s}'
832 # Issue #25373: test --slowest with an interrupted test
839 args = ("--slowest", "-j2", test)
841 args = ("--slowest", test)
850 # test --coverage
852 output = self.run_tests("--coverage", test)
855 r'(?: *[0-9]+ *[0-9]{1,2}% *[^ ]+ +\([^)]+\)+)+')
859 # test --wait
861 output = self.run_tests("--wait", test, input='key')
865 # test --forever
882 output = self.run_tests('--forever', test, exitcode=2)
890 output = self.run_tests('--huntrleaks', '3:3:', test,
907 # test --huntrleaks
921 # test --huntrleaks for file descriptor leak
934 # test --list-tests
936 output = self.run_tests('--list-tests', *tests)
941 # test --list-cases
953 # Test --list-cases
956 output = self.run_tests('--list-cases', testname)
959 # Test --list-cases with --match
961 output = self.run_tests('--list-cases',
962 '-m', 'test_method1',
973 output = self.run_tests("-j2", *tests, exitcode=2)
1012 output = self.run_tests("-v", "--ignorefile", filename, testname)
1036 output = self.run_tests("-v", testname)
1053 output = self.run_tests("-v", "--matchfile", filename, testname)
1072 # fail with --fail-env-changed
1073 output = self.run_tests("--fail-env-changed", testname, exitcode=3)
1089 output = self.run_tests("-w", testname, exitcode=2)
1109 output = self.run_tests("-w", testname, exitcode=0)
1123 output = self.run_tests(testname, "-m", "nosuchtest", exitcode=0)
1150 output = self.run_tests(testname, testname2, "-m", "nosuchtest", exitcode=0)
1172 output = self.run_tests(testname, testname2, "-m", "nosuchtest",
1173 "-m", "test_other_bug", exitcode=0)
1198 output = self.run_tests("--fail-env-changed", testname, exitcode=3)
1203 # --findleaks is now basically an alias to --fail-env-changed
1204 output = self.run_tests("--findleaks", testname, exitcode=3)
1230 output = self.run_tests("-j2", "--timeout=1.0", testname, exitcode=2)
1237 # --fail-env-changed must catch unraisable exception.
1262 output = self.run_tests("--fail-env-changed", "-v", testname, exitcode=3)
1266 self.assertIn("Warning -- Unraisable exception", output)
1276 cmdargs = ['-m', 'test',
1277 '--tempdir=%s' % self.tmptestdir,
1278 '--cleanup']
1289 self.assertEqual(utils.format_duration(1e-9),
1291 self.assertEqual(utils.format_duration(10e-3),