gecko-dev/testing/web-platform/moz.build
James Graham 4480587bb8 Bug 1294820 - Add support for running wpt from one-click loaner mach environment, r=ahal
Allow running |mach wpt| on one click loaners in order to run
web-platform-tests tests.

This implementation is just like the one for other testsuites using
thee packaged tests rather than the checkout that we get with wpt, at
least on Linux. That's also where the tests run from so it seems
reasonable for now. Moving to the checkout in the future could remove
some of the logic here by using a fake mozbuild environment so that
the testsuite itself doesn't have to implement anything much.

MozReview-Commit-ID: CaewrdjJ2ef

--HG--
extra : rebase_source : 491b8014d48f06ff5bd41b28cc985608981fbdf4
2017-06-19 19:20:41 +01:00

229 lines
6.4 KiB
Python

# -*- 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/.
WEB_PLATFORM_TESTS_MANIFESTS += [
('meta/MANIFEST.json', 'tests/'),
('mozilla/meta/MANIFEST.json', 'mozilla/tests/')
]
TEST_HARNESS_FILES['web-platform'] += [
'mach_commands_base.py',
'mach_test_package_commands.py',
'outbound/**',
'runtests.py',
'wptrunner.ini'
]
TEST_HARNESS_FILES['web-platform'].certs = [
'certs/cacert.pem',
'certs/web-platform.test.key',
'certs/web-platform.test.pem',
]
with Files("update/**"):
BUG_COMPONENT = ("Testing", "web-platform-tests")
with Files("certs/**"):
BUG_COMPONENT = ("Testing", "web-platform-tests")
with Files("mach*"):
BUG_COMPONENT = ("Testing", "web-platform-tests")
with Files("*.py"):
BUG_COMPONENT = ("Testing", "web-platform-tests")
with Files("tests/media/**"):
BUG_COMPONENT = ("Core", "Audio/Video: Playback")
with Files("tests/media-source/**"):
BUG_COMPONENT = ("Core", "Audio/Video: Playback")
with Files("tests/mediacapture-record/**"):
BUG_COMPONENT = ("Core", "Audio/Video: Recording")
with Files("tests/mediacapture-streams/**"):
BUG_COMPONENT = ("Core", "Audio/Video: MediaStreamGraph")
with Files("tests/microdata/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("tests/mixed-content/**"):
BUG_COMPONENT = ("Core", "DOM: Security")
with Files("tests/navigation-timing/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("tests/notifications/**"):
BUG_COMPONENT = ("Toolkit", "Notifications and Alerts")
with Files("tests/offscreen-canvas/**"):
BUG_COMPONENT = ("Core", "Canvas: 2D")
# No tests are run here
with Files("tests/old-tests/submission/Infraware/Session_History/**"):
BUG_COMPONENT = ("Core", "Document Navigation")
with Files("tests/old-tests/submission/Infraware/Forms/**"):
BUG_COMPONENT = ("Core", "DOM: Core & HTML")
with Files("tests/old-tests/submission/Opera/**"):
BUG_COMPONENT = ("Core", "DOM: Core & HTML")
# No tests are run here
with Files("tests/old-tests/submission/Microsoft/dragdrop/**"):
BUG_COMPONENT = ("Core", "Drag & Drop")
# No tests are run here
with Files("tests/old-tests/submission/Microsoft/foreigncontent/**"):
BUG_COMPONENT = ("Core", "SVG")
with Files("tests/old-tests/submission/Microsoft/history/**"):
BUG_COMPONENT = ("Core", "Document Navigation")
with Files("tests/old-tests/submission/Microsoft/sandbox/**"):
BUG_COMPONENT = ("Core", "DOM: Security")
# No tests are run here
with Files("tests/old-tests/submission/Microsoft/selection/**"):
BUG_COMPONENT = ("Core", "Selection")
with Files("tests/old-tests/submission/Microsoft/structuredclone/**"):
BUG_COMPONENT = ("Core", "Javascript Engine")
# No tests are run here
with Files("tests/old-tests/submission/Microsoft/xhtml5/**"):
BUG_COMPONENT = ("Core", "Layout")
with Files("tests/orientation-event/**"):
BUG_COMPONENT = ("Core", "DOM: Device Interfaces")
with Files("tests/page-visibility/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("tests/payment-request/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("tests/performance-timeline/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("tests/pointerevents/**"):
BUG_COMPONENT = ("Core", "DOM: Events")
with Files("tests/pointerlock/**"):
BUG_COMPONENT = ("Core", "DOM: Events")
with Files("tests/preload/**"):
BUG_COMPONENT = ("Core", "DOM: Core & Html")
with Files("tests/presentation-api/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("tests/progress-events/**"):
BUG_COMPONENT = ("Core", "DOM: Events")
with Files("tests/proximity/**"):
BUG_COMPONENT = ("Core", "DOM: Device Interfaces")
with Files("tests/quirks-mode/**"):
BUG_COMPONENT = ("Core", "Layout")
with Files("tests/referrer-policy/**"):
BUG_COMPONENT = ("Core", "DOM: Security")
with Files("tests/resource-timing/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("tests/screen-orientation/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("tests/secure-contexts/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("tests/selection/**"):
BUG_COMPONENT = ("Core", "Selection")
with Files("tests/selectors/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("tests/service-workers/**"):
BUG_COMPONENT = ("Core", "DOM: Service Workers")
with Files("tests/shadow-dom/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("tests/streams/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("tests/subresource-integrity/**"):
BUG_COMPONENT = ("Core", "DOM: Security")
with Files("tests/svg/**"):
BUG_COMPONENT = ("Core", "SVG")
with Files("tests/svg-aam/**"):
BUG_COMPONENT = ("Core", "SVG")
with Files("tests/touch-events/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("tests/tools/**"):
BUG_COMPONENT = ("Testing", "web-platform-tests")
with Files("tests/uievents/**"):
BUG_COMPONENT = ("Core", "DOM: Events")
with Files("tests/upgrade-insecure-requests/**"):
BUG_COMPONENT = ("Core", "DOM: Security")
with Files("tests/url/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("tests/user-timing/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("tests/vibration/**"):
BUG_COMPONENT = ("Core", "DOM")
# No files in here?
#with Files("tests/wai-arai/**"):
# BUG_COMPONENT = ("Core", "Disability Access APIs")
with Files("tests/web-animations/**"):
BUG_COMPONENT = ("Core", "DOM: Animation")
with Files("tests/webaudio/**"):
BUG_COMPONENT = ("Core", "DOM: Web Audio")
with Files("tests/webauthn/**"):
BUG_COMPONENT = ("Core", "DOM: Device Interfaces")
with Files("tests/webdriver/**"):
BUG_COMPONENT = ("Testing", "geckodriver")
with Files("tests/webgl/**"):
BUG_COMPONENT = ("Core", "Canvas: WebGL")
with Files("tests/webmessaging/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("tests/webrtc/**"):
BUG_COMPONENT = ("Core", "WebRTC")
with Files("tests/websockets/**"):
BUG_COMPONENT = ("Core", "Networking: WebSockets")
with Files("tests/webstorage/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("tests/webvr/**"):
BUG_COMPONENT = ("Core", "DOM")
with Files("tests/webvtt/**"):
BUG_COMPONENT = ("Core", "Audio/Video: Playback")
with Files("tests/workers/**"):
BUG_COMPONENT = ("Core", "DOM: Workers")