testing/mochitest/Makefile.in

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testing/mochitest/Makefile.in	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,180 @@
     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 +NO_JS_MANIFEST = 1
    1.10 +MOZ_CHROME_FILE_FORMAT = jar
    1.11 +DIST_FILES = install.rdf
    1.12 +
    1.13 +# Used in install.rdf
    1.14 +USE_EXTENSION_MANIFEST = 1
    1.15 +
    1.16 +# files that get copied into $objdir/_tests/
    1.17 +SERV_FILES = 	\
    1.18 +		runtests.py \
    1.19 +		automation.py \
    1.20 +		runtestsb2g.py \
    1.21 +		runtestsremote.py \
    1.22 +		runtestsvmware.py \
    1.23 +		mochitest_options.py \
    1.24 +		manifest.webapp \
    1.25 +		$(topsrcdir)/testing/mozbase/mozdevice/mozdevice/devicemanager.py \
    1.26 +		$(topsrcdir)/testing/mozbase/mozdevice/mozdevice/devicemanagerADB.py \
    1.27 +		$(topsrcdir)/testing/mozbase/mozdevice/mozdevice/devicemanagerSUT.py \
    1.28 +		$(topsrcdir)/testing/mozbase/manifestdestiny/manifestparser/manifestparser.py \
    1.29 +		$(topsrcdir)/testing/mozbase/mozdevice/mozdevice/droid.py \
    1.30 +		$(topsrcdir)/testing/mozbase/mozdevice/mozdevice/Zeroconf.py \
    1.31 +		$(topsrcdir)/testing/mozbase/moznetwork/moznetwork/moznetwork.py \
    1.32 +		$(topsrcdir)/build/automationutils.py \
    1.33 +		$(topsrcdir)/build/mobile/remoteautomation.py \
    1.34 +		gen_template.pl \
    1.35 +		server.js \
    1.36 +		chunkifyTests.js \
    1.37 +		manifestLibrary.js \
    1.38 +		harness.xul \
    1.39 +		browser-test-overlay.xul \
    1.40 +		browser-test.js \
    1.41 +		cc-analyzer.js \
    1.42 +		chrome-harness.js \
    1.43 +		browser-harness.xul \
    1.44 +		redirect.html \
    1.45 +		$(topsrcdir)/build/pgo/server-locations.txt \
    1.46 +		$(topsrcdir)/netwerk/test/httpserver/httpd.js \
    1.47 +		pywebsocket_wrapper.py \
    1.48 +		android.json \
    1.49 +		androidx86.json \
    1.50 +		android23.json \
    1.51 +		gl.json \
    1.52 +		b2g_start_script.js \
    1.53 +		$(NULL)	
    1.54 +
    1.55 +ifeq ($(MOZ_BUILD_APP),mobile/android)
    1.56 +SERV_FILES += \
    1.57 +  $(topsrcdir)/mobile/android/base/tests/robocop.ini \
    1.58 +  $(topsrcdir)/mobile/android/base/tests/robocop_autophone.ini \
    1.59 +  $(NULL)
    1.60 +endif
    1.61 +
    1.62 +_DEST_DIR = $(DEPTH)/_tests/$(relativesrcdir)
    1.63 +SERV_DEST = $(_DEST_DIR)
    1.64 +INSTALL_TARGETS += SERV
    1.65 +
    1.66 +PYWEBSOCKET_FILES = \
    1.67 +		pywebsocket/standalone.py \
    1.68 +		$(NULL)
    1.69 +PYWEBSOCKET_DEST = $(_DEST_DIR)/pywebsocket
    1.70 +INSTALL_TARGETS += PYWEBSOCKET
    1.71 +
    1.72 +MOD_PYWEBSOCKET_FILES = \
    1.73 +		pywebsocket/mod_pywebsocket/__init__.py \
    1.74 +		pywebsocket/mod_pywebsocket/common.py \
    1.75 +		pywebsocket/mod_pywebsocket/dispatch.py \
    1.76 +		pywebsocket/mod_pywebsocket/extensions.py \
    1.77 +		pywebsocket/mod_pywebsocket/headerparserhandler.py \
    1.78 +		pywebsocket/mod_pywebsocket/http_header_util.py \
    1.79 +		pywebsocket/mod_pywebsocket/memorizingfile.py \
    1.80 +		pywebsocket/mod_pywebsocket/util.py \
    1.81 +		pywebsocket/mod_pywebsocket/stream.py \
    1.82 +		pywebsocket/mod_pywebsocket/_stream_hixie75.py \
    1.83 +		pywebsocket/mod_pywebsocket/msgutil.py \
    1.84 +		pywebsocket/mod_pywebsocket/_stream_hybi.py \
    1.85 +		pywebsocket/mod_pywebsocket/_stream_base.py \
    1.86 +		$(NULL)
    1.87 +MOD_PYWEBSOCKET_DEST = $(_DEST_DIR)/pywebsocket/mod_pywebsocket
    1.88 +INSTALL_TARGETS += MOD_PYWEBSOCKET
    1.89 +
    1.90 +HANDSHAKE_FILES = \
    1.91 +		pywebsocket/mod_pywebsocket/handshake/__init__.py \
    1.92 +		pywebsocket/mod_pywebsocket/handshake/hybi00.py \
    1.93 +		pywebsocket/mod_pywebsocket/handshake/_base.py \
    1.94 +		pywebsocket/mod_pywebsocket/handshake/draft75.py \
    1.95 +		pywebsocket/mod_pywebsocket/handshake/hybi.py \
    1.96 +		$(NULL)
    1.97 +HANDSHAKE_DEST = $(_DEST_DIR)/pywebsocket/mod_pywebsocket/handshake
    1.98 +INSTALL_TARGETS += HANDSHAKE
    1.99 +
   1.100 +include $(topsrcdir)/config/rules.mk
   1.101 +# We're installing to _tests/testing/mochitest, so this is the depth
   1.102 +# necessary for relative objdir paths.
   1.103 +TARGET_DEPTH = ../../..
   1.104 +include $(topsrcdir)/build/automation-build.mk
   1.105 +
   1.106 +libs:: 
   1.107 +	(cd $(DIST)/xpi-stage && tar $(TAR_CREATE_FLAGS) - mochijar) | (cd $(_DEST_DIR) && tar -xf -)
   1.108 +
   1.109 +# Binaries and scripts that don't get packaged with the build,
   1.110 +# but that we need for the test harness
   1.111 +TEST_HARNESS_BINS := \
   1.112 +  xpcshell$(BIN_SUFFIX) \
   1.113 +  ssltunnel$(BIN_SUFFIX) \
   1.114 +  certutil$(BIN_SUFFIX) \
   1.115 +  pk12util$(BIN_SUFFIX) \
   1.116 +  BadCertServer$(BIN_SUFFIX) \
   1.117 +  OCSPStaplingServer$(BIN_SUFFIX) \
   1.118 +  GenerateOCSPResponse$(BIN_SUFFIX) \
   1.119 +  fix_stack_using_bpsyms.py \
   1.120 +  $(NULL)
   1.121 +
   1.122 +ifeq ($(OS_ARCH),WINNT)
   1.123 +TEST_HARNESS_BINS += \
   1.124 +  crashinject$(BIN_SUFFIX) \
   1.125 +  crashinjectdll$(DLL_SUFFIX) \
   1.126 +  vmwarerecordinghelper$(DLL_SUFFIX) \
   1.127 +  $(NULL)
   1.128 +endif
   1.129 +
   1.130 +ifeq ($(OS_ARCH),Darwin)
   1.131 +TEST_HARNESS_BINS += fix_macosx_stack.py
   1.132 +endif
   1.133 +
   1.134 +ifeq ($(OS_ARCH),Linux)
   1.135 +TEST_HARNESS_BINS += fix-linux-stack.pl
   1.136 +endif
   1.137 +
   1.138 +ifeq (gtk2_1,$(MOZ_WIDGET_TOOLKIT)_$(MOZ_X11))
   1.139 +TEST_HARNESS_BINS += screentopng
   1.140 +endif
   1.141 +
   1.142 +ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
   1.143 +TEST_HARNESS_BINS += screenshot$(BIN_SUFFIX)
   1.144 +ifdef MOZ_METRO
   1.145 +TEST_HARNESS_BINS += metrotestharness$(BIN_SUFFIX)
   1.146 +endif
   1.147 +endif
   1.148 +
   1.149 +# Components / typelibs that don't get packaged with
   1.150 +# the build, but that we need for the test harness.
   1.151 +TEST_HARNESS_COMPONENTS := \
   1.152 +  test_necko.xpt \
   1.153 +  $(NULL)
   1.154 +
   1.155 +# We need the test plugin as some tests rely on it
   1.156 +ifeq (Darwin,$(OS_TARGET))
   1.157 +TEST_HARNESS_PLUGINS := \
   1.158 +  Test.plugin/ \
   1.159 +  SecondTest.plugin/ \
   1.160 +  JavaTest.plugin/
   1.161 +else
   1.162 +TEST_HARNESS_PLUGINS := \
   1.163 +  $(DLL_PREFIX)nptest$(DLL_SUFFIX) \
   1.164 +  $(DLL_PREFIX)npsecondtest$(DLL_SUFFIX) \
   1.165 +  $(DLL_PREFIX)nptestjava$(DLL_SUFFIX)
   1.166 +endif
   1.167 +
   1.168 +# Rules for staging the necessary harness bits for a test package
   1.169 +PKG_STAGE = $(DIST)/test-package-stage
   1.170 +DIST_BIN = $(DIST)/bin
   1.171 +
   1.172 +$(_DEST_DIR):
   1.173 +	$(NSINSTALL) -D $@
   1.174 +
   1.175 +stage-package:
   1.176 +	$(NSINSTALL) -D $(PKG_STAGE)/mochitest && $(NSINSTALL) -D $(PKG_STAGE)/bin/plugins && $(NSINSTALL) -D $(DIST)/plugins
   1.177 +	cp $(DEPTH)/mozinfo.json $(PKG_STAGE)/mochitest
   1.178 +	(cd $(DEPTH)/_tests/testing && tar $(TAR_CREATE_FLAGS) - mochitest) | (cd $(PKG_STAGE) && tar -xf -)
   1.179 +	@cp $(DEPTH)/mozinfo.json $(PKG_STAGE)/mochitest
   1.180 +	@(cd $(DIST_BIN) && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_BINS)) | (cd $(PKG_STAGE)/bin && tar -xf -)
   1.181 +	@(cd $(DIST_BIN)/components && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_COMPONENTS)) | (cd $(PKG_STAGE)/bin/components && tar -xf -)
   1.182 +	(cd $(topsrcdir)/build/pgo && tar $(TAR_CREATE_FLAGS) - certs) | (cd $(PKG_STAGE) && tar -xf -)
   1.183 +	@(cd $(DIST)/plugins && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_PLUGINS)) | (cd $(PKG_STAGE)/bin/plugins && tar -xf -)

mercurial