summaryrefslogtreecommitdiffstats
path: root/testing/mochitest/moz.build
blob: 0690cd89b5b4c4e27a2137247fab2663a96f0721 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DIRS += [
    "manifests",
    "tests",
    "ssltunnel",
    "BrowserTestUtils",
]

XPI_NAME = "mochijar"

USE_EXTENSION_MANIFEST = True

FINAL_TARGET_FILES += [
    "api.js",
    "manifest.json",
    "schema.json",
]

FINAL_TARGET_FILES.content += [
    "browser-harness.xhtml",
    "browser-test.js",
    "chrome-harness.js",
    "chunkifyTests.js",
    "harness.xhtml",
    "ignorePrefs.json",
    "manifestLibrary.js",
    "mochitest-e10s-utils.js",
    "mochitestListingsUtils.js",
    "redirect.html",
    "server.js",
    "shutdown-leaks-collector.js",
    "ShutdownLeaksCollector.sys.mjs",
]

FINAL_TARGET_FILES.content.dynamic += [
    "dynamic/getMyDirectory.sjs",
]

FINAL_TARGET_FILES.content.static += [
    "static/harness.css",
]

FINAL_TARGET_FILES.content.tests.SimpleTest += [
    "../../docshell/test/chrome/docshell_helpers.js",
    "../modules/StructuredLog.sys.mjs",
    "tests/SimpleTest/AccessibilityUtils.js",
    "tests/SimpleTest/EventUtils.js",
    "tests/SimpleTest/ExtensionTestUtils.js",
    "tests/SimpleTest/iframe-between-tests.html",
    "tests/SimpleTest/LogController.js",
    "tests/SimpleTest/MemoryStats.js",
    "tests/SimpleTest/MockObjects.js",
    "tests/SimpleTest/MozillaLogger.js",
    "tests/SimpleTest/NativeKeyCodes.js",
    "tests/SimpleTest/paint_listener.js",
    "tests/SimpleTest/setup.js",
    "tests/SimpleTest/SimpleTest.js",
    "tests/SimpleTest/test.css",
    "tests/SimpleTest/TestRunner.js",
    "tests/SimpleTest/WindowSnapshot.js",
    "tests/SimpleTest/WorkerHandler.js",
    "tests/SimpleTest/WorkerSimpleTest.js",
]

FINAL_TARGET_FILES.content.tests.BrowserTestUtils += [
    "BrowserTestUtils/content/content-about-page-utils.js",
    "BrowserTestUtils/content/content-task.js",
]

MOCHITEST_MANIFESTS += [
    "baselinecoverage/plain/mochitest.toml",
    "tests/MochiKit-1.4.2/tests/mochitest.toml",
]

MOCHITEST_CHROME_MANIFESTS += [
    "baselinecoverage/chrome/chrome.toml",
    "chrome/chrome.toml",
]

BROWSER_CHROME_MANIFESTS += ["baselinecoverage/browser_chrome/browser.toml"]

TEST_HARNESS_FILES.testing.mochitest += [
    "/build/pgo/server-locations.txt",
    "/build/valgrind/cross-architecture.sup",
    "/build/valgrind/i386-pc-linux-gnu.sup",
    "/build/valgrind/x86_64-pc-linux-gnu.sup",
    "/netwerk/test/httpserver/httpd.sys.mjs",
    "bisection.py",
    "browser-harness.xhtml",
    "browser-test.js",
    "chrome-harness.js",
    "chunkifyTests.js",
    "document-builder.sjs",
    "DoHServer/doh_server.js",
    "favicon.ico",
    "harness.xhtml",
    "Http2Server/http2_server.js",
    "ignorePrefs.json",
    "leaks.py",
    "mach_test_package_commands.py",
    "manifest.webapp",
    "manifestLibrary.js",
    "mochitest_options.py",
    "mochitestListingsUtils.js",
    "pywebsocket_wrapper.py",
    "redirect.html",
    "runjunit.py",
    "runtests.py",
    "runtestsremote.py",
    "server.js",
    "start_desktop.js",
]

TEST_HARNESS_FILES.testing.mochitest.DoHServer += [
    "DoHServer/doh_server.js",
    "DoHServer/http2-cert.key.pem",
    "DoHServer/http2-cert.pem",
]

TEST_HARNESS_FILES.testing.mochitest.Http2Server += [
    "Http2Server/http2_server.js",
    "Http2Server/mochitest-cert.key.pem",
    "Http2Server/mochitest-cert.pem",
]

TEST_HARNESS_FILES.testing.mochitest.embed += [
    "embed/Xm5i5kbIXzc",
    "embed/Xm5i5kbIXzc^headers^",
]

TEST_HARNESS_FILES.testing.mochitest.pywebsocket3.mod_pywebsocket += [
    "pywebsocket3/mod_pywebsocket/__init__.py",
    "pywebsocket3/mod_pywebsocket/_stream_exceptions.py",
    "pywebsocket3/mod_pywebsocket/common.py",
    "pywebsocket3/mod_pywebsocket/dispatch.py",
    "pywebsocket3/mod_pywebsocket/extensions.py",
    "pywebsocket3/mod_pywebsocket/fast_masking.i",
    "pywebsocket3/mod_pywebsocket/http_header_util.py",
    "pywebsocket3/mod_pywebsocket/memorizingfile.py",
    "pywebsocket3/mod_pywebsocket/msgutil.py",
    "pywebsocket3/mod_pywebsocket/request_handler.py",
    "pywebsocket3/mod_pywebsocket/server_util.py",
    "pywebsocket3/mod_pywebsocket/standalone.py",
    "pywebsocket3/mod_pywebsocket/stream.py",
    "pywebsocket3/mod_pywebsocket/util.py",
    "pywebsocket3/mod_pywebsocket/websocket_server.py",
]

