DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (d1ed7de67f5a)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187
#
# 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/.

NO_JS_MANIFEST = 1
MOZ_CHROME_FILE_FORMAT = jar
DIST_FILES = install.rdf

# Used in install.rdf
USE_EXTENSION_MANIFEST = 1

# files that get copied into $objdir/_tests/
SERV_FILES = 	\
		runtests.py \
		bisection.py \
		automation.py \
		runtestsb2g.py \
		runtestsremote.py \
		mochitest_options.py \
		manifest.webapp \
		$(topsrcdir)/testing/mozbase/mozdevice/mozdevice/devicemanager.py \
		$(topsrcdir)/testing/mozbase/mozdevice/mozdevice/devicemanagerADB.py \
		$(topsrcdir)/testing/mozbase/mozdevice/mozdevice/devicemanagerSUT.py \
		$(topsrcdir)/testing/mozbase/manifestparser/manifestparser/manifestparser.py \
		$(topsrcdir)/testing/mozbase/mozdevice/mozdevice/droid.py \
		$(topsrcdir)/testing/mozbase/mozdevice/mozdevice/Zeroconf.py \
		$(topsrcdir)/testing/mozbase/moznetwork/moznetwork/moznetwork.py \
		$(topsrcdir)/build/automationutils.py \
		$(topsrcdir)/build/mobile/remoteautomation.py \
		gen_template.pl \
		server.js \
		chunkifyTests.js \
		manifestLibrary.js \
		harness.xul \
		browser-test-overlay.xul \
		browser-test.js \
		cc-analyzer.js \
		chrome-harness.js \
		browser-harness.xul \
		redirect.html \
		$(topsrcdir)/build/pgo/server-locations.txt \
		$(topsrcdir)/netwerk/test/httpserver/httpd.js \
		pywebsocket_wrapper.py \
		android.json \
		androidx86.json \
		android23.json \
		gl.json \
		b2g_start_script.js \
		$(topsrcdir)/build/sanitizers/lsan_suppressions.txt \
		$(NULL)

ifeq ($(MOZ_BUILD_APP),mobile/android)
SERV_FILES += \
  $(topsrcdir)/mobile/android/base/tests/robocop.ini \
  $(topsrcdir)/mobile/android/base/tests/robocop_autophone.ini \
  $(NULL)
endif

_DEST_DIR = $(DEPTH)/_tests/$(relativesrcdir)
SERV_DEST = $(_DEST_DIR)
INSTALL_TARGETS += SERV

PYWEBSOCKET_FILES = \
		pywebsocket/standalone.py \
		$(NULL)
PYWEBSOCKET_DEST = $(_DEST_DIR)/pywebsocket
INSTALL_TARGETS += PYWEBSOCKET

MOD_PYWEBSOCKET_FILES = \
		pywebsocket/mod_pywebsocket/__init__.py \
		pywebsocket/mod_pywebsocket/common.py \
		pywebsocket/mod_pywebsocket/dispatch.py \
		pywebsocket/mod_pywebsocket/extensions.py \
		pywebsocket/mod_pywebsocket/headerparserhandler.py \
		pywebsocket/mod_pywebsocket/http_header_util.py \
		pywebsocket/mod_pywebsocket/memorizingfile.py \
		pywebsocket/mod_pywebsocket/util.py \
		pywebsocket/mod_pywebsocket/stream.py \
		pywebsocket/mod_pywebsocket/_stream_hixie75.py \
		pywebsocket/mod_pywebsocket/msgutil.py \
		pywebsocket/mod_pywebsocket/_stream_hybi.py \
		pywebsocket/mod_pywebsocket/_stream_base.py \
		$(NULL)
MOD_PYWEBSOCKET_DEST = $(_DEST_DIR)/pywebsocket/mod_pywebsocket
INSTALL_TARGETS += MOD_PYWEBSOCKET

HANDSHAKE_FILES = \
		pywebsocket/mod_pywebsocket/handshake/__init__.py \
		pywebsocket/mod_pywebsocket/handshake/hybi00.py \
		pywebsocket/mod_pywebsocket/handshake/_base.py \
		pywebsocket/mod_pywebsocket/handshake/draft75.py \
		pywebsocket/mod_pywebsocket/handshake/hybi.py \
		$(NULL)
