fune/testing/performance/hooks_applink.py
Tarek Ziadé 33f1eee4d5 Bug 1633437 - Support for test metadata r=acreskey
This patch adds support for tests metadata. A test script parser is added as
well as a new "doc" flavor that can be used to display the script info in the
command line. This parser will be the basis for building automated docs and
scripts verifications if we want to do this.

Differential Revision: https://phabricator.services.mozilla.com/D72800
2020-04-28 17:07:14 +00:00

35 lines
1.1 KiB
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/.
from mozperftest.browser.browsertime import add_options
url = "'https://www.example.com'"
common_options = [
("processStartTime", "true"),
("firefox.disableBrowsertimeExtension", "true"),
("firefox.android.intentArgument", "'-a'"),
("firefox.android.intentArgument", "'android.intent.action.VIEW'"),
("firefox.android.intentArgument", "'-d'"),
("firefox.android.intentArgument", url),
]
app_options = {
"org.mozilla.geckoview_example": [
(
"firefox.android.activity",
"'org.mozilla.geckoview_example.GeckoViewActivity'",
)
],
"org.mozilla.fennec_aurora": [
("firefox.android.activity", "'org.mozilla.fenix.IntentReceiverActivity'")
],
"org.mozilla.firefox": [
("firefox.android.activity", "'org.mozilla.gecko.BrowserApp'")
],
}
def before_runs(env, **kw):
add_options(env, common_options)
add_options(env, app_options[env.get_arg("android-app-name")])