• Home
  • Raw
  • Download

Lines Matching refs:options

126   options = parser.parse_args()
129 assert (os.path.exists(options.testcase) and
130 os.path.isfile(options.testcase)), (
131 'Test case %s doesn\'t exist' % options.testcase)
134 options.second_d8 = options.second_d8 or options.first_d8
137 if not os.path.isabs(options.first_d8):
138 options.first_d8 = os.path.join(BASE_PATH, options.first_d8)
139 if not os.path.isabs(options.second_d8):
140 options.second_d8 = os.path.join(BASE_PATH, options.second_d8)
143 assert os.path.exists(options.first_d8)
144 assert os.path.exists(options.second_d8)
147 options.first_arch = infer_arch(options.first_d8)
148 options.second_arch = infer_arch(options.second_d8)
151 assert (options.first_arch != options.second_arch or
152 options.first_config != options.second_config), (
154 assert options.first_arch in SUPPORTED_ARCHS
155 assert options.second_arch in SUPPORTED_ARCHS
156 assert options.first_config in CONFIGS
157 assert options.second_config in CONFIGS
159 return options
206 options = parse_args()
210 options.first_arch, options.first_config,
211 options.second_arch, options.second_config,
215 with open(options.testcase) as f:
223 common_flags = FLAGS + ['--random-seed', str(options.random_seed)]
224 first_config_flags = common_flags + CONFIGS[options.first_config]
225 second_config_flags = common_flags + CONFIGS[options.second_config]
229 if options.first_arch != options.second_arch:
231 args = [d8] + config_flags + preamble + [options.testcase]
238 cwd=os.path.dirname(options.testcase),
242 first_config_output = run_d8(options.first_d8, first_config_flags)
248 second_config_output = run_d8(options.second_d8, second_config_flags)
274 first_config_label = '%s,%s' % (options.first_arch, options.first_config)
275 second_config_label = '%s,%s' % (options.second_arch, options.second_config)