Lines Matching +full:- +full:uall
50 for opt in '-h', '--help':
60 ns = libregrtest._parse_args(['--timeout', '4.2'])
62 self.checkError(['--timeout'], 'expected one argument')
63 self.checkError(['--timeout', 'foo'], 'invalid float value')
66 ns = libregrtest._parse_args(['--wait'])
70 ns = libregrtest._parse_args(['--worker-args', '[[], {}]'])
72 self.checkError(['--worker-args'], 'expected one argument')
75 for opt in '-S', '--start':
82 ns = libregrtest._parse_args(['-v'])
84 ns = libregrtest._parse_args(['-vvv'])
86 ns = libregrtest._parse_args(['--verbose'])
88 ns = libregrtest._parse_args(['--verbose'] * 3)
94 for opt in '-w', '--verbose2':
100 for opt in '-W', '--verbose3':
106 for opt in '-q', '--quiet':
113 for opt in '-o', '--slowest':
119 ns = libregrtest._parse_args(['--header'])
122 ns = libregrtest._parse_args(['--verbose'])
126 for opt in '-r', '--randomize':
132 ns = libregrtest._parse_args(['--randseed', '12345'])
135 self.checkError(['--randseed'], 'expected one argument')
136 self.checkError(['--randseed', 'foo'], 'invalid int value')
139 for opt in '-f', '--fromfile':
144 self.checkError([opt, 'foo', '-s'], "don't go together")
147 for opt in '-x', '--exclude':
153 for opt in '-s', '--single':
157 self.checkError([opt, '-f', 'foo'], "don't go together")
160 for opt in '-m', '--match':
166 ns = libregrtest._parse_args(['-m', 'pattern1',
167 '-m', 'pattern2'])
176 ns = libregrtest._parse_args(['-m', 'match',
177 '--matchfile', filename])
182 for opt in '-G', '--failfast':
184 ns = libregrtest._parse_args([opt, '-v'])
186 ns = libregrtest._parse_args([opt, '-W'])
188 self.checkError([opt], '-G/--failfast needs either -v or -W')
191 for opt in '-u', '--use':
201 ns = libregrtest._parse_args([opt, 'all,-gui'])
216 for opt in '-M', '--memlimit':
223 ns = libregrtest._parse_args(['--testdir', 'foo'])
225 self.checkError(['--testdir'], 'expected one argument')
228 for opt in '-L', '--runleaks':
234 for opt in '-R', '--huntrleaks':
246 'needs 2 or 3 colon-separated arguments')
251 for opt in '-j', '--multiprocess':
257 self.checkError([opt, '2', '-T'], "don't go together")
258 self.checkError([opt, '2', '-l'], "don't go together")
259 self.checkError([opt, '0', '-T'], "don't go together")
260 self.checkError([opt, '0', '-l'], "don't go together")
263 for opt in '-T', '--coverage':
269 for opt in '-D', '--coverdir':
277 for opt in '-N', '--nocoverdir':
283 for opt in '-t', '--threshold':
291 for opt in '-n', '--nowindows':
297 self.assertIn('the --nowindows (-n) option is deprecated', err)
300 for opt in '-F', '--forever':
306 self.checkError(['--xxx'], 'usage:')
309 ns = libregrtest._parse_args(['--qui'])
314 ns = libregrtest._parse_args(['--quiet', '--exclude'])
320 ns = libregrtest._parse_args(['--start', ''])
328 ns = libregrtest._parse_args(['--quiet', 'foo'])
334 ns = libregrtest._parse_args(['test_unaryop', '-v', 'test_binop'])
339 self.checkError(['--unknown-option'],
340 'unrecognized arguments: --unknown-option')
346 TESTNAME_REGEX = r'test_[a-zA-Z0-9_]+'
376 with open(path, 'x', encoding='utf-8') as fp:
395 … regex = (r'^[0-9]+:[0-9]+:[0-9]+ (?:load avg: [0-9]+\.[0-9]{2} )?\[ *[0-9]+(?:/ *[0-9]+)*\] (%s)'
454 regex = list_regex('%s re-run test%s', rerun)
456 self.check_line(output, "Re-running failed tests in verbose mode")
458 regex = "Re-running test %r in verbose mode" % name
465 good = (len(tests) - len(skipped) - len(failed)
466 - len(omitted) - len(env_changed) - len(no_test_ran))
496 match = self.regex_search(r'Using random seed ([0-9]+)', output)
515 "---\n"
517 "---\n"
522 "---\n"
524 "---\n"
530 args = [sys.executable, '-X', 'faulthandler', '-I', *args]
549 self.python_args = ['-Wd', '-E', '-bb']
550 self.regrtest_args = ['-uall', '-rwW',
551 '--testdir=%s' % self.tmptestdir]
553 self.regrtest_args.extend(('--timeout', '3600', '-j4'))
555 self.regrtest_args.append('-n')
573 # -m test
574 args = [*self.python_args, '-m', 'test',
579 # -m test.regrtest
580 args = [*self.python_args, '-m', 'test.regrtest',
585 # -m test.autotest
586 args = [*self.python_args, '-m', 'test.autotest',
593 args = [*self.python_args, '-c', code,
621 test_args = ['--testdir=%s' % self.tmptestdir]
623 test_args.append('-x64') # 64-bit build
634 rt_args = ["-q"] # Quick, don't run tests twice
636 rt_args.append('-x64') # 64-bit build
638 rt_args.append('-d') # Debug build, use python_d.exe
648 cmdargs = ['-m', 'test', '--testdir=%s' % self.tmptestdir, *testargs]
668 # test -u command line option
682 # -u all: 2 resources enabled
683 output = self.run_tests('-u', 'all', *test_names)
686 # -u audio: 1 resource enabled
687 output = self.run_tests('-uaudio', *test_names)
697 # test -r and --randseed command line option
705 output = self.run_tests('-r', test)
707 match = self.regex_search(r'TESTRANDOM: ([0-9]+)', output)
711 output = self.run_tests('-r', '--randseed=%s' % randseed, test)
715 match = self.regex_search(r'TESTRANDOM: ([0-9]+)', output)
720 # test --fromfile
729 # test format '0:00:00 [2/7] test_opcodes -- test_grammar took 0 sec'
736 line += " -- %s took 0 sec" % previous
740 output = self.run_tests('--fromfile', filename)
748 output = self.run_tests('--fromfile', filename)
756 output = self.run_tests('--fromfile', filename)
764 output = self.run_tests('--fromfile', filename)
775 # test --slowest
777 output = self.run_tests("--slowest", *tests)
780 '(?:- %s: .*\n){%s}'
785 # Issue #25373: test --slowest with an interrupted test
791 args = ("--slowest", "-j2", test)
793 args = ("--slowest", test)
802 # test --coverage
804 output = self.run_tests("--coverage", test)
807 r'(?: *[0-9]+ *[0-9]{1,2}% *[^ ]+ +\([^)]+\)+)+')
811 # test --wait
813 output = self.run_tests("--wait", test, input='key')
817 # test --forever
834 output = self.run_tests('--forever', test, exitcode=2)
842 output = self.run_tests('--huntrleaks', '3:3:', test,
859 # test --huntrleaks
873 # test --huntrleaks for file descriptor leak
886 # test --list-tests
888 output = self.run_tests('--list-tests', *tests)
893 # test --list-cases
905 # Test --list-cases
908 output = self.run_tests('--list-cases', testname)
911 # Test --list-cases with --match
913 output = self.run_tests('--list-cases',
914 '-m', 'test_method1',
925 output = self.run_tests("-j2", *tests, exitcode=2)
952 output = self.run_tests("-v", testname)
969 output = self.run_tests("-v", "--matchfile", filename, testname)
988 # fail with --fail-env-changed
989 output = self.run_tests("--fail-env-changed", testname, exitcode=3)
1004 output = self.run_tests("-w", testname, exitcode=2)
1018 output = self.run_tests(testname, "-m", "nosuchtest", exitcode=0)
1045 output = self.run_tests(testname, testname2, "-m", "nosuchtest", exitcode=0)
1067 output = self.run_tests(testname, testname2, "-m", "nosuchtest",
1068 "-m", "test_other_bug", exitcode=0)
1077 self.assertEqual(utils.format_duration(1e-9),
1079 self.assertEqual(utils.format_duration(10e-3),