Bug 1050715 - Update the description of the various tests targed proposed by './mach help' r=jmaher

--HG--
extra : rebase_source : 29019a02711ffce5c148787517051855259b6446
This commit is contained in:
Sylvestre Ledru 2014-08-09 15:37:29 +02:00
parent 8e68f99807
commit 2e0c1ce1ec
10 changed files with 29 additions and 29 deletions

View File

@ -26,7 +26,7 @@ class JetpackRunner(MozbuildObject):
@CommandProvider
class MachCommands(MachCommandBase):
@Command('jetpack-test', category='testing',
description='Runs the jetpack test suite.')
description='Runs the jetpack test suite (Add-on SDK).')
def run_jetpack_test(self, **params):
# We should probably have a utility function to ensure the tree is
# ready to run tests. Until then, we just create the state dir (in

View File

@ -35,7 +35,7 @@ class MachCommands(MachCommandBase):
@Command('valgrind-test', category='testing',
conditions=[conditions.is_firefox, is_valgrind_build],
description='Run the Valgrind test job.')
description='Run the Valgrind test job (memory-related errors).')
@CommandArgument('--suppressions', default=[], action='append',
metavar='FILENAME',
help='Specify a suppression file for Valgrind to use. Use '

View File

@ -30,7 +30,7 @@ class WebIDLProvider(MachCommandBase):
manager.generate_example_files(i)
@Command('webidl-parser-test', category='testing',
description='Run WebIDL tests.')
description='Run WebIDL tests (Interface Browser parser).')
@CommandArgument('--verbose', '-v', action='store_true',
help='Run tests in verbose mode.')
def webidl_test(self, verbose=False):

View File

@ -390,7 +390,7 @@ def B2GCommand(func):
@CommandProvider
class MachCommands(MachCommandBase):
@Command('reftest', category='testing', description='Run reftests.')
@Command('reftest', category='testing', description='Run reftests (layout and graphics correctness).')
@ReftestCommand
def run_reftest(self, test_file, **kwargs):
return self._run_reftest(test_file, suite='reftest', **kwargs)
@ -402,19 +402,19 @@ class MachCommands(MachCommandBase):
return self._run_reftest(test_file, suite='jstestbrowser', **kwargs)
@Command('reftest-ipc', category='testing',
description='Run IPC reftests.')
description='Run IPC reftests (layout and graphics correctness, separate process).')
@ReftestCommand
def run_ipc(self, test_file, **kwargs):
return self._run_reftest(test_file, suite='reftest-ipc', **kwargs)
@Command('crashtest', category='testing',
description='Run crashtests.')
description='Run crashtests (Check if crashes on a page).')
@ReftestCommand
def run_crashtest(self, test_file, **kwargs):
return self._run_reftest(test_file, suite='crashtest', **kwargs)
@Command('crashtest-ipc', category='testing',
description='Run IPC crashtests.')
description='Run IPC crashtests (Check if crashes on a page, separate process).')
@ReftestCommand
def run_crashtest_ipc(self, test_file, **kwargs):
return self._run_reftest(test_file, suite='crashtest-ipc', **kwargs)
@ -440,21 +440,21 @@ class B2GCommands(MachCommandBase):
setattr(self, attr, getattr(context, attr, None))
@Command('reftest-remote', category='testing',
description='Run a remote reftest.',
description='Run a remote reftest (b2g layout and graphics correctness, remote device).',
conditions=[conditions.is_b2g, is_emulator])
@B2GCommand
def run_reftest_remote(self, test_file, **kwargs):
return self._run_reftest(test_file, suite='reftest', **kwargs)
@Command('reftest-b2g-desktop', category='testing',
description='Run a b2g desktop reftest.',
description='Run a b2g desktop reftest (b2g desktop layout and graphics correctness).',
conditions=[conditions.is_b2g_desktop])
@B2GCommand
def run_reftest_b2g_desktop(self, test_file, **kwargs):
return self._run_reftest(test_file, suite='reftest', **kwargs)
@Command('crashtest-remote', category='testing',
description='Run a remote crashtest.',
description='Run a remote crashtest (Check if b2g crashes on a page, remote device).',
conditions=[conditions.is_b2g, is_emulator])
@B2GCommand
def run_crashtest_remote(self, test_file, **kwargs):

