2005-11-29 19:24:42 +03:00
|
|
|
#
|
2012-05-21 15:12:37 +04: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/.
|
2006-01-27 23:56:16 +03:00
|
|
|
|
2013-07-20 03:20:07 +04:00
|
|
|
# Run selftests
|
|
|
|
PYTHON_UNIT_TESTS := \
|
|
|
|
selftest.py
|
|
|
|
$(NULL)
|
|
|
|
|
2006-01-27 23:56:16 +03:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2009-03-21 18:20:00 +03:00
|
|
|
|
|
|
|
# Harness files from the srcdir
|
|
|
|
TEST_HARNESS_FILES := \
|
|
|
|
runxpcshelltests.py \
|
2010-03-13 21:57:06 +03:00
|
|
|
remotexpcshelltests.py \
|
2012-10-18 02:12:41 +04:00
|
|
|
runtestsb2g.py \
|
2009-03-21 18:20:00 +03:00
|
|
|
head.js \
|
2012-04-26 04:12:33 +04:00
|
|
|
node-spdy \
|
|
|
|
moz-spdy \
|
2013-10-20 18:03:07 +04:00
|
|
|
node-http2 \
|
|
|
|
moz-http2 \
|
2009-03-21 18:20:00 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2009-05-14 15:37:40 +04:00
|
|
|
# Extra files needed from $(topsrcdir)/build
|
|
|
|
EXTRA_BUILD_FILES := \
|
|
|
|
automationutils.py \
|
2011-05-20 19:54:01 +04:00
|
|
|
manifestparser.py \
|
2009-05-14 15:37:40 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2012-10-18 02:12:41 +04:00
|
|
|
MOZDEVICE_FILES := \
|
2010-03-24 20:51:17 +03:00
|
|
|
devicemanager.py \
|
2012-10-18 02:12:41 +04:00
|
|
|
devicemanagerADB.py \
|
|
|
|
devicemanagerSUT.py \
|
2013-04-10 22:51:31 +04:00
|
|
|
Zeroconf.py \
|
2010-03-24 20:51:17 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2009-03-21 18:20:00 +03: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-23 04:44:44 +04:00
|
|
|
httpd.manifest \
|
2009-03-21 18:20:00 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2012-04-25 17:22:04 +04:00
|
|
|
MOZINFO_FILES := \
|
|
|
|
mozinfo.py
|
|
|
|
|
2009-03-21 18:20:00 +03:00
|
|
|
# Rules for staging the necessary harness bits for a test package
|
|
|
|
PKG_STAGE = $(DIST)/test-package-stage
|
|
|
|
|
2011-05-20 19:54:01 +04:00
|
|
|
libs::
|
2012-12-03 23:56:12 +04:00
|
|
|
$(INSTALL) $(srcdir)/xpcshell_b2g.ini $(DEPTH)/_tests/xpcshell
|
2012-12-21 23:44:42 +04:00
|
|
|
$(INSTALL) $(srcdir)/xpcshell_android.ini $(DEPTH)/_tests/xpcshell
|
2013-06-12 16:27:17 +04:00
|
|
|
cp $(DEPTH)/_tests/xpcshell/xpcshell.ini $(DEPTH)/_tests/xpcshell/all-test-dirs.list
|
2011-05-20 19:54:01 +04:00
|
|
|
|
2009-03-21 18:20:00 +03:00
|
|
|
stage-package:
|
|
|
|
$(NSINSTALL) -D $(PKG_STAGE)/xpcshell/tests
|
2012-04-25 17:22:04 +04:00
|
|
|
@(cd $(topsrcdir)/testing/mozbase/mozinfo/mozinfo && tar $(TAR_CREATE_FLAGS) - $(MOZINFO_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -)
|
2009-03-21 18:20:00 +03:00
|
|
|
@(cd $(srcdir) && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -)
|
2009-05-14 15:37:40 +04:00
|
|
|
@(cd $(topsrcdir)/build && tar $(TAR_CREATE_FLAGS) - $(EXTRA_BUILD_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -)
|
2011-06-21 16:12:40 +04:00
|
|
|
@cp $(DEPTH)/mozinfo.json $(PKG_STAGE)/xpcshell
|
2012-12-20 12:43:19 +04:00
|
|
|
@cp $(DEPTH)/build/automation.py $(PKG_STAGE)/xpcshell
|
2012-10-18 02:12:41 +04:00
|
|
|
@(cd $(topsrcdir)/testing/mozbase/mozdevice/mozdevice && tar $(TAR_CREATE_FLAGS) - $(MOZDEVICE_FILES)) | (cd $(PKG_STAGE)/xpcshell && tar -xf -)
|
2013-07-10 13:55:01 +04:00
|
|
|
(cd $(DEPTH)/_tests/xpcshell/ && tar $(TAR_CREATE_FLAGS) - *) | (cd $(PKG_STAGE)/xpcshell/tests && tar -xf -)
|
2009-03-21 18:20:00 +03:00
|
|
|
@(cd $(DIST)/bin/components && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_COMPONENTS)) | (cd $(PKG_STAGE)/bin/components && tar -xf -)
|