Bug 988849 - Add mach target for jit tests; r=gps
This commit is contained in:
@@ -62,6 +62,11 @@ TEST_SUITES = {
|
|||||||
'mach_command': 'jetpack-test',
|
'mach_command': 'jetpack-test',
|
||||||
'kwargs': {},
|
'kwargs': {},
|
||||||
},
|
},
|
||||||
|
'jittest': {
|
||||||
|
'aliases': ('Jit', 'jit'),
|
||||||
|
'mach_command': 'jittest',
|
||||||
|
'kwargs': {'test_file': None},
|
||||||
|
},
|
||||||
'mochitest-a11y': {
|
'mochitest-a11y': {
|
||||||
'mach_command': 'mochitest-a11y',
|
'mach_command': 'mochitest-a11y',
|
||||||
'kwargs': {'test_file': None},
|
'kwargs': {'test_file': None},
|
||||||
@@ -204,3 +209,24 @@ class MachCommands(MachCommandBase):
|
|||||||
result = False
|
result = False
|
||||||
|
|
||||||
return 0 if result else 1
|
return 0 if result else 1
|
||||||
|
|
||||||
|
@CommandProvider
|
||||||
|
class JittestCommand(MachCommandBase):
|
||||||
|
@Command('jittest', category='testing', description='Run jit-test tests.')
|
||||||
|
@CommandArgument('--valgrind', action='store_true', help='Run jit-test suite with valgrind flag')
|
||||||
|
|
||||||
|
def run_jittest(self, **params):
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
|
if sys.platform.startswith('win'):
|
||||||
|
js = os.path.join(self.bindir, 'js.exe')
|
||||||
|
else:
|
||||||
|
js = os.path.join(self.bindir, 'js')
|
||||||
|
cmd = [os.path.join(self.topsrcdir, 'js', 'src', 'jit-test', 'jit_test.py'),
|
||||||
|
js, '--no-slow', '--no-progress', '--tinderbox', '--tbpl']
|
||||||
|
|
||||||
|
if params['valgrind']:
|
||||||
|
cmd.append('--valgrind')
|
||||||
|
|
||||||
|
return subprocess.call(cmd)
|
||||||
|
|||||||
Reference in New Issue
Block a user