HANDSHAKE_DEST = $(_DEST_DIR)/pywebsocket/mod_pywebsocket/handshake
INSTALL_TARGETS += HANDSHAKE

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

libs:: 
	(cd $(DIST)/xpi-stage && tar $(TAR_CREATE_FLAGS) - mochijar) | (cd $(_DEST_DIR) && tar -xf -)

# Binaries and scripts that don't get packaged with the build,
# but that we need for the test harness
TEST_HARNESS_BINS := \
  xpcshell$(BIN_SUFFIX) \
  ssltunnel$(BIN_SUFFIX) \
  certutil$(BIN_SUFFIX) \
  pk12util$(BIN_SUFFIX) \
  BadCertServer$(BIN_SUFFIX) \
  ClientAuthServer$(BIN_SUFFIX) \
  OCSPStaplingServer$(BIN_SUFFIX) \
  GenerateOCSPResponse$(BIN_SUFFIX) \
  fix_stack_using_bpsyms.py \
  $(NULL)

ifeq ($(OS_ARCH),WINNT)
TEST_HARNESS_BINS += \
  crashinject$(BIN_SUFFIX) \
  crashinjectdll$(DLL_SUFFIX) \
  vmwarerecordinghelper$(DLL_SUFFIX) \
  $(NULL)
endif

ifeq ($(OS_ARCH),Darwin)
TEST_HARNESS_BINS += fix_macosx_stack.py
endif

ifeq ($(OS_ARCH),Linux)
TEST_HARNESS_BINS += fix-linux-stack.pl
endif

ifeq (gtk2_1,$(MOZ_WIDGET_TOOLKIT)_$(MOZ_X11))
TEST_HARNESS_BINS += screentopng
endif

ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
TEST_HARNESS_BINS += screenshot$(BIN_SUFFIX)
ifdef MOZ_METRO
TEST_HARNESS_BINS += metrotestharness$(BIN_SUFFIX)
endif
endif

# 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 := \
  Test.plugin/ \
  SecondTest.plugin/ \
  JavaTest.plugin/
else
TEST_HARNESS_PLUGINS := \
  $(DLL_PREFIX)nptest$(DLL_SUFFIX) \
  $(DLL_PREFIX)npsecondtest$(DLL_SUFFIX) \
  $(DLL_PREFIX)nptestjava$(DLL_SUFFIX)
endif

GMP_TEST_FILES := \
  $(topsrcdir)/dom/media/gmp-plugin/fake.info \
  $(DEPTH)/dom/media/gmp-plugin/$(DLL_PREFIX)fake$(DLL_SUFFIX)

# Rules for staging the necessary harness bits for a test package
PKG_STAGE = $(DIST)/test-stage
DIST_BIN = $(DIST)/bin

$(_DEST_DIR):
	$(NSINSTALL) -D $@

stage-package:
	$(NSINSTALL) -D $(PKG_STAGE)/mochitest && $(NSINSTALL) -D $(PKG_STAGE)/bin/plugins && $(NSINSTALL) -D $(DIST)/plugins && $(NSINSTALL) -D $(PKG_STAGE)/bin/plugins/gmp-fake/1.0
	cp $(DEPTH)/mozinfo.json $(PKG_STAGE)/mochitest
	(cd $(DEPTH)/_tests/testing && tar $(TAR_CREATE_FLAGS) - mochitest) | (cd $(PKG_STAGE) && tar -xf -)
	@cp $(DEPTH)/mozinfo.json $(PKG_STAGE)/mochitest
	@(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 -)
	(cd $(topsrcdir)/build/pgo && tar $(TAR_CREATE_FLAGS) - certs) | (cd $(PKG_STAGE) && tar -xf -)
	@(cd $(DIST)/plugins && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_PLUGINS)) | (cd $(PKG_STAGE)/bin/plugins && tar -xf -)
	$(foreach x,$(GMP_TEST_FILES),cp $(x) $(PKG_STAGE)/bin/plugins/gmp-fake/1.0;)