Bug 1892041 - Part 3: Update test exclusions. r=spidermonkey-reviewers,dminor
[gecko.git] / moz.build
blob9db27fd056f9a1ae0b70ca0c6730574946989edf
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 with Files("AUTHORS"):
8     BUG_COMPONENT = ("mozilla.org", "Licensing")
10 with Files("LICENSE"):
11     BUG_COMPONENT = ("mozilla.org", "Licensing")
13 with Files("mots.yaml"):
14     BUG_COMPONENT = ("Conduit", "mots")
16 with Files("aclocal.m4"):
17     BUG_COMPONENT = ("Firefox Build System", "General")
19 with Files("Cargo.*"):
20     BUG_COMPONENT = ("Firefox Build System", "General")
22 with Files("client.*"):
23     BUG_COMPONENT = ("Firefox Build System", "General")
25 with Files("CLOBBER"):
26     BUG_COMPONENT = ("Firefox Build System", "General")
28 with Files("*configure*"):
29     BUG_COMPONENT = ("Firefox Build System", "General")
31 with Files("docs/**"):
32     BUG_COMPONENT = ("Developer Infrastructure", "Source Documentation")
33     SCHEDULES.exclusive = ["docs"]
35 with Files("mach*"):
36     BUG_COMPONENT = ("Firefox Build System", "Mach Core")
38 with Files("pyproject.toml"):
39     BUG_COMPONENT = ("Developer Infrastructure", "Lint and Formatting")
41 with Files("*moz*"):
42     BUG_COMPONENT = ("Firefox Build System", "General")
44 with Files("GNUmakefile"):
45     BUG_COMPONENT = ("Firefox Build System", "General")
47 with Files("*gradle*"):
48     BUG_COMPONENT = ("GeckoView", "General")
49     SCHEDULES.exclusive = ["android"]
51 with Files("*.json"):
52     BUG_COMPONENT = ("Firefox Build System", "General")
54 with Files("**/l10n.toml"):
55     BUG_COMPONENT = ("Core", "Localization")
56     FINAL = True
58 with Files("README.txt"):
59     BUG_COMPONENT = ("Core", "General")
61 with Files("nsprpub/**"):
62     BUG_COMPONENT = ("NSPR", "NSPR")
64 with Files("**/Makefile.in"):
65     BUG_COMPONENT = ("Firefox Build System", "General")
66     FINAL = True
68 with Files("**/*.rst"):
69     SCHEDULES.inclusive += ["docs"]
71 with Files("**/*.md"):
72     SCHEDULES.inclusive += ["docs"]
74 with Files("**/*.rs"):
75     SCHEDULES.inclusive += ["rusttests"]
77 with Files("**/reftest.list"):
78     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
79     SCHEDULES.exclusive = ["reftest"]
81 with Files("**/reftest-qr.list"):
82     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
83     SCHEDULES.exclusive = ["reftest"]
85 with Files("**/crashtest*.list"):
86     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
87     SCHEDULES.exclusive = ["crashtest"]
89 with Files("**/a11y.toml"):
90     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
91     SCHEDULES.exclusive = ["mochitest-a11y"]
93 with Files("**/mochitest.toml"):
94     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
95     SCHEDULES.exclusive = ["mochitest-plain"]
97 with Files("**/browser.toml"):
98     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
99     SCHEDULES.exclusive = ["mochitest-browser-chrome"]
101 with Files("**/test*/**browser_*"):
102     SCHEDULES.exclusive = ["mochitest-browser-chrome"]
104 with Files("**/chrome.toml"):
105     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
106     SCHEDULES.exclusive = ["mochitest-chrome"]
108 with Files("**/xpcshell.toml"):
109     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
110     SCHEDULES.exclusive = ["xpcshell"]
112 with Files("**/reftest*/**"):
113     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
114     SCHEDULES.exclusive = ["reftest"]
116 with Files("**/crashtest*/**"):
117     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
118     SCHEDULES.exclusive = ["crashtest"]
120 with Files("**/mochitest*/**"):
121     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
122     SCHEDULES.exclusive = ["mochitest"]
124 with Files("**/xpcshell/**"):
125     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
126     SCHEDULES.exclusive = ["xpcshell"]
128 with Files("**/tests/**"):
129     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
131 with Files("**/test/**"):
132     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
134 with Files("**/unit/**"):
135     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
137 with Files("**/browser/tools/mozscreenshots/**"):
138     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
140 with Files("**/devtools/shared/test-helpers/**"):
141     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
143 CONFIGURE_SUBST_FILES += [
144     "config/autoconf.mk",
145     "config/emptyvars.mk",
148 if CONFIG["ENABLE_CLANG_PLUGIN"]:
149     DIRS += ["build/clang-plugin"]
151 DIRS += [
152     "build",
153     "config",
154     "python",
155     "testing",
156     "third_party/python",
159 if not CONFIG["JS_STANDALONE"]:
160     DIRS += ["taskcluster"]
162 if not CONFIG["JS_STANDALONE"] or not CONFIG["MOZ_BUILD_APP"]:
163     CONFIGURE_DEFINE_FILES += [
164         "mozilla-config.h",
165     ]
166     EXPORTS += [
167         "!buildid.h",
168         "!mozilla-config.h",
169         "!source-repo.h",
170     ]
172     GENERATED_FILES += [
173         "buildid.h",
174         "source-repo.h",
175     ]
177     GENERATED_FILES["buildid.h"].script = "build/variables.py:buildid_header"
178     GENERATED_FILES["source-repo.h"].script = "build/variables.py:source_repo_header"
180 if CONFIG["MOZ_BUILD_APP"]:
181     # Bring in the configuration for the configured application.
182     include("/" + CONFIG["MOZ_BUILD_APP"] + "/app.mozbuild")
183 else:
184     include("/toolkit/toolkit.mozbuild")
186 OBJDIR_PP_FILES[".cargo"] += [
187     CONFIG["MOZ_OVERRIDE_CARGO_CONFIG"] or ".cargo/config.toml.in"
190 DEFINES["top_srcdir"] = TOPSRCDIR
192 SPHINX_TREES["contributing"] = "docs/contributing"
194 SPHINX_TREES["code-quality"] = "docs/code-quality"
196 SPHINX_TREES["testing-rust-code"] = "docs/testing-rust-code"
198 SPHINX_TREES["writing-rust-code"] = "docs/writing-rust-code"
200 SPHINX_TREES["bug-mgmt"] = "docs/bug-mgmt"
202 SPHINX_TREES["glossary"] = "docs/glossary"
204 SPHINX_TREES["overview"] = "docs/overview"
206 SPHINX_TREES["setup"] = "docs/setup"
208 SPHINX_TREES["crash-reporting"] = "docs/crash-reporting"
210 SPHINX_TREES["performance"] = "docs/performance"
212 SPHINX_TREES["metrics"] = "docs/metrics"
214 SPHINX_TREES["gtest"] = "docs/gtest"
216 SPHINX_TREES["nspr"] = "docs/nspr"
218 SPHINX_TREES["mots"] = "docs/mots"
220 SPHINX_TREES["update-infrastructure"] = "docs/update-infrastructure"
222 include("build/templates.mozbuild")