TEST_HARNESS_FILES.testing.mochitest.pywebsocket3.mod_pywebsocket.handshake += [
    "pywebsocket3/mod_pywebsocket/handshake/__init__.py",
    "pywebsocket3/mod_pywebsocket/handshake/base.py",
    "pywebsocket3/mod_pywebsocket/handshake/hybi.py",
]

TEST_HARNESS_FILES.testing.mochitest.dynamic += [
    "dynamic/getMyDirectory.sjs",
]

TEST_HARNESS_FILES.testing.mochitest.static += [
    "static/harness.css",
]

TEST_HARNESS_FILES.testing.mochitest.MochiKit += [
    "MochiKit/__package__.js",
    "MochiKit/Async.js",
    "MochiKit/Base.js",
    "MochiKit/Color.js",
    "MochiKit/Controls.js",
    "MochiKit/DateTime.js",
    "MochiKit/DOM.js",
    "MochiKit/DragAndDrop.js",
    "MochiKit/Format.js",
    "MochiKit/Iter.js",
    "MochiKit/Logging.js",
    "MochiKit/LoggingPane.js",
    "MochiKit/MochiKit.js",
    "MochiKit/MockDOM.js",
    "MochiKit/New.js",
    "MochiKit/Signal.js",
    "MochiKit/Sortable.js",
    "MochiKit/Style.js",
    "MochiKit/Test.js",
    "MochiKit/Visual.js",
]

TEST_HARNESS_FILES.testing.mochitest.tests.testing.mochitest.tests[
    "MochiKit-1.4.2"
].MochiKit += [
    "tests/MochiKit-1.4.2/MochiKit/Async.js",
    "tests/MochiKit-1.4.2/MochiKit/Base.js",
    "tests/MochiKit-1.4.2/MochiKit/Color.js",
    "tests/MochiKit-1.4.2/MochiKit/DateTime.js",
    "tests/MochiKit-1.4.2/MochiKit/DOM.js",
    "tests/MochiKit-1.4.2/MochiKit/DragAndDrop.js",
    "tests/MochiKit-1.4.2/MochiKit/Format.js",
    "tests/MochiKit-1.4.2/MochiKit/Iter.js",
    "tests/MochiKit-1.4.2/MochiKit/Logging.js",
    "tests/MochiKit-1.4.2/MochiKit/LoggingPane.js",
    "tests/MochiKit-1.4.2/MochiKit/MochiKit.js",
    "tests/MochiKit-1.4.2/MochiKit/MockDOM.js",
    "tests/MochiKit-1.4.2/MochiKit/Position.js",
    "tests/MochiKit-1.4.2/MochiKit/Selector.js",
    "tests/MochiKit-1.4.2/MochiKit/Signal.js",
    "tests/MochiKit-1.4.2/MochiKit/Sortable.js",
    "tests/MochiKit-1.4.2/MochiKit/Style.js",
    "tests/MochiKit-1.4.2/MochiKit/Test.js",
    "tests/MochiKit-1.4.2/MochiKit/Visual.js",
]

TEST_HARNESS_FILES.testing.mochitest.iceserver += [
    "/testing/tools/iceserver/iceserver.py",
]

TEST_HARNESS_FILES.testing.mochitest.websocketprocessbridge += [
    "/testing/tools/websocketprocessbridge/websocketprocessbridge.py",
    "/testing/tools/websocketprocessbridge/websocketprocessbridge_requirements_3.txt",
]

TEST_HARNESS_FILES.testing.mochitest.DoHServer.dns_packet += [
    "../xpcshell/dns-packet/classes.js",
    "../xpcshell/dns-packet/index.js",
    "../xpcshell/dns-packet/opcodes.js",
    "../xpcshell/dns-packet/optioncodes.js",
    "../xpcshell/dns-packet/package.json",
    "../xpcshell/dns-packet/rcodes.js",
    "../xpcshell/dns-packet/test.js",
    "../xpcshell/dns-packet/types.js",
]

TEST_HARNESS_FILES.testing.mochitest.Http2Server.node_ws += [
    "../xpcshell/node-ws/browser.js",
    "../xpcshell/node-ws/index.js",
    "../xpcshell/node-ws/package.json",
    "../xpcshell/node-ws/wrapper.mjs",
]

TEST_HARNESS_FILES.testing.mochitest.Http2Server.node_ws.lib += [
    "../xpcshell/node-ws/lib/buffer-util.js",
    "../xpcshell/node-ws/lib/constants.js",
    "../xpcshell/node-ws/lib/event-target.js",
    "../xpcshell/node-ws/lib/extension.js",
    "../xpcshell/node-ws/lib/limiter.js",
    "../xpcshell/node-ws/lib/permessage-deflate.js",
    "../xpcshell/node-ws/lib/receiver.js",
    "../xpcshell/node-ws/lib/sender.js",
    "../xpcshell/node-ws/lib/stream.js",
    "../xpcshell/node-ws/lib/subprotocol.js",
    "../xpcshell/node-ws/lib/validation.js",
    "../xpcshell/node-ws/lib/websocket-server.js",
    "../xpcshell/node-ws/lib/websocket.js",
]

TEST_HARNESS_FILES.testing.mochitest.DoHServer.node_ip += [
    "../xpcshell/node_ip/package.json",
]

TEST_HARNESS_FILES.testing.mochitest.DoHServer.node_ip.lib += [
    "../xpcshell/node_ip/lib/ip.js",
]

with Files("**"):
    BUG_COMPONENT = ("Testing", "Mochitest")
    SCHEDULES.exclusive = ["mochitest"]

with Files("*remote*"):
    BUG_COMPONENT = ("GeckoView", "General")