Bumping manifests a=b2g-bump
[gecko.git] / testing / xpcshell / Makefile.in
blob58d7c8f58f2ba5ccccc4170a12860bca909d5bce
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 include $(topsrcdir)/config/rules.mk
8 # Harness files from the srcdir
9 TEST_HARNESS_FILES := \
10 runxpcshelltests.py \
11 remotexpcshelltests.py \
12 runtestsb2g.py \
13 head.js \
14 node-spdy \
15 moz-spdy \
16 node-http2 \
17 moz-http2 \
18 $(NULL)
20 # Extra files needed from $(topsrcdir)/build
21 EXTRA_BUILD_FILES := \
22 automationutils.py \
23 manifestparser.py \
24 $(NULL)
26 # Components / typelibs that don't get packaged with
27 # the build, but that we need for the test harness.
28 TEST_HARNESS_COMPONENTS := \
29 httpd.js \
30 httpd.manifest \
31 $(NULL)
33 # Rules for staging the necessary harness bits for a test package
34 PKG_STAGE = $(DIST)/test-stage
36 libs::
37 cp $(DEPTH)/_tests/xpcshell/xpcshell.ini $(DEPTH)/_tests/xpcshell/all-test-dirs.list
39 stage-package:
40 $(NSINSTALL) -D $(PKG_STAGE)/xpcshell/tests
41 @(cd $(srcdir) && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -)
42 @(cd $(topsrcdir)/build && tar $(TAR_CREATE_FLAGS) - $(EXTRA_BUILD_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -)
43 @cp $(DEPTH)/mozinfo.json $(PKG_STAGE)/xpcshell
44 @cp $(DEPTH)/build/automation.py $(PKG_STAGE)/xpcshell
45 (cd $(DEPTH)/_tests/xpcshell/ && tar $(TAR_CREATE_FLAGS) - *) | (cd $(PKG_STAGE)/xpcshell/tests && tar -xf -)
46 @(cd $(DIST)/bin/components && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_COMPONENTS)) | (cd $(PKG_STAGE)/bin/components && tar -xf -)