2007-01-17 23:38:57 +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/.
|
2007-01-17 23:38:57 +03:00
|
|
|
|
2010-10-01 04:10:19 +04:00
|
|
|
NO_JS_MANIFEST = 1
|
|
|
|
MOZ_CHROME_FILE_FORMAT = jar
|
|
|
|
DIST_FILES = install.rdf
|
|
|
|
|
|
|
|
# Used in install.rdf
|
|
|
|
USE_EXTENSION_MANIFEST = 1
|
|
|
|
|
2011-11-05 22:35:59 +04:00
|
|
|
# files that get copied into $objdir/_tests/
|
2013-12-03 01:34:21 +04:00
|
|
|
SERV_FILES = \
|
2008-01-29 06:48:34 +03:00
|
|
|
runtests.py \
|
2008-02-22 00:08:39 +03:00
|
|
|
automation.py \
|
2012-04-27 22:44:59 +04:00
|
|
|
runtestsb2g.py \
|
2010-02-25 22:10:39 +03:00
|
|
|
runtestsremote.py \
|
2010-05-17 22:00:13 +04:00
|
|
|
runtestsvmware.py \
|
2013-07-26 22:40:04 +04:00
|
|
|
mochitest_options.py \
|
2012-12-05 23:28:00 +04:00
|
|
|
manifest.webapp \
|
2012-09-08 00:00:31 +04:00
|
|
|
$(topsrcdir)/testing/mozbase/mozdevice/mozdevice/devicemanager.py \
|
|
|
|
$(topsrcdir)/testing/mozbase/mozdevice/mozdevice/devicemanagerADB.py \
|
|
|
|
$(topsrcdir)/testing/mozbase/mozdevice/mozdevice/devicemanagerSUT.py \
|
2013-06-07 23:30:11 +04:00
|
|
|
$(topsrcdir)/testing/mozbase/manifestdestiny/manifestparser/manifestparser.py \
|
2013-05-03 21:37:51 +04:00
|
|
|
$(topsrcdir)/testing/mozbase/mozdevice/mozdevice/droid.py \
|
2012-10-12 21:24:35 +04:00
|
|
|
$(topsrcdir)/testing/mozbase/mozdevice/mozdevice/Zeroconf.py \
|
2014-04-21 19:03:51 +04:00
|
|
|
$(topsrcdir)/testing/mozbase/moznetwork/moznetwork/moznetwork.py \
|
2010-01-12 02:55:51 +03:00
|
|
|
$(topsrcdir)/build/automationutils.py \
|
2010-06-24 13:32:01 +04:00
|
|
|
$(topsrcdir)/build/mobile/remoteautomation.py \
|
2007-01-17 23:38:57 +03:00
|
|
|
gen_template.pl \
|
2007-01-31 08:14:23 +03:00
|
|
|
server.js \
|
2013-06-16 19:19:47 +04:00
|
|
|
chunkifyTests.js \
|
2013-08-02 16:48:06 +04:00
|
|
|
manifestLibrary.js \
|
2007-02-20 04:56:30 +03:00
|
|
|
harness.xul \
|
2007-07-09 20:24:15 +04:00
|
|
|
browser-test-overlay.xul \
|
|
|
|
browser-test.js \
|
2012-08-03 14:36:59 +04:00
|
|
|
cc-analyzer.js \
|
2010-08-24 21:29:34 +04:00
|
|
|
chrome-harness.js \
|
2007-07-09 20:24:15 +04:00
|
|
|
browser-harness.xul \
|
2007-02-20 04:56:30 +03:00
|
|
|
redirect.html \
|
2008-06-07 10:43:15 +04:00
|
|
|
$(topsrcdir)/build/pgo/server-locations.txt \
|
2007-01-31 08:14:23 +03:00
|
|
|
$(topsrcdir)/netwerk/test/httpserver/httpd.js \
|
2011-05-10 01:54:35 +04:00
|
|
|
pywebsocket_wrapper.py \
|
2011-10-18 00:58:57 +04:00
|
|
|
android.json \
|
2013-05-24 18:39:24 +04:00
|
|
|
androidx86.json \
|
2014-03-12 19:42:00 +04:00
|
|
|
android23.json \
|
2014-01-15 19:31:10 +04:00
|
|
|
gl.json \
|
2013-07-26 22:40:04 +04:00
|
|
|
b2g_start_script.js \
|
2007-01-17 23:38:57 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2011-12-31 19:03:36 +04:00
|
|
|
ifeq ($(MOZ_BUILD_APP),mobile/android)
|
2013-12-03 01:34:21 +04:00
|
|
|
SERV_FILES += \
|
2013-03-01 12:32:03 +04:00
|
|
|
$(topsrcdir)/mobile/android/base/tests/robocop.ini \
|
|
|
|
$(topsrcdir)/mobile/android/base/tests/robocop_autophone.ini \
|
|
|
|
$(NULL)
|
2011-12-31 19:03:36 +04:00
|
|
|
endif
|
|
|
|
|
2013-12-03 01:34:21 +04:00
|
|
|
_DEST_DIR = $(DEPTH)/_tests/$(relativesrcdir)
|
|
|
|
SERV_DEST = $(_DEST_DIR)
|
|
|
|
INSTALL_TARGETS += SERV
|
|
|
|
|
|
|
|
PYWEBSOCKET_FILES = \
|
2010-06-17 09:38:55 +04:00
|
|
|
pywebsocket/standalone.py \
|
|
|
|
$(NULL)
|
2013-12-03 01:34:21 +04:00
|
|
|
PYWEBSOCKET_DEST = $(_DEST_DIR)/pywebsocket
|
|
|
|
INSTALL_TARGETS += PYWEBSOCKET
|
2010-06-17 09:38:55 +04:00
|
|
|
|
2013-12-03 01:34:21 +04:00
|
|
|
MOD_PYWEBSOCKET_FILES = \
|
2010-06-17 09:38:55 +04:00
|
|
|
pywebsocket/mod_pywebsocket/__init__.py \
|
2011-05-22 05:27:52 +04:00
|
|
|
pywebsocket/mod_pywebsocket/common.py \
|
2010-06-17 09:38:55 +04:00
|
|
|
pywebsocket/mod_pywebsocket/dispatch.py \
|
2011-12-16 03:21:55 +04:00
|
|
|
pywebsocket/mod_pywebsocket/extensions.py \
|
2011-05-22 05:27:52 +04:00
|
|
|
pywebsocket/mod_pywebsocket/headerparserhandler.py \
|
2011-06-11 00:52:29 +04:00
|
|
|
pywebsocket/mod_pywebsocket/http_header_util.py \
|
2011-05-22 05:27:52 +04:00
|
|
|
pywebsocket/mod_pywebsocket/memorizingfile.py \
|
2010-06-17 09:38:55 +04:00
|
|
|
pywebsocket/mod_pywebsocket/util.py \
|
2011-05-22 05:27:52 +04:00
|
|
|
pywebsocket/mod_pywebsocket/stream.py \
|
|
|
|
pywebsocket/mod_pywebsocket/_stream_hixie75.py \
|
2010-06-17 09:38:55 +04:00
|
|
|
pywebsocket/mod_pywebsocket/msgutil.py \
|
2011-12-16 03:21:55 +04:00
|
|
|
pywebsocket/mod_pywebsocket/_stream_hybi.py \
|
2011-05-22 05:27:52 +04:00
|
|
|
pywebsocket/mod_pywebsocket/_stream_base.py \
|
2010-06-17 09:38:55 +04:00
|
|
|
$(NULL)
|
2013-12-03 01:34:21 +04:00
|
|
|
MOD_PYWEBSOCKET_DEST = $(_DEST_DIR)/pywebsocket/mod_pywebsocket
|
|
|
|
INSTALL_TARGETS += MOD_PYWEBSOCKET
|
2010-06-17 09:38:55 +04:00
|
|
|
|
2013-12-03 01:34:21 +04:00
|
|
|
HANDSHAKE_FILES = \
|
2010-06-17 09:38:55 +04:00
|
|
|
pywebsocket/mod_pywebsocket/handshake/__init__.py \
|
2011-05-22 05:27:52 +04:00
|
|
|
pywebsocket/mod_pywebsocket/handshake/hybi00.py \
|
2010-06-17 09:38:55 +04:00
|
|
|
pywebsocket/mod_pywebsocket/handshake/_base.py \
|
|
|
|
pywebsocket/mod_pywebsocket/handshake/draft75.py \
|
2011-12-16 03:21:55 +04:00
|
|
|
pywebsocket/mod_pywebsocket/handshake/hybi.py \
|
2010-06-17 09:38:55 +04:00
|
|
|
$(NULL)
|
2013-12-03 01:34:21 +04:00
|
|
|
HANDSHAKE_DEST = $(_DEST_DIR)/pywebsocket/mod_pywebsocket/handshake
|
|
|
|
INSTALL_TARGETS += HANDSHAKE
|
2007-01-26 21:44:58 +03:00
|
|
|
|
2013-12-03 01:34:21 +04:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
# We're installing to _tests/testing/mochitest, so this is the depth
|
|
|
|
# necessary for relative objdir paths.
|
|
|
|
TARGET_DEPTH = ../../..
|
|
|
|
include $(topsrcdir)/build/automation-build.mk
|
2009-01-12 20:15:12 +03:00
|
|
|
|
2010-10-01 04:10:19 +04:00
|
|
|
libs::
|
|
|
|
(cd $(DIST)/xpi-stage && tar $(TAR_CREATE_FLAGS) - mochijar) | (cd $(_DEST_DIR) && tar -xf -)
|
|
|
|
|
2010-06-26 01:47:19 +04:00
|
|
|
# Binaries and scripts that don't get packaged with the build,
|
2009-02-02 16:53:24 +03:00
|
|
|
# but that we need for the test harness
|
|
|
|
TEST_HARNESS_BINS := \
|
|
|
|
xpcshell$(BIN_SUFFIX) \
|
|
|
|
ssltunnel$(BIN_SUFFIX) \
|
|
|
|
certutil$(BIN_SUFFIX) \
|
|
|
|
pk12util$(BIN_SUFFIX) \
|
2014-02-14 02:53:29 +04:00
|
|
|
BadCertServer$(BIN_SUFFIX) \
|
2013-06-20 22:41:41 +04:00
|
|
|
OCSPStaplingServer$(BIN_SUFFIX) \
|
2013-10-30 01:02:35 +04:00
|
|
|
GenerateOCSPResponse$(BIN_SUFFIX) \
|
2010-06-26 01:47:19 +04:00
|
|
|
fix_stack_using_bpsyms.py \
|
2009-02-02 16:53:24 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2009-10-16 21:34:27 +04:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
TEST_HARNESS_BINS += \
|
|
|
|
crashinject$(BIN_SUFFIX) \
|
|
|
|
crashinjectdll$(DLL_SUFFIX) \
|
2010-03-16 00:44:29 +03:00
|
|
|
vmwarerecordinghelper$(DLL_SUFFIX) \
|
2009-10-16 21:34:27 +04:00
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2009-08-11 02:52:29 +04:00
|
|
|
ifeq ($(OS_ARCH),Darwin)
|
2010-02-22 00:03:20 +03:00
|
|
|
TEST_HARNESS_BINS += fix_macosx_stack.py
|
2009-08-11 02:52:29 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH),Linux)
|
|
|
|
TEST_HARNESS_BINS += fix-linux-stack.pl
|
|
|
|
endif
|
|
|
|
|
2010-08-23 05:27:26 +04:00
|
|
|
ifeq (gtk2_1,$(MOZ_WIDGET_TOOLKIT)_$(MOZ_X11))
|
|
|
|
TEST_HARNESS_BINS += screentopng
|
|
|
|
endif
|
|
|
|
|
2012-02-09 00:30:07 +04:00
|
|
|
ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
TEST_HARNESS_BINS += screenshot$(BIN_SUFFIX)
|
2013-03-26 03:04:16 +04:00
|
|
|
ifdef MOZ_METRO
|
|
|
|
TEST_HARNESS_BINS += metrotestharness$(BIN_SUFFIX)
|
|
|
|
endif
|
2012-02-09 00:30:07 +04:00
|
|
|
endif
|
|
|
|
|
2009-02-02 16:53:24 +03:00
|
|
|
# Components / typelibs that don't get packaged with
|
|
|
|
# the build, but that we need for the test harness.
|
|
|
|
TEST_HARNESS_COMPONENTS := \
|
|
|
|
test_necko.xpt \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# We need the test plugin as some tests rely on it
|
|
|
|
ifeq (Darwin,$(OS_TARGET))
|
|
|
|
TEST_HARNESS_PLUGINS := \
|
2012-08-13 21:40:15 +04:00
|
|
|
Test.plugin/ \
|
2013-04-02 00:04:48 +04:00
|
|
|
SecondTest.plugin/ \
|
|
|
|
JavaTest.plugin/
|
2009-02-02 16:53:24 +03:00
|
|
|
else
|
|
|
|
TEST_HARNESS_PLUGINS := \
|
2012-08-13 21:40:15 +04:00
|
|
|
$(DLL_PREFIX)nptest$(DLL_SUFFIX) \
|
2013-04-02 00:04:48 +04:00
|
|
|
$(DLL_PREFIX)npsecondtest$(DLL_SUFFIX) \
|
|
|
|
$(DLL_PREFIX)nptestjava$(DLL_SUFFIX)
|
2009-02-02 16:53:24 +03:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Rules for staging the necessary harness bits for a test package
|
|
|
|
PKG_STAGE = $(DIST)/test-package-stage
|
2009-12-19 00:56:09 +03:00
|
|
|
DIST_BIN = $(DIST)/bin
|
2009-02-02 16:53:24 +03:00
|
|
|
|
2010-10-01 04:10:19 +04:00
|
|
|
$(_DEST_DIR):
|
|
|
|
$(NSINSTALL) -D $@
|
|
|
|
|
2009-02-02 16:53:24 +03:00
|
|
|
stage-package:
|
2012-12-17 22:08:00 +04:00
|
|
|
$(NSINSTALL) -D $(PKG_STAGE)/mochitest && $(NSINSTALL) -D $(PKG_STAGE)/bin/plugins && $(NSINSTALL) -D $(DIST)/plugins
|
2013-08-02 16:48:06 +04:00
|
|
|
cp $(DEPTH)/mozinfo.json $(PKG_STAGE)/mochitest
|
2014-02-13 08:27:17 +04:00
|
|
|
(cd $(DEPTH)/_tests/testing && tar $(TAR_CREATE_FLAGS) - mochitest) | (cd $(PKG_STAGE) && tar -xf -)
|
2013-07-26 22:40:04 +04:00
|
|
|
@cp $(DEPTH)/mozinfo.json $(PKG_STAGE)/mochitest
|
2009-12-19 00:56:09 +03:00
|
|
|
@(cd $(DIST_BIN) && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_BINS)) | (cd $(PKG_STAGE)/bin && tar -xf -)
|
|
|
|
@(cd $(DIST_BIN)/components && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_COMPONENTS)) | (cd $(PKG_STAGE)/bin/components && tar -xf -)
|
2014-02-13 08:27:17 +04:00
|
|
|
(cd $(topsrcdir)/build/pgo && tar $(TAR_CREATE_FLAGS) - certs) | (cd $(PKG_STAGE) && tar -xf -)
|
2012-12-17 22:08:00 +04:00
|
|
|
@(cd $(DIST)/plugins && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_PLUGINS)) | (cd $(PKG_STAGE)/bin/plugins && tar -xf -)
|