testing/mochitest/Makefile.in

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

michael@0 1 #
michael@0 2 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 5
michael@0 6 NO_JS_MANIFEST = 1
michael@0 7 MOZ_CHROME_FILE_FORMAT = jar
michael@0 8 DIST_FILES = install.rdf
michael@0 9
michael@0 10 # Used in install.rdf
michael@0 11 USE_EXTENSION_MANIFEST = 1
michael@0 12
michael@0 13 # files that get copied into $objdir/_tests/
michael@0 14 SERV_FILES = \
michael@0 15 runtests.py \
michael@0 16 automation.py \
michael@0 17 runtestsb2g.py \
michael@0 18 runtestsremote.py \
michael@0 19 runtestsvmware.py \
michael@0 20 mochitest_options.py \
michael@0 21 manifest.webapp \
michael@0 22 $(topsrcdir)/testing/mozbase/mozdevice/mozdevice/devicemanager.py \
michael@0 23 $(topsrcdir)/testing/mozbase/mozdevice/mozdevice/devicemanagerADB.py \
michael@0 24 $(topsrcdir)/testing/mozbase/mozdevice/mozdevice/devicemanagerSUT.py \
michael@0 25 $(topsrcdir)/testing/mozbase/manifestdestiny/manifestparser/manifestparser.py \
michael@0 26 $(topsrcdir)/testing/mozbase/mozdevice/mozdevice/droid.py \
michael@0 27 $(topsrcdir)/testing/mozbase/mozdevice/mozdevice/Zeroconf.py \
michael@0 28 $(topsrcdir)/testing/mozbase/moznetwork/moznetwork/moznetwork.py \
michael@0 29 $(topsrcdir)/build/automationutils.py \
michael@0 30 $(topsrcdir)/build/mobile/remoteautomation.py \
michael@0 31 gen_template.pl \
michael@0 32 server.js \
michael@0 33 chunkifyTests.js \
michael@0 34 manifestLibrary.js \
michael@0 35 harness.xul \
michael@0 36 browser-test-overlay.xul \
michael@0 37 browser-test.js \
michael@0 38 cc-analyzer.js \
michael@0 39 chrome-harness.js \
michael@0 40 browser-harness.xul \
michael@0 41 redirect.html \
michael@0 42 $(topsrcdir)/build/pgo/server-locations.txt \
michael@0 43 $(topsrcdir)/netwerk/test/httpserver/httpd.js \
michael@0 44 pywebsocket_wrapper.py \
michael@0 45 android.json \
michael@0 46 androidx86.json \
michael@0 47 android23.json \
michael@0 48 gl.json \
michael@0 49 b2g_start_script.js \
michael@0 50 $(NULL)
michael@0 51
michael@0 52 ifeq ($(MOZ_BUILD_APP),mobile/android)
michael@0 53 SERV_FILES += \
michael@0 54 $(topsrcdir)/mobile/android/base/tests/robocop.ini \
michael@0 55 $(topsrcdir)/mobile/android/base/tests/robocop_autophone.ini \
michael@0 56 $(NULL)
michael@0 57 endif
michael@0 58
michael@0 59 _DEST_DIR = $(DEPTH)/_tests/$(relativesrcdir)
michael@0 60 SERV_DEST = $(_DEST_DIR)
michael@0 61 INSTALL_TARGETS += SERV
michael@0 62
michael@0 63 PYWEBSOCKET_FILES = \
michael@0 64 pywebsocket/standalone.py \
michael@0 65 $(NULL)
michael@0 66 PYWEBSOCKET_DEST = $(_DEST_DIR)/pywebsocket
michael@0 67 INSTALL_TARGETS += PYWEBSOCKET
michael@0 68
michael@0 69 MOD_PYWEBSOCKET_FILES = \
michael@0 70 pywebsocket/mod_pywebsocket/__init__.py \
michael@0 71 pywebsocket/mod_pywebsocket/common.py \
michael@0 72 pywebsocket/mod_pywebsocket/dispatch.py \
michael@0 73 pywebsocket/mod_pywebsocket/extensions.py \
michael@0 74 pywebsocket/mod_pywebsocket/headerparserhandler.py \
michael@0 75 pywebsocket/mod_pywebsocket/http_header_util.py \
michael@0 76 pywebsocket/mod_pywebsocket/memorizingfile.py \
michael@0 77 pywebsocket/mod_pywebsocket/util.py \
michael@0 78 pywebsocket/mod_pywebsocket/stream.py \
michael@0 79 pywebsocket/mod_pywebsocket/_stream_hixie75.py \
michael@0 80 pywebsocket/mod_pywebsocket/msgutil.py \
michael@0 81 pywebsocket/mod_pywebsocket/_stream_hybi.py \
michael@0 82 pywebsocket/mod_pywebsocket/_stream_base.py \
michael@0 83 $(NULL)
michael@0 84 MOD_PYWEBSOCKET_DEST = $(_DEST_DIR)/pywebsocket/mod_pywebsocket
michael@0 85 INSTALL_TARGETS += MOD_PYWEBSOCKET
michael@0 86
michael@0 87 HANDSHAKE_FILES = \
michael@0 88 pywebsocket/mod_pywebsocket/handshake/__init__.py \
michael@0 89 pywebsocket/mod_pywebsocket/handshake/hybi00.py \
michael@0 90 pywebsocket/mod_pywebsocket/handshake/_base.py \
michael@0 91 pywebsocket/mod_pywebsocket/handshake/draft75.py \
michael@0 92 pywebsocket/mod_pywebsocket/handshake/hybi.py \
michael@0 93 $(NULL)
michael@0 94 HANDSHAKE_DEST = $(_DEST_DIR)/pywebsocket/mod_pywebsocket/handshake
michael@0 95 INSTALL_TARGETS += HANDSHAKE
michael@0 96
michael@0 97 include $(topsrcdir)/config/rules.mk
michael@0 98 # We're installing to _tests/testing/mochitest, so this is the depth
michael@0 99 # necessary for relative objdir paths.
michael@0 100 TARGET_DEPTH = ../../..
michael@0 101 include $(topsrcdir)/build/automation-build.mk
michael@0 102
michael@0 103 libs::
michael@0 104 (cd $(DIST)/xpi-stage && tar $(TAR_CREATE_FLAGS) - mochijar) | (cd $(_DEST_DIR) && tar -xf -)
michael@0 105
michael@0 106 # Binaries and scripts that don't get packaged with the build,
michael@0 107 # but that we need for the test harness
michael@0 108 TEST_HARNESS_BINS := \
michael@0 109 xpcshell$(BIN_SUFFIX) \
michael@0 110 ssltunnel$(BIN_SUFFIX) \
michael@0 111 certutil$(BIN_SUFFIX) \
michael@0 112 pk12util$(BIN_SUFFIX) \
michael@0 113 BadCertServer$(BIN_SUFFIX) \
michael@0 114 OCSPStaplingServer$(BIN_SUFFIX) \
michael@0 115 GenerateOCSPResponse$(BIN_SUFFIX) \
michael@0 116 fix_stack_using_bpsyms.py \
michael@0 117 $(NULL)
michael@0 118
michael@0 119 ifeq ($(OS_ARCH),WINNT)
michael@0 120 TEST_HARNESS_BINS += \
michael@0 121 crashinject$(BIN_SUFFIX) \
michael@0 122 crashinjectdll$(DLL_SUFFIX) \
michael@0 123 vmwarerecordinghelper$(DLL_SUFFIX) \
michael@0 124 $(NULL)
michael@0 125 endif
michael@0 126
michael@0 127 ifeq ($(OS_ARCH),Darwin)
michael@0 128 TEST_HARNESS_BINS += fix_macosx_stack.py
michael@0 129 endif
michael@0 130
michael@0 131 ifeq ($(OS_ARCH),Linux)
michael@0 132 TEST_HARNESS_BINS += fix-linux-stack.pl
michael@0 133 endif
michael@0 134
michael@0 135 ifeq (gtk2_1,$(MOZ_WIDGET_TOOLKIT)_$(MOZ_X11))
michael@0 136 TEST_HARNESS_BINS += screentopng
michael@0 137 endif
michael@0 138
michael@0 139 ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
michael@0 140 TEST_HARNESS_BINS += screenshot$(BIN_SUFFIX)
michael@0 141 ifdef MOZ_METRO
michael@0 142 TEST_HARNESS_BINS += metrotestharness$(BIN_SUFFIX)
michael@0 143 endif
michael@0 144 endif
michael@0 145
michael@0 146 # Components / typelibs that don't get packaged with
michael@0 147 # the build, but that we need for the test harness.
michael@0 148 TEST_HARNESS_COMPONENTS := \
michael@0 149 test_necko.xpt \
michael@0 150 $(NULL)
michael@0 151
michael@0 152 # We need the test plugin as some tests rely on it
michael@0 153 ifeq (Darwin,$(OS_TARGET))
michael@0 154 TEST_HARNESS_PLUGINS := \
michael@0 155 Test.plugin/ \
michael@0 156 SecondTest.plugin/ \
michael@0 157 JavaTest.plugin/
michael@0 158 else
michael@0 159 TEST_HARNESS_PLUGINS := \
michael@0 160 $(DLL_PREFIX)nptest$(DLL_SUFFIX) \
michael@0 161 $(DLL_PREFIX)npsecondtest$(DLL_SUFFIX) \
michael@0 162 $(DLL_PREFIX)nptestjava$(DLL_SUFFIX)
michael@0 163 endif
michael@0 164
michael@0 165 # Rules for staging the necessary harness bits for a test package
michael@0 166 PKG_STAGE = $(DIST)/test-package-stage
michael@0 167 DIST_BIN = $(DIST)/bin
michael@0 168
michael@0 169 $(_DEST_DIR):
michael@0 170 $(NSINSTALL) -D $@
michael@0 171
michael@0 172 stage-package:
michael@0 173 $(NSINSTALL) -D $(PKG_STAGE)/mochitest && $(NSINSTALL) -D $(PKG_STAGE)/bin/plugins && $(NSINSTALL) -D $(DIST)/plugins
michael@0 174 cp $(DEPTH)/mozinfo.json $(PKG_STAGE)/mochitest
michael@0 175 (cd $(DEPTH)/_tests/testing && tar $(TAR_CREATE_FLAGS) - mochitest) | (cd $(PKG_STAGE) && tar -xf -)
michael@0 176 @cp $(DEPTH)/mozinfo.json $(PKG_STAGE)/mochitest
michael@0 177 @(cd $(DIST_BIN) && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_BINS)) | (cd $(PKG_STAGE)/bin && tar -xf -)
michael@0 178 @(cd $(DIST_BIN)/components && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_COMPONENTS)) | (cd $(PKG_STAGE)/bin/components && tar -xf -)
michael@0 179 (cd $(topsrcdir)/build/pgo && tar $(TAR_CREATE_FLAGS) - certs) | (cd $(PKG_STAGE) && tar -xf -)
michael@0 180 @(cd $(DIST)/plugins && tar $(TAR_CREATE_FLAGS) - $(TEST_HARNESS_PLUGINS)) | (cd $(PKG_STAGE)/bin/plugins && tar -xf -)

mercurial