testing/xpcshell/Makefile.in

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testing/xpcshell/Makefile.in	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,65 @@
     1.4 +#
     1.5 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.8 +
     1.9 +# Run selftests
    1.10 +PYTHON_UNIT_TESTS := \
    1.11 +  selftest.py
    1.12 +  $(NULL)
    1.13 +
    1.14 +include $(topsrcdir)/config/rules.mk
    1.15 +
    1.16 +# Harness files from the srcdir
    1.17 +TEST_HARNESS_FILES := \
    1.18 +  runxpcshelltests.py \
    1.19 +  remotexpcshelltests.py \
    1.20 +  runtestsb2g.py \
    1.21 +  head.js \
    1.22 +  node-spdy \
    1.23 +  moz-spdy \
    1.24 +  node-http2 \
    1.25 +  moz-http2 \
    1.26 +  $(NULL)
    1.27 +
    1.28 +# Extra files needed from $(topsrcdir)/build
    1.29 +EXTRA_BUILD_FILES := \
    1.30 +  automationutils.py \
    1.31 +  manifestparser.py \
    1.32 +  $(NULL)
    1.33 +
    1.34 +MOZDEVICE_FILES := \
    1.35 +  devicemanager.py \
    1.36 +  devicemanagerADB.py \
    1.37 +  devicemanagerSUT.py \
    1.38 +  Zeroconf.py \
    1.39 +  $(NULL)
    1.40 +
    1.41 +# Components / typelibs that don't get packaged with
    1.42 +# the build, but that we need for the test harness.
    1.43 +TEST_HARNESS_COMPONENTS := \
    1.44 +  httpd.js \
    1.45 +  httpd.manifest \
    1.46 +  $(NULL)
    1.47 +
    1.48 +MOZINFO_FILES := \
    1.49 +  mozinfo.py
    1.50 +
    1.51 +# Rules for staging the necessary harness bits for a test package
    1.52 +PKG_STAGE = $(DIST)/test-package-stage
    1.53 +
    1.54 +libs::
    1.55 +	$(INSTALL) $(srcdir)/xpcshell_b2g.ini $(DEPTH)/_tests/xpcshell
    1.56 +	$(INSTALL) $(srcdir)/xpcshell_android.ini $(DEPTH)/_tests/xpcshell
    1.57 +	cp $(DEPTH)/_tests/xpcshell/xpcshell.ini $(DEPTH)/_tests/xpcshell/all-test-dirs.list
    1.58 +
    1.59 +stage-package:
    1.60 +	$(NSINSTALL) -D $(PKG_STAGE)/xpcshell/tests
    1.61 +	@(cd $(topsrcdir)/testing/mozbase/mozinfo/mozinfo && tar $(TAR_CREATE_FLAGS) - $(MOZINFO_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -)
    1.62 +	@(cd $(srcdir) && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -)
    1.63 +	@(cd $(topsrcdir)/build && tar $(TAR_CREATE_FLAGS) - $(EXTRA_BUILD_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -)
    1.64 +	@cp $(DEPTH)/mozinfo.json $(PKG_STAGE)/xpcshell
    1.65 +	@cp $(DEPTH)/build/automation.py $(PKG_STAGE)/xpcshell
    1.66 +	@(cd $(topsrcdir)/testing/mozbase/mozdevice/mozdevice && tar $(TAR_CREATE_FLAGS) - $(MOZDEVICE_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -)
    1.67 +	(cd $(DEPTH)/_tests/xpcshell/ && tar $(TAR_CREATE_FLAGS) - *) | (cd $(PKG_STAGE)/xpcshell/tests && tar -xf -)
    1.68 +	@(cd $(DIST)/bin/components && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_COMPONENTS)) | (cd $(PKG_STAGE)/bin/components && tar -xf -)

mercurial