def find_shells(self): for arch in self.arch_suffixes: if not self.match_arch(arch): continue path = os.path.join(self.args.objdir, 'vm', 'spshell' + arch, 'spshell') if not os.path.exists(path): if not os.path.exists(path + '.js'): continue path += '.js' path = os.path.abspath(path) rc, stdout, stderr = testutil.exec_argv([path, '--version']) if rc == 0 and 'JIT' in stdout: self.shells.append({ 'path': path, 'args': [], 'name': 'default' + arch, }) self.shells.append({ 'path': path, 'args': ['--disable-jit'], 'name': 'interpreter' + arch, })
def find_shells(self): search_in = os.path.join(self.args.objdir, 'spshell') found = self.find_executables_in(search_in, 'spshell') for arch, path in found: env = None if self.args.coverage: env = self.env_.copy() env['LLVM_PROFILE_FILE'] = '{0}/spshell-%9m'.format( self.args.coverage) rc, stdout, stderr = testutil.exec_argv([path, '--version']) if rc == 0 and 'JIT' in stdout: self.shells.append({ 'path': path, 'args': [], 'name': 'default-' + arch, 'env': env, }) self.shells.append({ 'path': path, 'args': ['--disable-jit'], 'name': 'interpreter-' + arch, 'env': env, })
def find_shells(self): for arch in self.arch_suffixes: if not self.match_arch(arch): continue path = os.path.join(self.args.objdir, 'vm', 'spshell' + arch, 'spshell') path = self.find_executable(path) if not path: continue env = None if self.args.coverage: env = self.env_.copy() env['LLVM_PROFILE_FILE'] = '{0}/spshell-%9m'.format( self.args.coverage) path = os.path.abspath(path) rc, stdout, stderr = testutil.exec_argv([path, '--version']) if rc == 0 and 'JIT' in stdout: self.shells.append({ 'path': path, 'args': [], 'name': 'default' + arch, 'env': env, }) self.shells.append({ 'path': path, 'args': ['--disable-jit'], 'name': 'interpreter' + arch, 'env': env, })
def find_shells(self): for arch in self.arch_suffixes: if not self.match_arch(arch): continue path = os.path.join(self.args.objdir, 'vm', 'spshell' + arch, 'spshell') path = self.find_executable(path) if not path: continue path = os.path.abspath(path) rc, stdout, stderr = testutil.exec_argv([path, '--version']) if rc == 0 and 'JIT' in stdout: self.shells.append({ 'path': path, 'args': [], 'name': 'default' + arch, }) self.shells.append({ 'path': path, 'args': ['--disable-jit'], 'name': 'interpreter' + arch, })
def do_exec(self, argv): if argv[0].endswith('.js'): argv = ['node'] + argv if self.plan.show_cli: self.out(' '.join(argv)) return testutil.exec_argv(argv)
def do_exec(self, argv): if self.plan.show_cli: self.out(' '.join(argv)) if argv[0].endswith('.js'): timeout = 60 else: timeout = 5 return testutil.exec_argv(argv, timeout, logger=self)
def do_exec(self, argv): if self.plan.show_cli: self.out(' '.join(argv)) if argv[0].endswith('.js'): timeout = 60 else: timeout = 5 return testutil.exec_argv(argv, timeout, logger = self)
def do_exec(self, argv): if self.plan.show_cli: self.out(' '.join(argv)) return testutil.exec_argv(argv)