Merge m-c to fx-team.
[gecko.git] / testing / xpcshell / Makefile.in
blobead4483db2b4543a18f8d99c494a5eb3949d3d76
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 DEPTH = @DEPTH@
7 topsrcdir = @top_srcdir@
8 srcdir = @srcdir@
9 VPATH = @srcdir@
11 include $(DEPTH)/config/autoconf.mk
13 # Run selftests
14 PYTHON_UNIT_TESTS := \
15 selftest.py
16 $(NULL)
18 include $(topsrcdir)/config/rules.mk
20 # Harness files from the srcdir
21 TEST_HARNESS_FILES := \
22 runxpcshelltests.py \
23 remotexpcshelltests.py \
24 runtestsb2g.py \
25 head.js \
26 node-spdy \
27 moz-spdy \
28 $(NULL)
30 # Extra files needed from $(topsrcdir)/build
31 EXTRA_BUILD_FILES := \
32 automationutils.py \
33 manifestparser.py \
34 $(NULL)
36 MOZDEVICE_FILES := \
37 devicemanager.py \
38 devicemanagerADB.py \
39 devicemanagerSUT.py \
40 Zeroconf.py \
41 $(NULL)
43 # Components / typelibs that don't get packaged with
44 # the build, but that we need for the test harness.
45 TEST_HARNESS_COMPONENTS := \
46 httpd.js \
47 httpd.manifest \
48 $(NULL)
50 MOZINFO_FILES := \
51 mozinfo.py
53 # Rules for staging the necessary harness bits for a test package
54 PKG_STAGE = $(DIST)/test-package-stage
56 libs::
57 $(INSTALL) xpcshell.ini $(DEPTH)/_tests/xpcshell
58 $(INSTALL) $(srcdir)/xpcshell_b2g.ini $(DEPTH)/_tests/xpcshell
59 $(INSTALL) $(srcdir)/xpcshell_android.ini $(DEPTH)/_tests/xpcshell
60 cp $(DEPTH)/_tests/xpcshell/xpcshell.ini $(DEPTH)/_tests/xpcshell/all-test-dirs.list
62 stage-package:
63 $(NSINSTALL) -D $(PKG_STAGE)/xpcshell/tests
64 @(cd $(topsrcdir)/testing/mozbase/mozinfo/mozinfo && tar $(TAR_CREATE_FLAGS) - $(MOZINFO_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -)
65 @(cd $(srcdir) && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -)
66 @(cd $(topsrcdir)/build && tar $(TAR_CREATE_FLAGS) - $(EXTRA_BUILD_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -)
67 @cp $(DEPTH)/mozinfo.json $(PKG_STAGE)/xpcshell
68 @cp $(DEPTH)/build/automation.py $(PKG_STAGE)/xpcshell
69 @(cd $(topsrcdir)/testing/mozbase/mozdevice/mozdevice && tar $(TAR_CREATE_FLAGS) - $(MOZDEVICE_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -)
70 (cd $(DEPTH)/_tests/xpcshell/ && tar $(TAR_CREATE_FLAGS) - *) | (cd $(PKG_STAGE)/xpcshell/tests && tar -xf -)
71 @(cd $(DIST)/bin/components && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_COMPONENTS)) | (cd $(PKG_STAGE)/bin/components && tar -xf -)