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/.
7 topsrcdir
= @top_srcdir@
11 include $(DEPTH
)/config
/autoconf.mk
14 PYTHON_UNIT_TESTS
:= \
18 include $(topsrcdir
)/config
/rules.mk
20 # Harness files from the srcdir
21 TEST_HARNESS_FILES
:= \
23 remotexpcshelltests.py \
30 # Extra files needed from $(topsrcdir)/build
31 EXTRA_BUILD_FILES
:= \
43 # Components / typelibs that don't get packaged with
44 # the build, but that we need for the test harness.
45 TEST_HARNESS_COMPONENTS
:= \
53 # Rules for staging the necessary harness bits for a test package
54 PKG_STAGE
= $(DIST
)/test-package-stage
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
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
-)