View File

@ -618,7 +618,7 @@ class Warnings(MachCommandBase):
@CommandProvider
class GTestCommands(MachCommandBase):
@Command('gtest', category='testing',
description='Run GTest unit tests.')
description='Run GTest unit tests (C++ tests).')
@CommandArgument('gtest_filter', default=b"*", nargs='?', metavar='gtest_filter',
help="test_filter is a ':'-separated list of wildcard patterns (called the positive patterns),"
"optionally followed by a '-' and another ':'-separated pattern list (called the negative patterns).")

View File

@ -165,7 +165,7 @@ TEST_HELP = TEST_HELP.strip()
@CommandProvider
class Test(MachCommandBase):
@Command('test', category='testing', description='Run tests.')
@Command('test', category='testing', description='Run tests (detects the kind of test and runs it).')
@CommandArgument('what', default=None, nargs='*', help=TEST_HELP)
def test(self, what):
from mozbuild.testing import TestResolver
@ -246,7 +246,7 @@ class Test(MachCommandBase):
@CommandProvider
class MachCommands(MachCommandBase):
@Command('cppunittest', category='testing',
description='Run cpp unit tests.')
description='Run cpp unit tests (C++ tests).')
@CommandArgument('test_files', nargs='*', metavar='N',
help='Test to run. Can be specified as one or more files or ' \
'directories, or omitted. If omitted, the entire test suite is ' \
@ -280,7 +280,7 @@ class MachCommands(MachCommandBase):
@CommandProvider
class CheckSpiderMonkeyCommand(MachCommandBase):
@Command('check-spidermonkey', category='testing', description='Run SpiderMonkey tests.')
@Command('check-spidermonkey', category='testing', description='Run SpiderMonkey tests (JavaScript engine).')
@CommandArgument('--valgrind', action='store_true', help='Run jit-test suite with valgrind flag')
def run_checkspidermonkey(self, **params):

View File

@ -81,7 +81,7 @@ class B2GCommands(MachCommandBase):
for attr in ('b2g_home', 'device_name'):
setattr(self, attr, getattr(context, attr, None))
@Command('marionette-webapi', category='testing',
description='Run a Marionette webapi test',
description='Run a Marionette webapi test (test WebAPIs using marionette).',
conditions=[conditions.is_b2g])
@CommandArgument('--type', dest='testtype',
help='Test type, usually one of: browser, b2g, b2g-qemu.',
@ -106,7 +106,7 @@ class B2GCommands(MachCommandBase):
@CommandProvider
class MachCommands(MachCommandBase):
@Command('marionette-test', category='testing',
description='Run a Marionette test.',
description='Run a Marionette test (Check UI or the internal JavaScript using marionette).',
conditions=[conditions.is_firefox],
parser=_parser,
)

View File

@ -607,63 +607,63 @@ def B2GCommand(func):
class MachCommands(MachCommandBase):
@Command('mochitest-plain', category='testing',
conditions=[conditions.is_firefox_or_mulet],
description='Run a plain mochitest.')
description='Run a plain mochitest (integration test, plain web page).')
@MochitestCommand
def run_mochitest_plain(self, test_paths, **kwargs):
return self.run_mochitest(test_paths, 'plain', **kwargs)
@Command('mochitest-chrome', category='testing',
conditions=[conditions.is_firefox],
description='Run a chrome mochitest.')
description='Run a chrome mochitest (integration test with some XUL).')
@MochitestCommand
def run_mochitest_chrome(self, test_paths, **kwargs):
return self.run_mochitest(test_paths, 'chrome', **kwargs)
@Command('mochitest-browser', category='testing',
conditions=[conditions.is_firefox],
description='Run a mochitest with browser chrome.')
description='Run a mochitest with browser chrome (integration test with a standard browser).')
@MochitestCommand
def run_mochitest_browser(self, test_paths, **kwargs):
return self.run_mochitest(test_paths, 'browser', **kwargs)
@Command('mochitest-devtools', category='testing',
conditions=[conditions.is_firefox],
description='Run a devtools mochitest with browser chrome.')
description='Run a devtools mochitest with browser chrome (integration test with a standard browser with the devtools frame).')
@MochitestCommand
def run_mochitest_devtools(self, test_paths, **kwargs):
return self.run_mochitest(test_paths, 'devtools', **kwargs)
@Command('mochitest-metro', category='testing',
conditions=[conditions.is_firefox],
description='Run a mochitest with metro browser chrome.')
description='Run a mochitest with metro browser chrome (tests for Windows touch interface).')
@MochitestCommand
def run_mochitest_metro(self, test_paths, **kwargs):
return self.run_mochitest(test_paths, 'metro', **kwargs)
@Command('mochitest-a11y', category='testing',
conditions=[conditions.is_firefox],
description='Run an a11y mochitest.')
description='Run an a11y mochitest (accessibility tests).')
@MochitestCommand
def run_mochitest_a11y(self, test_paths, **kwargs):
return self.run_mochitest(test_paths, 'a11y', **kwargs)
@Command('webapprt-test-chrome', category='testing',
conditions=[conditions.is_firefox],
description='Run a webapprt chrome mochitest.')
description='Run a webapprt chrome mochitest (Web App Runtime with the browser chrome).')
@MochitestCommand
def run_mochitest_webapprt_chrome(self, test_paths, **kwargs):
return self.run_mochitest(test_paths, 'webapprt-chrome', **kwargs)
@Command('webapprt-test-content', category='testing',
conditions=[conditions.is_firefox],
description='Run a webapprt content mochitest.')
description='Run a webapprt content mochitest (Content rendering of the Web App Runtime).')
@MochitestCommand
def run_mochitest_webapprt_content(self, test_paths, **kwargs):
return self.run_mochitest(test_paths, 'webapprt-content', **kwargs)
@Command('mochitest', category='testing',
conditions=[conditions.is_firefox],
description='Run any flavor of mochitest.')
description='Run any flavor of mochitest (integration test).')
@MochitestCommand
@CommandArgument('-f', '--flavor', choices=FLAVORS.keys(),
help='Only run tests of this flavor.')
@ -753,7 +753,7 @@ class B2GCommands(MachCommandBase):
setattr(self, attr, getattr(context, attr, None))
@Command('mochitest-remote', category='testing',
description='Run a remote mochitest.',
description='Run a remote mochitest (integration test for fennec/android).',
conditions=[conditions.is_b2g, is_emulator])
@B2GCommand
def run_mochitest_remote(self, test_paths, **kwargs):
@ -784,7 +784,7 @@ class B2GCommands(MachCommandBase):
@Command('mochitest-b2g-desktop', category='testing',
conditions=[conditions.is_b2g_desktop],
description='Run a b2g desktop mochitest.')
description='Run a b2g desktop mochitest (same as mochitest-plain but for b2g desktop).')
@B2GCommand
def run_mochitest_b2g_desktop(self, test_paths, **kwargs):
kwargs['profile'] = kwargs.get('profile') or os.environ.get('GAIA_PROFILE')

View File

@ -132,7 +132,7 @@ class MachCommands(MachCommandBase):
mozharness_rev = 'production'
@Command('talos-test', category='testing',
description='Run talos tests.')
description='Run talos tests (performance testing).')
@CommandArgument('suite', help='Talos test suite to run. Valid suites are '
'chromez, dirtypaint, dromaeojs, other,'
'svgr, rafx, tpn, tp5o, xperf.')

View File

@ -416,7 +416,7 @@ class MachCommands(MachCommandBase):
@Command('xpcshell-test', category='testing',
conditions=[is_platform_supported],
description='Run XPCOM Shell tests.')
description='Run XPCOM Shell tests (API direct unit testing)')
@CommandArgument('test_paths', default='all', nargs='*', metavar='TEST',
help='Test to run. Can be specified as a single JS file, a directory, '
'or omitted. If omitted, the entire test suite is executed.')