This repository has been archived by the owner on Sep 15, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug 692091 - mozharness code for peptest. p=ahal, r=me
- Loading branch information
1 parent
e9eead4
commit 4e7318c
Showing
6 changed files
with
543 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,52 @@ | |||
# This is a template config file for peptest production | |||
|
|||
# The peptest mozharness script is set up so that specifying None | |||
# is the same as not specifying the option at all | |||
import os | |||
|
|||
config = { | |||
# mozharness script options | |||
"base_work_dir": os.getcwd(), | |||
"work_dir": "build", | |||
"log_name": "pep", | |||
"log_level": "info", | |||
"test_url": "url_to_packaged_tests", | |||
# path or url to a zip or folder containing the mozbase packages | |||
"mozbase_path": "url_to_mozbase_zip", | |||
# path or url to a zip or folder containing peptest | |||
"peptest_path": "url_to_peptest_zip", | |||
|
|||
# peptest options | |||
"appname": "url_to_application", # i.e the firefox build on ftp.m.o | |||
# defaults to firefox, can also be thunderbird, fennec, etc. | |||
"app": "firefox", | |||
# if test_url is specified, this should be the relative | |||
# path to the manifest inside the extracted test directory | |||
# otherwise, should be path to a test manifest on the local file system | |||
"test_manifest": "path_to_test_manifest", | |||
# optional, use an existing profile (temp profile created by default) | |||
"profile_path": None, | |||
# global timeout in seconds (without output) | |||
"timeout": 60, | |||
# if specified, creates a webserver for hosting test | |||
# related files at this document root | |||
"server_path": None, | |||
"server_port": None, | |||
# EventTracer setting, the threshold to count a failure (ms) | |||
"tracer_threshold": 50, | |||
# EventTracer setting, interval at which to send tracer events (ms) | |||
"tracer_interval": 10, | |||
# URL or path to the symbols directory for debugging crashes | |||
"symbols_path": None, | |||
} | |||
|
|||
# these config options depend on the abs_work_dir option | |||
abs_work_dir = os.path.abspath(os.path.join(config['base_work_dir'], | |||
config['work_dir'])) | |||
|
|||
config['virtualenv_path'] = os.path.join(abs_work_dir, "venv") | |||
# directory to extract tests to | |||
config['test_install_dir'] = os.path.join(abs_work_dir, "tests") | |||
# directory to install application to | |||
config['application_install_dir'] = os.path.join(abs_work_dir, | |||
"application") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,37 @@ | |||
import os | |||
|
|||
config = { | |||
# mozharness script options | |||
"base_work_dir": os.getcwd(), | |||
"work_dir": "build", | |||
"log_name": "pep", | |||
"log_level": "info", | |||
"test_url": "https://github.com/downloads/ahal/peptest/tests.zip", | |||
"mozbase_path": "https://github.com/mozilla/mozbase/zipball/master", | |||
"peptest_path": "https://github.com/mozilla/peptest/zipball/master", | |||
|
|||
# peptest options | |||
"appname": "ftp://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central/firefox-10.0a1.en-US.linux-i686.tar.bz2", | |||
"app": "firefox", | |||
"test_manifest": "firefox/all_tests.ini", # this is relative to the test folder specified by test_url | |||
"profile_path": None, | |||
"timeout": 60, | |||
"server_path": None, | |||
"server_port": None, | |||
"tracer_threshold": 50, | |||
"tracer_interval": 10, | |||
"symbols_path": None, | |||
|
|||
# get latest tinderbox options | |||
"get_latest_tinderbox_product": "mozilla-central", | |||
"get_latest_tinderbox_platform": None, | |||
"get_latest_tinderbox_debug_build": False, | |||
} | |||
|
|||
abs_work_dir = os.path.abspath(os.path.join(config['base_work_dir'], | |||
config['work_dir'])) | |||
|
|||
config['virtualenv_path'] = os.path.join(abs_work_dir, "venv") | |||
config['test_install_dir'] = os.path.join(abs_work_dir, "tests") | |||
config['application_install_dir'] = os.path.join(abs_work_dir, | |||
"application") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,56 @@ | |||
# This is a template config file for peptest user | |||
|
|||
# The peptest mozharness script is set up so that specifying None | |||
# is the same as not specifying the option at all | |||
import os | |||
|
|||
config = { | |||
# mozharness script options | |||
"base_work_dir": os.getcwd(), | |||
"work_dir": "build", | |||
"log_name": "pep", | |||
"log_level": "info", | |||
"test_url": "url_to_packaged_tests", | |||
# path or url to a zip or folder containing the mozbase packages | |||
"mozbase_path": "url_to_mozbase_zip", | |||
# path or url to a zip or folder containing peptest | |||
"peptest_path": "url_to_peptest_zip", | |||
|
|||
# peptest options | |||
|
|||
"appname": "path_to_application_binary", | |||
# defaults to firefox, can also be thunderbird, fennec, etc. | |||
"app": "firefox", | |||
"test_manifest": "path_to_test_manifest", | |||
# optional, use an existing profile (temp profile created by default) | |||
"profile_path": None, | |||
# global timeout in seconds (without output) | |||
"timeout": 60, | |||
# if specified, creates a webserver for hosting test | |||
# related files at this document root | |||
"server_path": None, | |||
"server_port": None, | |||
# EventTracer setting, the threshold to count a failure (ms) | |||
"tracer_threshold": 50, | |||
# EventTracer setting, interval at which to send tracer events (ms) | |||
"tracer_interval": 10, | |||
# URL or path to the symbols directory for debugging crashes | |||
"symbols_path": None, | |||
|
|||
# get latest tinderbox options | |||
# (these are only used by the get-latest-tinderbox action) | |||
"get_latest_tinderbox_product": "mozilla-central", | |||
"get_latest_tinderbox_platform": None, # defaults to current platform | |||
"get_latest_tinderbox_debug_build": False, | |||
} | |||
|
|||
# these config options depend on the abs_work_dir option | |||
abs_work_dir = os.path.abspath(os.path.join(config['base_work_dir'], | |||
config['work_dir'])) | |||
|
|||
config['virtualenv_path'] = os.path.join(abs_work_dir, "venv") | |||
# directory to extract tests to | |||
config['test_install_dir'] = os.path.join(abs_work_dir, "tests") | |||
# directory to install application to | |||
config['application_install_dir'] = os.path.join(abs_work_dir, | |||
"application") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.