Lines Matching refs:options
102 def _process_options(self, options):
103 if not options.fuzzer_random_seed:
104 options.fuzzer_random_seed = random_utils.random_seed()
106 if options.total_timeout_sec:
107 options.tests_count = 0
109 if options.combine_tests:
110 if options.combine_min > options.combine_max:
112 options.min_group_size, options.max_group_size))
115 if options.variants != 'default':
132 def _get_statusfile_variables(self, options):
134 super(NumFuzzer, self)._get_statusfile_variables(options))
136 'deopt_fuzzer': bool(options.stress_deopt),
137 'endurance_fuzzer': bool(options.combine_tests),
138 'gc_stress': bool(options.stress_gc),
139 'gc_fuzzer': bool(max([options.stress_marking,
140 options.stress_scavenge,
141 options.stress_compaction,
142 options.stress_gc,
143 options.stress_delay_tasks,
144 options.stress_stack_size,
145 options.stress_thread_pool_size])),
149 def _do_execute(self, tests, args, options):
151 fuzzer_rng = random.Random(options.fuzzer_random_seed)
153 combiner = self._create_combiner(fuzzer_rng, options)
154 results = self._create_result_tracker(options)
155 execproc = ExecutionProc(options.j)
158 tests.test_count_estimate, options)
165 self._create_shard_proc(options),
168 self._create_fuzzer(fuzzer_rng, options),
172 self._create_timeout_proc(options),
173 self._create_rerun_proc(options),
181 combiner.generate_initial_tests(options.j * 4)
197 def _is_testsuite_supported(self, suite, options):
198 return not options.combine_tests or suite.test_combiner_available()
200 def _create_combiner(self, rng, options):
201 if not options.combine_tests:
203 return CombinerProc(rng, options.combine_min, options.combine_max,
204 options.tests_count)
206 def _create_fuzzer(self, rng, options):
209 self._tests_count(options),
210 self._create_fuzzer_configs(options),
211 self._disable_analysis(options),
214 def _tests_count(self, options):
215 if options.combine_tests:
217 return options.tests_count
219 def _disable_analysis(self, options):
220 """Disable analysis phase when options are used that don't support it."""
221 return options.combine_tests
223 def _create_fuzzer_configs(self, options):
229 add('compaction', options.stress_compaction)
230 add('marking', options.stress_marking)
231 add('scavenge', options.stress_scavenge)
232 add('gc_interval', options.stress_gc)
233 add('stack', options.stress_stack_size)
234 add('threads', options.stress_thread_pool_size)
235 add('delay', options.stress_delay_tasks)
236 add('deopt', options.stress_deopt, options.stress_deopt_min)