b2g_emulator_unittest module

class b2g_emulator_unittest.B2GEmulatorTest(require_config_file=False)[source]

Bases: mozharness.mozilla.testing.testbase.TestingMixin, mozharness.base.vcs.vcsbase.VCSMixin, mozharness.base.script.BaseScript, mozharness.mozilla.blob_upload.BlobUploadMixin

config_options = [[['--type'], {'action': 'store', 'dest': 'test_type', 'default': 'browser', 'help': 'The type of tests to run'}], [['--busybox-url'], {'action': 'store', 'dest': 'busybox_url', 'default': None, 'help': 'URL to the busybox binary'}], [['--emulator-url'], {'action': 'store', 'dest': 'emulator_url', 'default': None, 'help': 'URL to the emulator zip'}], [['--xre-url'], {'action': 'store', 'dest': 'xre_url', 'default': None, 'help': 'URL to the desktop xre zip'}], [['--gecko-url'], {'action': 'store', 'dest': 'gecko_url', 'default': None, 'help': 'URL to the gecko build injected into the emulator'}], [['--test-manifest'], {'action': 'store', 'dest': 'test_manifest', 'default': None, 'help': 'Path to test manifest to run'}], [['--test-suite'], {'action': 'store', 'dest': 'test_suite', 'type': 'choice', 'help': 'Which test suite to run', 'choices': ('jsreftest', 'reftest', 'mochitest', 'mochitest-chrome', 'xpcshell', 'crashtest', 'cppunittest')}], [['--adb-path'], {'action': 'store', 'dest': 'adb_path', 'default': None, 'help': 'Path to adb'}], [['--total-chunks'], {'action': 'store', 'dest': 'total_chunks', 'help': 'Number of total chunks'}], [['--this-chunk'], {'action': 'store', 'dest': 'this_chunk', 'help': 'Number of this chunk'}], [['--test-path'], {'action': 'store', 'dest': 'test_path', 'help': 'Path of tests to run'}], [['--installer-url'], {'action': 'store', 'dest': 'installer_url', 'default': None, 'help': 'URL to the installer to install'}], [['--installer-path'], {'action': 'store', 'dest': 'installer_path', 'default': None, 'help': 'Path to the installer to install. This is set automatically if run with --download-and-extract.'}], [['--binary-path'], {'action': 'store', 'dest': 'binary_path', 'default': None, 'help': 'Path to installed binary. This is set automatically if run with --install.'}], [['--exe-suffix'], {'action': 'store', 'dest': 'exe_suffix', 'default': None, 'help': 'Executable suffix for binaries on this platform'}], [['--test-url'], {'action': 'store', 'dest': 'test_url', 'default': None, 'help': 'URL to the zip file containing the actual tests'}], [['--test-packages-url'], {'action': 'store', 'dest': 'test_packages_url', 'default': None, 'help': 'URL to a json file describing which tests archives to download'}], [['--jsshell-url'], {'action': 'store', 'dest': 'jsshell_url', 'default': None, 'help': 'URL to the jsshell to install'}], [['--download-symbols'], {'action': 'store', 'dest': 'download_symbols', 'type': 'choice', 'help': 'Download and extract crash reporter symbols.', 'choices': ['ondemand', 'true']}], [['--venv-path', '--virtualenv-path'], {'action': 'store', 'dest': 'virtualenv_path', 'default': 'venv', 'help': 'Specify the path to the virtualenv top level directory'}], [['--virtualenv'], {'action': 'store', 'dest': 'virtualenv', 'help': 'Specify the virtualenv executable to use'}], [['--find-links'], {'action': 'extend', 'dest': 'find_links', 'help': 'URL to look for packages at'}], [['--pip-index'], {'action': 'store_true', 'default': True, 'dest': 'pip_index', 'help': 'Use pip indexes (default)'}], [['--no-pip-index'], {'action': 'store_false', 'dest': 'pip_index', 'help': "Don't use pip indexes"}], [['--blob-upload-branch'], {'dest': 'blob_upload_branch', 'help': "Branch for blob server's metadata"}], [['--blob-upload-server'], {'dest': 'blob_upload_servers', 'action': 'extend', 'help': "Blob servers's location"}]]
error_list = [{'substr': 'FAILED (errors=', 'level': 'error'}, {'substr': 'Could not successfully complete transport of message to Gecko, socket closed', 'level': 'error'}, {'substr': 'Could not communicate with Marionette server. Is the Gecko process still running', 'level': 'error'}, {'substr': 'Connection to Marionette server is lost. Check gecko', 'level': 'error'}, {'substr': 'Timeout waiting for marionette on port', 'level': 'error'}, {'regex': <_sre.SRE_Pattern object at 0x3363380>, 'level': 'error'}]

Run the tests

test_suites = ('jsreftest', 'reftest', 'mochitest', 'mochitest-chrome', 'xpcshell', 'crashtest', 'cppunittest')