Bug 1311991 - Add CRAMTEST_MANIFEST moz.build variable, r?gps draft
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Tue, 17 Jan 2017 16:21:36 -0500
changeset 649088 fdfb1b2ee708a69beded746934b6f970f8306d79
parent 649087 f409ff9e695fa5094a6b887cbd3b6ed983cea34d
child 649089 8d1809e0b240a04cba02e219bd2885ee891b6ccc
push id74949
push userahalberstadt@mozilla.com
push dateFri, 18 Aug 2017 16:15:05 +0000
reviewersgps
bugs1311991
milestone57.0a1
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
python/mozbuild/mozbuild/frontend/context.py
python/mozbuild/mozbuild/testing.py
--- 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),