Bug 1311991 - Add CRAMTEST_MANIFEST moz.build variable, r?gps
Supports CRAMTEST_MANIFEST manifestparser manifests in moz.build. Add a new
manifest like:
CRAMTEST_MANIFEST += [
'path/to/cram.ini',
]
MozReview-Commit-ID: 1eagYMnCrnz
--- a/python/mozbuild/mozbuild/frontend/context.py
+++ b/python/mozbuild/mozbuild/frontend/context.py
@@ -1579,16 +1579,20 @@ VARIABLES = {
'XPCSHELL_TESTS_MANIFESTS': (ManifestparserManifestList, list,
"""List of manifest files defining xpcshell tests.
"""),
'PYTHON_UNITTEST_MANIFESTS': (ManifestparserManifestList, list,
"""List of manifest files defining python unit tests.
"""),
+ 'CRAMTEST_MANIFESTS': (ManifestparserManifestList, list,
+ """List of manifest files defining cram unit tests.
+ """),
+
# The following variables are used to control the target of installed files.
'XPI_NAME': (unicode, unicode,
"""The name of an extension XPI to generate.
When this variable is present, the results of this directory will end up
being packaged into an extension instead of the main dist/bin results.
"""),
--- a/python/mozbuild/mozbuild/testing.py
+++ b/python/mozbuild/mozbuild/testing.py
@@ -292,16 +292,17 @@ TEST_MANIFESTS = dict(
BROWSER_CHROME=('browser-chrome', 'testing/mochitest', 'browser', True),
ANDROID_INSTRUMENTATION=('instrumentation', 'instrumentation', '.', False),
JETPACK_PACKAGE=('jetpack-package', 'testing/mochitest', 'jetpack-package', True),
JETPACK_ADDON=('jetpack-addon', 'testing/mochitest', 'jetpack-addon', False),
FIREFOX_UI_FUNCTIONAL=('firefox-ui-functional', 'firefox-ui', '.', False),
FIREFOX_UI_UPDATE=('firefox-ui-update', 'firefox-ui', '.', False),
PUPPETEER_FIREFOX=('firefox-ui-functional', 'firefox-ui', '.', False),
PYTHON_UNITTEST=('python', 'python', '.', False),
+ CRAMTEST=('cram', 'cram', '.', False),
# marionette tests are run from the srcdir
# TODO(ato): make packaging work as for other test suites
MARIONETTE=('marionette', 'marionette', '.', False),
MARIONETTE_UNIT=('marionette', 'marionette', '.', False),
MARIONETTE_WEBAPI=('marionette', 'marionette', '.', False),
METRO_CHROME=('metro-chrome', 'testing/mochitest', 'metro', True),