testing/web-platform/Makefile.in
author James Graham <james@hoppipolla.co.uk>
Thu, 04 Sep 2014 12:52:43 +0100
changeset 226860 c3773aeab2f8791dcfd6213226b983eae6b276cb
child 240972 a6edf0bb1e972735f1681f9baa47812f3fab9fb5
permissions -rw-r--r--
Bug 945222 - Initial import of web-platform-tests testsuite 4/4 : Integration with build system, mach and mozharness, r=ahal,gps

# 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/.
WPT_TESTS = \
  tests \
  $(NULL)

WPT_METADATA = \
  meta \
  $(NULL)


_DEST_DIR = $(DEPTH)/_tests/web-platform
PKG_STAGE = $(DIST)/test-stage

WEBPLATFORM_FILES = \
  runtests.py \
  wptrunner.ini \
  $(NULL)
WEBPLATFORM_DEST = $(_DEST_DIR)
INSTALL_TARGETS += WEBPLATFORM

libs::
	$(INSTALL) $(topsrcdir)/testing/web-platform/harness/wptrunner $(_DEST_DIR)
libs:: $(WPT_TESTS)
	$(INSTALL) $(foreach f,$^,"$f") $(_DEST_DIR)
libs:: $(WPT_METADATA)
	$(INSTALL) $(foreach f,$^,"$f") $(_DEST_DIR)

stage-package:
	$(NSINSTALL) -D $(PKG_STAGE)/web-platform
	@cp $(DEPTH)/mozinfo.json $(PKG_STAGE)/web-platform
	@(cd $(DEPTH)/_tests/ && tar $(TAR_CREATE_FLAGS) - web-platform) | (cd $(PKG_STAGE) && tar -xf -)