Lines Matching refs:ns
60 ns = libregrtest._parse_args(['--timeout', '4.2'])
61 self.assertEqual(ns.timeout, 4.2)
66 ns = libregrtest._parse_args(['--wait'])
67 self.assertTrue(ns.wait)
70 ns = libregrtest._parse_args(['--worker-args', '[[], {}]'])
71 self.assertEqual(ns.worker_args, '[[], {}]')
77 ns = libregrtest._parse_args([opt, 'foo'])
78 self.assertEqual(ns.start, 'foo')
82 ns = libregrtest._parse_args(['-v'])
83 self.assertEqual(ns.verbose, 1)
84 ns = libregrtest._parse_args(['-vvv'])
85 self.assertEqual(ns.verbose, 3)
86 ns = libregrtest._parse_args(['--verbose'])
87 self.assertEqual(ns.verbose, 1)
88 ns = libregrtest._parse_args(['--verbose'] * 3)
89 self.assertEqual(ns.verbose, 3)
90 ns = libregrtest._parse_args([])
91 self.assertEqual(ns.verbose, 0)
96 ns = libregrtest._parse_args([opt])
97 self.assertTrue(ns.verbose2)
102 ns = libregrtest._parse_args([opt])
103 self.assertTrue(ns.verbose3)
108 ns = libregrtest._parse_args([opt])
109 self.assertTrue(ns.quiet)
110 self.assertEqual(ns.verbose, 0)
115 ns = libregrtest._parse_args([opt])
116 self.assertTrue(ns.print_slow)
119 ns = libregrtest._parse_args(['--header'])
120 self.assertTrue(ns.header)
122 ns = libregrtest._parse_args(['--verbose'])
123 self.assertTrue(ns.header)
128 ns = libregrtest._parse_args([opt])
129 self.assertTrue(ns.randomize)
132 ns = libregrtest._parse_args(['--randseed', '12345'])
133 self.assertEqual(ns.random_seed, 12345)
134 self.assertTrue(ns.randomize)
141 ns = libregrtest._parse_args([opt, 'foo'])
142 self.assertEqual(ns.fromfile, 'foo')
149 ns = libregrtest._parse_args([opt])
150 self.assertTrue(ns.exclude)
155 ns = libregrtest._parse_args([opt])
156 self.assertTrue(ns.single)
162 ns = libregrtest._parse_args([opt, 'pattern'])
163 self.assertEqual(ns.match_tests, ['pattern'])
166 ns = libregrtest._parse_args(['-m', 'pattern1',
168 self.assertEqual(ns.match_tests, ['pattern1', 'pattern2'])
176 ns = libregrtest._parse_args(['-m', 'match',
178 self.assertEqual(ns.match_tests,
184 ns = libregrtest._parse_args([opt, '-v'])
185 self.assertTrue(ns.failfast)
186 ns = libregrtest._parse_args([opt, '-W'])
187 self.assertTrue(ns.failfast)
193 ns = libregrtest._parse_args([opt, 'gui,network'])
194 self.assertEqual(ns.use_resources, ['gui', 'network'])
196 ns = libregrtest._parse_args([opt, 'gui,none,network'])
197 self.assertEqual(ns.use_resources, ['network'])
201 ns = libregrtest._parse_args([opt, 'all,-gui'])
202 self.assertEqual(ns.use_resources, expected)
207 ns = libregrtest._parse_args([opt, 'all,tzdata'])
208 self.assertEqual(ns.use_resources,
212 ns = libregrtest._parse_args([opt, 'extralargefile'])
213 self.assertEqual(ns.use_resources, ['extralargefile'])
218 ns = libregrtest._parse_args([opt, '4G'])
219 self.assertEqual(ns.memlimit, '4G')
223 ns = libregrtest._parse_args(['--testdir', 'foo'])
224 self.assertEqual(ns.testdir, os.path.join(support.SAVEDCWD, 'foo'))
230 ns = libregrtest._parse_args([opt])
231 self.assertTrue(ns.runleaks)
236 ns = libregrtest._parse_args([opt, ':'])
237 self.assertEqual(ns.huntrleaks, (5, 4, 'reflog.txt'))
238 ns = libregrtest._parse_args([opt, '6:'])
239 self.assertEqual(ns.huntrleaks, (6, 4, 'reflog.txt'))
240 ns = libregrtest._parse_args([opt, ':3'])
241 self.assertEqual(ns.huntrleaks, (5, 3, 'reflog.txt'))
242 ns = libregrtest._parse_args([opt, '6:3:leaks.log'])
243 self.assertEqual(ns.huntrleaks, (6, 3, 'leaks.log'))
253 ns = libregrtest._parse_args([opt, '2'])
254 self.assertEqual(ns.use_mp, 2)
265 ns = libregrtest._parse_args([opt])
266 self.assertTrue(ns.trace)
271 ns = libregrtest._parse_args([opt, 'foo'])
272 self.assertEqual(ns.coverdir,
279 ns = libregrtest._parse_args([opt])
280 self.assertIsNone(ns.coverdir)
285 ns = libregrtest._parse_args([opt, '1000'])
286 self.assertEqual(ns.threshold, 1000)
294 ns = libregrtest._parse_args([opt])
295 self.assertTrue(ns.nowindows)
302 ns = libregrtest._parse_args([opt])
303 self.assertTrue(ns.forever)
309 ns = libregrtest._parse_args(['--qui'])
310 self.assertTrue(ns.quiet)
311 self.assertEqual(ns.verbose, 0)
314 ns = libregrtest._parse_args(['--quiet', '--exclude'])
315 self.assertTrue(ns.quiet)
316 self.assertEqual(ns.verbose, 0)
317 self.assertTrue(ns.exclude)
320 ns = libregrtest._parse_args(['--start', ''])
321 self.assertEqual(ns.start, '')
324 ns = libregrtest._parse_args(['foo'])
325 self.assertEqual(ns.args, ['foo'])
328 ns = libregrtest._parse_args(['--quiet', 'foo'])
329 self.assertTrue(ns.quiet)
330 self.assertEqual(ns.verbose, 0)
331 self.assertEqual(ns.args, ['foo'])
334 ns = libregrtest._parse_args(['test_unaryop', '-v', 'test_binop'])
335 self.assertEqual(ns.verbose, 1)
336 self.assertEqual(ns.args, ['test_unaryop', 'test_binop'])