2007-03-22 10:30:00 -07:00
|
|
|
#
|
2012-05-21 04:12:37 -07:00
|
|
|
# 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/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
2009-03-21 08:20:00 -07:00
|
|
|
|
|
|
|
# Harness files from the srcdir
|
|
|
|
TEST_HARNESS_FILES := \
|
|
|
|
runxpcshelltests.py \
|
2010-03-13 10:57:06 -08:00
|
|
|
remotexpcshelltests.py \
|
2012-10-17 15:12:41 -07:00
|
|
|
runtestsb2g.py \
|
2009-03-21 08:20:00 -07:00
|
|
|
head.js \
|
2012-04-25 17:12:33 -07:00
|
|
|
node-spdy \
|
|
|
|
moz-spdy \
|
2013-10-20 07:03:07 -07:00
|
|
|
node-http2 \
|
|
|
|
moz-http2 \
|
2009-03-21 08:20:00 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2009-05-14 04:37:40 -07:00
|
|
|
# Extra files needed from $(topsrcdir)/build
|
|
|
|
EXTRA_BUILD_FILES := \
|
|
|
|
automationutils.py \
|
2011-05-20 08:54:01 -07:00
|
|
|
manifestparser.py \
|
2009-05-14 04:37:40 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2009-03-21 08:20:00 -07:00
|
|
|
# Components / typelibs that don't get packaged with
|
|
|
|
# the build, but that we need for the test harness.
|
|
|
|
TEST_HARNESS_COMPONENTS := \
|
|
|
|
httpd.js \
|
2010-06-22 17:44:44 -07:00
|
|
|
httpd.manifest \
|
2009-03-21 08:20:00 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# Rules for staging the necessary harness bits for a test package
|
2014-05-15 19:55:00 -07:00
|
|
|
PKG_STAGE = $(DIST)/test-stage
|
2009-03-21 08:20:00 -07:00
|
|
|
|
2011-05-20 08:54:01 -07:00
|
|
|
libs::
|
2013-06-12 05:27:17 -07:00
|
|
|
cp $(DEPTH)/_tests/xpcshell/xpcshell.ini $(DEPTH)/_tests/xpcshell/all-test-dirs.list
|
2011-05-20 08:54:01 -07:00
|
|
|
|
2009-03-21 08:20:00 -07:00
|
|
|
stage-package:
|
|
|
|
$(NSINSTALL) -D $(PKG_STAGE)/xpcshell/tests
|
|
|
|
@(cd $(srcdir) && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -)
|
2009-05-14 04:37:40 -07:00
|
|
|
@(cd $(topsrcdir)/build && tar $(TAR_CREATE_FLAGS) - $(EXTRA_BUILD_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -)
|
2011-06-21 05:12:40 -07:00
|
|
|
@cp $(DEPTH)/mozinfo.json $(PKG_STAGE)/xpcshell
|
2012-12-20 00:43:19 -08:00
|
|
|
@cp $(DEPTH)/build/automation.py $(PKG_STAGE)/xpcshell
|
2013-07-10 02:55:01 -07:00
|
|
|
(cd $(DEPTH)/_tests/xpcshell/ && tar $(TAR_CREATE_FLAGS) - *) | (cd $(PKG_STAGE)/xpcshell/tests && tar -xf -)
|
2009-03-21 08:20:00 -07:00
|
|
|
@(cd $(DIST)/bin/components && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_COMPONENTS)) | (cd $(PKG_STAGE)/bin/components && tar -xf -)
|