Bug 1543725 - Reland all new files to get the build going again. a=me DONTBUILD
authorJorg K <jorgk@jorgk.com>
Sat, 06 Jul 2019 14:56:22 +0200
changeset 36042 ea8da6cabe7a75461820f8f60a17ae56fdf55a38
parent 36041 22be14b4e4fac49c2af45d306ac19b96b8e1e60b
child 36043 af98d8b8999d534e1f460789c8c867cec3978ca0
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersme
bugs1543725
Bug 1543725 - Reland all new files to get the build going again. a=me DONTBUILD
mail/test/marionette/manifest.ini
mail/test/marionette/moz.build
mail/test/marionette/test_empty.py
taskcluster/ci/test/marionette.yml
testing/marionette/thunderbirdinstance.py
testing/marionette/unit-tests.ini
new file mode 100644
--- /dev/null
+++ b/mail/test/marionette/manifest.ini
@@ -0,0 +1,1 @@
+[test_empty.py]
new file mode 100644
--- /dev/null
+++ b/mail/test/marionette/moz.build
@@ -0,0 +1,6 @@
+# vim: set filetype=python:
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+MARIONETTE_UNIT_MANIFESTS += ['manifest.ini']
new file mode 100644
--- /dev/null
+++ b/mail/test/marionette/test_empty.py
@@ -0,0 +1,12 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+from __future__ import print_function
+
+from marionette_harness import MarionetteTestCase
+
+class TestMain(MarionetteTestCase):
+
+    def test_empty(self):
+        return
new file mode 100644
--- /dev/null
+++ b/taskcluster/ci/test/marionette.yml
@@ -0,0 +1,40 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+---
+# These merge with defaults set in kind.yml
+job-defaults:
+    suite: marionette
+    mozharness:
+        script: marionette.py
+        config:
+            by-test-platform:
+                macosx.*:
+                    - marionette/prod_config.py
+                    - marionette/mac_taskcluster_config.py
+                windows.*:
+                    - marionette/windows_taskcluster_config.py
+                default:
+                    - marionette/prod_config.py
+                    - remove_executables.py
+        extra-options:
+            - --application=thunderbird --test-manifest=../../../../../comm/testing/marionette/unit-tests.ini
+    run-on-projects: built-projects
+
+marionette:
+    description: "Marionette unittest run"
+    treeherder-symbol: Mn
+    max-run-time: 5400
+    e10s: false
+    instance-size: default
+    chunks: 1
+
+marionette-headless:
+    description: "Marionette headless unittest run"
+    treeherder-symbol: MnH
+    max-run-time: 5400
+    e10s: false
+    instance-size: default
+    mozharness:
+        extra-options:
+            - --headless
new file mode 100644
--- /dev/null
+++ b/testing/marionette/thunderbirdinstance.py
@@ -0,0 +1,33 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/
+
+# ALL CHANGES TO THIS FILE MUST HAVE REVIEW FROM A MARIONETTE PEER!
+#
+# The Marionette Python client is used out-of-tree with various builds of
+# Firefox. Removing a preference from this file will cause regressions,
+# so please be careful and get review from a Testing :: Marionette peer
+# before you make any changes to this file.
+
+from __future__ import absolute_import
+
+
+thunderbird_prefs = {
+    # Disable application updates
+    "app.update.disabledForTesting": True,
+
+    # Enable output of dump()
+    "browser.dom.window.dump.enabled": True,
+
+    # Do not show the EULA notification which can interfer with tests
+    "browser.EULA.override": True,
+
+    # Do not start first-run items
+    "mail.provider.suppress_dialog_on_startup": True,
+    "mail.spotlight.firstRunDone": True,
+    "mail.winsearch.firstRunDone": True,
+
+    # Do not open start page
+    "mailnews.start_page.override_url": "about:blank",
+    "mailnews.start_page.url": "about:blank",
+}
new file mode 100644
--- /dev/null
+++ b/testing/marionette/unit-tests.ini
@@ -0,0 +1,2 @@
+# mail tests
+[include:../../mail/test/marionette/manifest.ini]