def __init__(self, *args, **kwargs): MozbuildObject.__init__(self, *args, **kwargs) # TODO Bug 794506 remove once mach integrates with virtualenv. build_path = os.path.join(self.topobjdir, "build") if build_path not in sys.path: sys.path.append(build_path) self.tests_dir = os.path.join(self.topobjdir, "_tests") self.mochitest_dir = os.path.join(self.tests_dir, "testing", "mochitest")
def __init__(self, *args, **kwargs): MozbuildObject.__init__(self, *args, **kwargs) # TODO Bug 794506 remove once mach integrates with virtualenv. build_path = os.path.join(self.topobjdir, 'build') if build_path not in sys.path: sys.path.append(build_path) self.tests_dir = os.path.join(self.topobjdir, '_tests') self.reftest_dir = os.path.join(self.tests_dir, 'reftest')
def __init__(self, *args, **kwargs): MozbuildObject.__init__(self, *args, **kwargs) # TODO Bug 794506 remove once mach integrates with virtualenv. build_path = os.path.join(self.topobjdir, 'build') if build_path not in sys.path: sys.path.append(build_path) self.tests_dir = os.path.join(self.topobjdir, '_tests') self.mochitest_dir = os.path.join( self.tests_dir, 'testing', 'mochitest') self.bin_dir = os.path.join(self.topobjdir, 'dist', 'bin')
def __init__(self, *args, **kwargs): MozbuildObject.__init__(self, *args, **kwargs) # TODO Bug 794506 remove once mach integrates with virtualenv. build_path = os.path.join(self.topobjdir, 'build') if build_path not in sys.path: sys.path.append(build_path) build_path = os.path.join(self.topsrcdir, 'build') if build_path not in sys.path: sys.path.append(build_path) self.tests_dir = os.path.join(self.topobjdir, '_tests') self.xpcshell_dir = os.path.join(self.tests_dir, 'xpcshell') self.bin_dir = os.path.join(self.distdir, 'bin')
def __init__(self, *args, **kwargs): MozbuildObject.__init__(self, *args, **kwargs) # If installing tests is going to result in re-generating the build # backend, we need to do this here, so that the updated contents of # all-tests.pkl make it to the set of tests to run. self._run_make( target='backend.TestManifestBackend', pass_thru=True, print_directory=False, filename=mozpath.join(self.topsrcdir, 'build', 'rebuild-backend.mk'), append_env={ b'PYTHON': self.virtualenv_manager.python_path, b'BUILD_BACKEND_FILES': b'backend.TestManifestBackend', b'BACKEND_GENERATION_SCRIPT': mozpath.join(self.topsrcdir, 'build', 'gen_test_backend.py'), }, ) self._tests = TestMetadata(os.path.join(self.topobjdir, 'all-tests.pkl'), test_defaults=os.path.join( self.topobjdir, 'test-defaults.pkl')) self._test_rewrites = { 'a11y': os.path.join(self.topobjdir, '_tests', 'testing', 'mochitest', 'a11y'), 'browser-chrome': os.path.join(self.topobjdir, '_tests', 'testing', 'mochitest', 'browser'), 'chrome': os.path.join(self.topobjdir, '_tests', 'testing', 'mochitest', 'chrome'), 'mochitest': os.path.join(self.topobjdir, '_tests', 'testing', 'mochitest', 'tests'), 'web-platform-tests': os.path.join(self.topobjdir, '_tests', 'testing', 'web-platform'), 'xpcshell': os.path.join(self.topobjdir, '_tests', 'xpcshell'), } self._vcs = None self.verbose = False
def __init__(self, *args, **kwargs): MozbuildObject.__init__(self, *args, **kwargs) # If installing tests is going to result in re-generating the build # backend, we need to do this here, so that the updated contents of # all-tests.pkl make it to the set of tests to run. self._run_make( target='backend.TestManifestBackend', pass_thru=True, print_directory=False, filename=mozpath.join(self.topsrcdir, 'build', 'rebuild-backend.mk'), append_env={ b'PYTHON': self.virtualenv_manager.python_path, b'BUILD_BACKEND_FILES': b'backend.TestManifestBackend', b'BACKEND_GENERATION_SCRIPT': mozpath.join( self.topsrcdir, 'build', 'gen_test_backend.py'), }, ) self._tests = TestMetadata(os.path.join(self.topobjdir, 'all-tests.pkl'), test_defaults=os.path.join(self.topobjdir, 'test-defaults.pkl')) self._test_rewrites = { 'a11y': os.path.join(self.topobjdir, '_tests', 'testing', 'mochitest', 'a11y'), 'browser-chrome': os.path.join(self.topobjdir, '_tests', 'testing', 'mochitest', 'browser'), 'chrome': os.path.join(self.topobjdir, '_tests', 'testing', 'mochitest', 'chrome'), 'mochitest': os.path.join(self.topobjdir, '_tests', 'testing', 'mochitest', 'tests'), 'web-platform-tests': os.path.join(self.topobjdir, '_tests', 'testing', 'web-platform'), 'xpcshell': os.path.join(self.topobjdir, '_tests', 'xpcshell'), } self._vcs = None self.verbose = False
def __init__(self, *args, **kwargs): MozbuildObject.__init__(self, *args, **kwargs) # If installing tests is going to result in re-generating the build # backend, we need to do this here, so that the updated contents of # all-tests.pkl make it to the set of tests to run. if self.backend_out_of_date( mozpath.join(self.topobjdir, 'backend.TestManifestBackend')): print("Test configuration changed. Regenerating backend.") from mozbuild.gen_test_backend import gen_test_backend gen_test_backend() self._tests = TestMetadata(os.path.join(self.topobjdir, 'all-tests.pkl'), self.topsrcdir, test_defaults=os.path.join( self.topobjdir, 'test-defaults.pkl')) self._test_rewrites = { 'a11y': os.path.join(self.topobjdir, '_tests', 'testing', 'mochitest', 'a11y'), 'browser-chrome': os.path.join(self.topobjdir, '_tests', 'testing', 'mochitest', 'browser'), 'chrome': os.path.join(self.topobjdir, '_tests', 'testing', 'mochitest', 'chrome'), 'mochitest': os.path.join(self.topobjdir, '_tests', 'testing', 'mochitest', 'tests'), 'xpcshell': os.path.join(self.topobjdir, '_tests', 'xpcshell'), } self._vcs = None self.verbose = False
def __init__(self, *args, **kwargs): MozbuildObject.__init__(self, *args, **kwargs) self.test_packages_url = self._test_packages_url() self.installer_url = self._installer_url() desktop_unittest_config = [ "--config-file", lambda: self.config_path("unittests", "%s_unittest.py" % mozinfo. info["os"]), "--config-file", lambda: self.config_path("developer_config.py"), ] self.config = { "__defaults__": { "config": [ "--download-symbols", "ondemand", "--installer-url", self.installer_url, "--test-packages-url", self.test_packages_url, ] }, "mochitest-valgrind": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--mochitest-suite", "valgrind-plain"], }, "mochitest": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--mochitest-suite", "plain"], }, "mochitest-chrome": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--mochitest-suite", "chrome"], }, "mochitest-browser-chrome": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--mochitest-suite", "browser-chrome"], }, "mochitest-devtools-chrome": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--mochitest-suite", "mochitest-devtools-chrome"], }, "mochitest-remote": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--mochitest-suite", "mochitest-remote"], }, "crashtest": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--reftest-suite", "crashtest"], }, "jsreftest": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--reftest-suite", "jsreftest"], }, "reftest": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--reftest-suite", "reftest"], }, "reftest-no-accel": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--reftest-suite", "reftest-no-accel"], }, "cppunittest": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--cppunittest-suite", "cppunittest"], }, "xpcshell": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--xpcshell-suite", "xpcshell"], }, "xpcshell-addons": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--xpcshell-suite", "xpcshell-addons"], }, "jittest": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--jittest-suite", "jittest"], }, "marionette": { "script": "marionette.py", "config": [ "--config-file", self.config_path("marionette", "test_config.py"), ], }, "web-platform-tests": { "script": "web_platform_tests.py", "config": [ "--config-file", self.config_path("web_platform_tests", self.wpt_config), ], }, }
def __init__(self, *args, **kwargs): MozbuildObject.__init__(self, *args, **kwargs) self.test_packages_url = self._test_packages_url() self.installer_url = self._installer_url() desktop_unittest_config = [ "--config-file", lambda: self.config_path("unittests", "%s_unittest.py" % mozinfo.info['os']), "--config-file", lambda: self.config_path("developer_config.py")] self.config = { "__defaults__": { "config": ["--no-read-buildbot-config", "--download-symbols", "ondemand", "--installer-url", self.installer_url, "--test-packages-url", self.test_packages_url] }, "mochitest-valgrind": { "script": "desktop_unittest.py", "config": desktop_unittest_config + [ "--mochitest-suite", "valgrind-plain"] }, "mochitest": { "script": "desktop_unittest.py", "config": desktop_unittest_config + [ "--mochitest-suite", "plain"] }, "mochitest-chrome": { "script": "desktop_unittest.py", "config": desktop_unittest_config + [ "--mochitest-suite", "chrome"] }, "mochitest-browser-chrome": { "script": "desktop_unittest.py", "config": desktop_unittest_config + [ "--mochitest-suite", "browser-chrome"] }, "mochitest-devtools-chrome": { "script": "desktop_unittest.py", "config": desktop_unittest_config + [ "--mochitest-suite", "mochitest-devtools-chrome"] }, "reftest": { "script": "desktop_unittest.py", "config": desktop_unittest_config + [ "--reftest-suite", "reftest"] }, "crashtest": { "script": "desktop_unittest.py", "config": desktop_unittest_config + [ "--reftest-suite", "crashtest"] }, "jsreftest": { "script": "desktop_unittest.py", "config": desktop_unittest_config + [ "--reftest-suite", "jsreftest"] }, "reftest-ipc": { "script": "desktop_unittest.py", "config": desktop_unittest_config + [ "--reftest-suite", "reftest-ipc"] }, "reftest-no-accel": { "script": "desktop_unittest.py", "config": desktop_unittest_config + [ "--reftest-suite", "reftest-no-accel"] }, "crashtest-ipc": { "script": "desktop_unittest.py", "config": desktop_unittest_config + [ "--reftest-suite", "crashtest-ipc"] }, "cppunittest": { "script": "desktop_unittest.py", "config": desktop_unittest_config + [ "--cppunittest-suite", "cppunittest"] }, "webapprt-chrome": { "script": "desktop_unittest.py", "config": desktop_unittest_config + [ "--webapprt-suite", "chrome"] }, "webapprt-content": { "script": "desktop_unittest.py", "config": desktop_unittest_config + [ "--webapprt-suite", "content"] }, "xpcshell": { "script": "desktop_unittest.py", "config": desktop_unittest_config + [ "--xpcshell-suite", "xpcshell"] }, "xpcshell-addons": { "script": "desktop_unittest.py", "config": desktop_unittest_config + [ "--xpcshell-suite", "xpcshell-addons"] }, "jittest": { "script": "desktop_unittest.py", "config": desktop_unittest_config + [ "--jittest-suite", "jittest"] }, "mozbase": { "script": "desktop_unittest.py", "config": desktop_unittest_config + [ "--mozbase-suite", "mozbase"] }, "marionette": { "script": "marionette.py", "config": ["--config-file", self.config_path("marionette", "test_config.py")] }, "web-platform-tests": { "script": "web_platform_tests.py", "config": ["--config-file", self.config_path("web_platform_tests", self.wpt_config)] }, }
def __init__(self, *args, **kwargs): MozbuildObject.__init__(self, *args, **kwargs) self.test_packages_url = os.path.join(self.topobjdir, "dist", "test_packages.json") self.installer_url = self._installer_url() desktop_unittest_config = [ "--config-file", lambda: self.config_path( "unittests", "%s_unittest.py" % mozinfo.info['os']), "--config-file", lambda: self.config_path("developer_config.py") ] self.config = { "__defaults__": { "config": [ "--no-read-buildbot-config", "--download-symbols", "ondemand", "--installer-url", self.installer_url, "--test-packages-url", self.test_packages_url ] }, "mochitest": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--mochitest-suite", "plain"] }, "mochitest-chrome": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--mochitest-suite", "chrome"] }, "mochitest-browser-chrome": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--mochitest-suite", "browser-chrome"] }, "mochitest-devtools-chrome": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--mochitest-suite", "mochitest-devtools-chrome"] }, "reftest": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--reftest-suite", "reftest"] }, "crashtest": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--reftest-suite", "crashtest"] }, "jsreftest": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--reftest-suite", "jsreftest"] }, "reftest-ipc": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--reftest-suite", "reftest-ipc"] }, "reftest-no-accel": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--reftest-suite", "reftest-no-accel"] }, "crashtest-ipc": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--reftest-suite", "crashtest-ipc"] }, "cppunittest": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--cppunittest-suite", "cppunittest"] }, "webapprt-chrome": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--webapprt-suite", "chrome"] }, "webapprt-content": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--webapprt-suite", "content"] }, "xpcshell": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--xpcshell-suite", "xpcshell"] }, "xpcshell-addons": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--xpcshell-suite", "xpcshell-addons"] }, "jittest": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--jittest-suite", "jittest"] }, "mozbase": { "script": "desktop_unittest.py", "config": desktop_unittest_config + ["--mozbase-suite", "mozbase"] }, "marionette": { "script": "marionette.py", "config": [ "--config-file", self.config_path("marionette", "test_config.py") ] }, "web-platform-tests": { "script": "web_platform_tests.py", "config": [ "--config-file", self.config_path("web_platform_tests", self.wpt_config) ] }, }