Permalink
Browse files

bug 650880 - port desktop unit tests to mozharness. r=aki

--HG--
extra : rebase_source : 123e25803cdfbcccab2e39891760b581d2fade1e
  • Loading branch information...
1 parent dea0f9b commit 90811981ba274894e95b83ce44b6d905f065d139 @lundjordan lundjordan committed Sep 6, 2012
View
@@ -10,4 +10,6 @@ test.py
.coverage
coverage
htmlcov
-venv
+venv
+build/
+logs/
@@ -0,0 +1,98 @@
+#### OS Specifics ####
+APP_NAME_DIR = "firefox"
+BINARY_PATH = "firefox-bin"
+INSTALLER_PATH = "installer.tar.bz2"
+XPCSHELL_NAME = "xpcshell"
+DISABLE_SCREEN_SAVER = True
+ADJUST_MOUSE_AND_SCREEN = False
+#####
+config = {
+ ### BUILDBOT
+ "buildbot_json_path": "buildprops.json",
+ "exes": {
+ 'python': '/tools/buildbot/bin/python',
+ 'virtualenv': ['/tools/buildbot/bin/python', '/tools/misc-python/virtualenv.py'],
+ },
+ ###
+ "app_name_dir": APP_NAME_DIR,
+ "installer_path": INSTALLER_PATH,
+ "binary_path": APP_NAME_DIR + "/" + BINARY_PATH,
+ "xpcshell_name": XPCSHELL_NAME,
+ "simplejson_url": "http://build.mozilla.org/talos/zips/simplejson-2.2.1.tar.gz",
+ "repos": [{
+ "repo": "http://hg.mozilla.org/build/tools",
+ "revision": "default",
+ "dest": "tools"
+ }],
+ "run_file_names": {
+ "mochitest": "runtests.py",
+ "reftest": "runreftest.py",
+ "xpcshell": "runxpcshelltests.py"
+ },
+ "minimum_tests_zip_dirs": ["bin/*", "certs/*", "modules/*", "mozbase/*"],
+ "specific_tests_zip_dirs": {
+ "mochitest": ["mochitest/*"],
+ "reftest": ["reftest/*", "jsreftest/*"],
+ "xpcshell": ["xpcshell/*"]
+ },
+ "reftest_options": [
+ "--appname=%(binary_path)s", "--utility-path=tests/bin",
+ "--extra-profile-file=tests/bin/plugins", "--symbols-path=%(symbols_path)s"
+ ],
+ "mochitest_options": [
+ "--appname=%(binary_path)s", "--utility-path=tests/bin",
+ "--extra-profile-file=tests/bin/plugins", "--symbols-path=%(symbols_path)s",
+ "--certificate-path=tests/certs", "--autorun", "--close-when-done",
+ "--console-level=INFO"
+ ],
+ "xpcshell_options": [
+ "--symbols-path=%(symbols_path)s"
+ ],
+ #local mochi suites
+ "all_mochitest_suites": {
+ "plain1": ["--total-chunks=5", "--this-chunk=1", "--chunk-by-dir=4"],
+ "plain2": ["--total-chunks=5", "--this-chunk=2", "--chunk-by-dir=4"],
+ "plain3": ["--total-chunks=5", "--this-chunk=3", "--chunk-by-dir=4"],
+ "plain4": ["--total-chunks=5", "--this-chunk=4", "--chunk-by-dir=4"],
+ "plain5": ["--total-chunks=5", "--this-chunk=5", "--chunk-by-dir=4"],
+ "chrome": ["--chrome"],
+ "browser-chrome": ["--browser-chrome"],
+ "a11y": ["--a11y"],
+ "plugins": ['--setpref=dom.ipc.plugins.enabled=false',
+ '--setpref=dom.ipc.plugins.enabled.x86_64=false',
+ '--ipcplugins']
+ },
+ #local reftests suites
+ "all_reftest_suites": {
+ "reftest": ["tests/reftest/tests/layout/reftests/reftest.list"],
+ "crashtest": ["tests/reftest/tests/testing/crashtest/crashtests.list"],
+ "jsreftest": ["--extra-profile-file=tests/jsreftest/tests/user.js", "tests/jsreftest/tests/jstests.list"],
+ },
+ "all_xpcshell_suites": {
+ "xpcshell": ["--manifest=tests/xpcshell/tests/all-test-dirs.list",
+ "application/" + APP_NAME_DIR + "/" + XPCSHELL_NAME]
+ },
+ "preflight_run_cmd_suites": [
+ # NOTE 'enabled' is only here while we have unconsolidated configs
+ {
+ "name": "disable_screen_saver",
+ "cmd": ["xset", "s", "reset"],
+ "halt_on_failure": False,
+ "architectures": ["32bit", "64bit"],
+ "enabled": DISABLE_SCREEN_SAVER
+ },
+ {
+ "name": "run mouse & screen adjustment script",
+ "cmd": [
+ # when configs are consolidated this python path will only show
+ # for windows.
+ "python", "tools/scripts/support/mouse_and_screen_resolution.py",
+ "--configuration-url",
+ "http://hg.mozilla.org/%(branch)s/raw-file/%(revision)s/" +
+ "testing/machine-configuration.json"],
+ "architectures": ["32bit"],
+ "halt_on_failure": True,
+ "enabled": ADJUST_MOUSE_AND_SCREEN
+ },
+ ],
+}
@@ -0,0 +1,97 @@
+#### OS Specifics ####
+APP_NAME_DIR = "FirefoxNightly.app/Contents/MacOS"
+BINARY_PATH = "firefox-bin"
+INSTALLER_PATH = "installer.dmg"
+XPCSHELL_NAME = 'xpcshell'
+DISABLE_SCREEN_SAVER = False
+ADJUST_MOUSE_AND_SCREEN = False
+#####
+config = {
+ ### BUILDBOT
+ "buildbot_json_path": "buildprops.json",
+ "exes": {
+ 'python': '/tools/buildbot/bin/python',
+ 'virtualenv': ['/tools/buildbot/bin/python', '/tools/misc-python/virtualenv.py'],
+ },
+ ###
+ "app_name_dir": APP_NAME_DIR,
+ "installer_path": INSTALLER_PATH,
+ "binary_path": APP_NAME_DIR + "/" + BINARY_PATH,
+ "xpcshell_name": XPCSHELL_NAME,
+ "simplejson_url": "http://build.mozilla.org/talos/zips/simplejson-2.2.1.tar.gz",
+ "repos": [{
+ "repo": "http://hg.mozilla.org/build/tools",
+ "revision": "default",
+ "dest": "tools"
+ }],
+ "run_file_names": {
+ "mochitest": "runtests.py",
+ "reftest": "runreftest.py",
+ "xpcshell": "runxpcshelltests.py"
+ },
+ "minimum_tests_zip_dirs": ["bin/*", "certs/*", "modules/*", "mozbase/*"],
+ "specific_tests_zip_dirs": {
+ "mochitest": ["mochitest/*"],
+ "reftest": ["reftest/*", "jsreftest/*"],
+ "xpcshell": ["xpcshell/*"]
+ },
+ "reftest_options": [
+ "--appname=%(binary_path)s", "--utility-path=tests/bin",
+ "--extra-profile-file=tests/bin/plugins", "--symbols-path=%(symbols_path)s"
+ ],
+ "mochitest_options": [
+ "--appname=%(binary_path)s", "--utility-path=tests/bin",
+ "--extra-profile-file=tests/bin/plugins", "--symbols-path=%(symbols_path)s",
+ "--certificate-path=tests/certs", "--autorun", "--close-when-done",
+ "--console-level=INFO"
+ ],
+ "xpcshell_options": [
+ "--symbols-path=%(symbols_path)s"
+ ],
+ #local mochi suites
+ "all_mochitest_suites": {
+ "plain1": ["--total-chunks=5", "--this-chunk=1", "--chunk-by-dir=4"],
+ "plain2": ["--total-chunks=5", "--this-chunk=2", "--chunk-by-dir=4"],
+ "plain3": ["--total-chunks=5", "--this-chunk=3", "--chunk-by-dir=4"],
+ "plain4": ["--total-chunks=5", "--this-chunk=4", "--chunk-by-dir=4"],
+ "plain5": ["--total-chunks=5", "--this-chunk=5", "--chunk-by-dir=4"],
+ "chrome": ["--chrome"],
+ "browser-chrome": ["--browser-chrome"],
+ "plugins": ['--setpref=dom.ipc.plugins.enabled=false',
+ '--setpref=dom.ipc.plugins.enabled.x86_64=false',
+ '--ipcplugins']
+ },
+ #local reftests suites
+ "all_reftest_suites": {
+ "reftest": ["tests/reftest/tests/layout/reftests/reftest.list"],
+ "crashtest": ["tests/reftest/tests/testing/crashtest/crashtests.list"],
+ "jsreftest": ["--extra-profile-file=tests/jsreftest/tests/user.js", "tests/jsreftest/tests/jstests.list"],
+ },
+ "all_xpcshell_suites": {
+ "xpcshell": ["--manifest=tests/xpcshell/tests/all-test-dirs.list",
+ "application/" + APP_NAME_DIR + "/" + XPCSHELL_NAME]
+ },
+ "preflight_run_cmd_suites": [
+ # NOTE 'enabled' is only here while we have unconsolidated configs
+ {
+ "name": "disable_screen_saver",
+ "cmd": ["xset", "s", "reset"],
+ "architectures": ["32bit", "64bit"],
+ "halt_on_failure": False,
+ "enabled": DISABLE_SCREEN_SAVER
+ },
+ {
+ "name": "run mouse & screen adjustment script",
+ "cmd": [
+ # when configs are consolidated this python path will only show
+ # for windows.
+ "python", "tools/scripts/support/mouse_and_screen_resolution.py",
+ "--configuration-url",
+ "http://hg.mozilla.org/%(branch)s/raw-file/%(revision)s/" +
+ "testing/machine-configuration.json"],
+ "architectures": ["32bit"],
+ "halt_on_failure": True,
+ "enabled": ADJUST_MOUSE_AND_SCREEN
+ },
+ ],
+}
@@ -0,0 +1,102 @@
+#### OS Specifics ####
+APP_NAME_DIR = "firefox"
+BINARY_PATH = "firefox.exe"
+INSTALLER_PATH = "installer.zip"
+XPCSHELL_NAME = 'xpcshell.exe'
+DISABLE_SCREEN_SAVER = False
+ADJUST_MOUSE_AND_SCREEN = True
+#####
+config = {
+ ### BUILDBOT
+ "buildbot_json_path": "buildprops.json",
+ "exes": {
+ 'python': 'c:/mozilla-build/python27/python',
+ 'virtualenv': ['c:/mozilla-build/python27/python', 'c:/mozilla-build/buildbotve/virtualenv.py'],
+ 'hg': 'c:/mozilla-build/hg/hg',
+ },
+ ###
+ "app_name_dir": APP_NAME_DIR,
+ "installer_path": INSTALLER_PATH,
+ "binary_path": APP_NAME_DIR + "/" + BINARY_PATH,
+ "xpcshell_name": XPCSHELL_NAME,
+ "virtualenv_path": 'c:/talos-slave/test/build/venv',
+ "virtualenv_python_dll": 'c:/mozilla-build/python27/python27.dll',
+ "simplejson_url": "http://build.mozilla.org/talos/zips/simplejson-2.2.1.tar.gz",
+ "repos": [{
+ "repo": "http://hg.mozilla.org/build/tools",
+ "revision": "default",
+ "dest": "tools"
+ }],
+ "run_file_names": {
+ "mochitest": "runtests.py",
+ "reftest": "runreftest.py",
+ "xpcshell": "runxpcshelltests.py"
+ },
+ "minimum_tests_zip_dirs": ["bin/*", "certs/*", "modules/*", "mozbase/*"],
+ "specific_tests_zip_dirs": {
+ "mochitest": ["mochitest/*"],
+ "reftest": ["reftest/*", "jsreftest/*"],
+ "xpcshell": ["xpcshell/*"]
+ },
+ "reftest_options": [
+ "--appname=%(binary_path)s", "--utility-path=tests/bin",
+ "--extra-profile-file=tests/bin/plugins", "--symbols-path=%(symbols_path)s"
+ ],
+ "mochitest_options": [
+ "--appname=%(binary_path)s", "--utility-path=tests/bin",
+ "--extra-profile-file=tests/bin/plugins", "--symbols-path=%(symbols_path)s",
+ "--certificate-path=tests/certs", "--autorun", "--close-when-done",
+ "--console-level=INFO"
+ ],
+ "xpcshell_options": [
+ "--symbols-path=%(symbols_path)s"
+ ],
+ #local mochi suites
+ "all_mochitest_suites":
+ {
+ "plain1": ["--total-chunks=5", "--this-chunk=1", "--chunk-by-dir=4"],
+ "plain2": ["--total-chunks=5", "--this-chunk=2", "--chunk-by-dir=4"],
+ "plain3": ["--total-chunks=5", "--this-chunk=3", "--chunk-by-dir=4"],
+ "plain4": ["--total-chunks=5", "--this-chunk=4", "--chunk-by-dir=4"],
+ "plain5": ["--total-chunks=5", "--this-chunk=5", "--chunk-by-dir=4"],
+ "chrome": ["--chrome"],
+ "browser-chrome": ["--browser-chrome"],
+ "a11y": ["--a11y"],
+ "plugins": ['--setpref=dom.ipc.plugins.enabled=false',
+ '--setpref=dom.ipc.plugins.enabled.x86_64=false',
+ '--ipcplugins']
+ },
+ #local reftests suites
+ "all_reftest_suites": {
+ "reftest": ["tests/reftest/tests/layout/reftests/reftest.list"],
+ "crashtest": ["tests/reftest/tests/testing/crashtest/crashtests.list"],
+ "jsreftest": ["--extra-profile-file=tests/jsreftest/tests/user.js", "tests/jsreftest/tests/jstests.list"],
+ },
+ "all_xpcshell_suites": {
+ "xpcshell": ["--manifest=tests/xpcshell/tests/all-test-dirs.list",
+ "application/" + APP_NAME_DIR + "/" + XPCSHELL_NAME]
+ },
+ "preflight_run_cmd_suites": [
+ # NOTE 'enabled' is only here while we have unconsolidated configs
+ {
+ "name": "disable_screen_saver",
+ "cmd": ["xset", "s", "reset"],
+ "architectures": ["32bit", "64bit"],
+ "halt_on_failure": False,
+ "enabled": DISABLE_SCREEN_SAVER
+ },
+ {
+ "name": "run mouse & screen adjustment script",
+ "cmd": [
+ # when configs are consolidated this python path will only show
+ # for windows.
+ "C:\\mozilla-build\\python25\\python.exe", "tools/scripts/support/mouse_and_screen_resolution.py",
+ "--configuration-url",
+ "http://hg.mozilla.org/%(branch)s/raw-file/%(revision)s/" +
+ "testing/machine-configuration.json"],
+ "architectures": ["32bit"],
+ "halt_on_failure": True,
+ "enabled": ADJUST_MOUSE_AND_SCREEN
+ },
+ ],
+}
Oops, something went wrong.

0 comments on commit 9081198

Please sign in to comment.