Beispiel #1
0
 def run_d8(d8, config_flags):
     args = [d8] + config_flags + PREAMBLE + [options.testcase]
     if d8.endswith('.py'):
         # Wrap with python in tests.
         args = [sys.executable] + args
     return v8_commands.Execute(
         args,
         cwd=os.path.dirname(options.testcase),
         timeout=TIMEOUT,
     )
Beispiel #2
0
 def run_d8(d8, config_flags):
     preamble = PREAMBLE[:]
     if options.first_arch != options.second_arch:
         preamble.append(ARCH_MOCKS)
     args = [d8] + config_flags + preamble + [options.testcase]
     print " ".join(args)
     if d8.endswith('.py'):
         # Wrap with python in tests.
         args = [sys.executable] + args
     return v8_commands.Execute(
         args,
         cwd=os.path.dirname(options.testcase),
         timeout=TIMEOUT,
     )
Beispiel #3
0
 def run_d8(d8, config_flags, config_label=None, testcase=options.testcase):
     preamble = PREAMBLE[:]
     if options.first_arch != options.second_arch:
         preamble.append(ARCH_MOCKS)
     args = [d8] + config_flags + preamble + [testcase]
     if config_label:
         print('# Command line for %s comparison:' % config_label)
         print(' '.join(args))
     if d8.endswith('.py'):
         # Wrap with python in tests.
         args = [sys.executable] + args
     return v8_commands.Execute(
         args,
         cwd=os.path.dirname(os.path.abspath(testcase)),
         timeout=TIMEOUT,
     )