layout/tools/reftest/Makefile.in

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

michael@0 1 # vim: set shiftwidth=8 tabstop=8 autoindent noexpandtab copyindent:
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 ifdef XPI_NAME
michael@0 7 NO_JS_MANIFEST = 1
michael@0 8 DIST_FILES = install.rdf
michael@0 9
michael@0 10 ifeq ($(MOZ_BUILD_APP),mobile/android)
michael@0 11 DEFINES += -DBOOTSTRAP
michael@0 12 DIST_FILES += bootstrap.js
michael@0 13 endif
michael@0 14
michael@0 15 ifeq ($(MOZ_BUILD_APP),b2g)
michael@0 16 DEFINES += -DBOOTSTRAP
michael@0 17 DEFINES += -DREFTEST_B2G
michael@0 18 endif
michael@0 19
michael@0 20 # Used in install.rdf
michael@0 21 USE_EXTENSION_MANIFEST=1
michael@0 22 else
michael@0 23 EXTRA_COMPONENTS += reftest-cmdline.manifest
michael@0 24 endif
michael@0 25
michael@0 26 _DEST_DIR = $(DEPTH)/_tests/reftest
michael@0 27
michael@0 28 _HARNESS_FILES = \
michael@0 29 $(srcdir)/runreftest.py \
michael@0 30 $(srcdir)/remotereftest.py \
michael@0 31 $(srcdir)/runreftestb2g.py \
michael@0 32 $(srcdir)/b2g_desktop.py \
michael@0 33 automation.py \
michael@0 34 $(topsrcdir)/testing/mozbase/mozdevice/mozdevice/devicemanager.py \
michael@0 35 $(topsrcdir)/testing/mozbase/mozdevice/mozdevice/devicemanagerADB.py \
michael@0 36 $(topsrcdir)/testing/mozbase/mozdevice/mozdevice/devicemanagerSUT.py \
michael@0 37 $(topsrcdir)/testing/mozbase/mozdevice/mozdevice/droid.py \
michael@0 38 $(topsrcdir)/testing/mozbase/mozdevice/mozdevice/Zeroconf.py \
michael@0 39 $(topsrcdir)/testing/mozbase/moznetwork/moznetwork/moznetwork.py \
michael@0 40 $(topsrcdir)/build/mobile/b2gautomation.py \
michael@0 41 $(topsrcdir)/build/automationutils.py \
michael@0 42 $(topsrcdir)/build/mobile/remoteautomation.py \
michael@0 43 $(topsrcdir)/testing/mochitest/server.js \
michael@0 44 $(topsrcdir)/build/pgo/server-locations.txt \
michael@0 45 $(NULL)
michael@0 46
michael@0 47 _HARNESS_PP_FILES = \
michael@0 48 b2g_start_script.js \
michael@0 49 $(NULL)
michael@0 50 _HARNESS_PP_FILES_PATH = $(_DEST_DIR)
michael@0 51 PP_TARGETS += _HARNESS_PP_FILES
michael@0 52
michael@0 53 include $(topsrcdir)/config/rules.mk
michael@0 54
michael@0 55 # We're installing to _tests/reftest
michael@0 56 TARGET_DEPTH = ../..
michael@0 57 include $(topsrcdir)/build/automation-build.mk
michael@0 58
michael@0 59 # We want to get an extension-packaged version of reftest as well,
michael@0 60 # so this seems to be the simplest way to make that happen.
michael@0 61 ifndef XPI_NAME
michael@0 62 make-xpi:
michael@0 63 +$(MAKE) -C $(DEPTH)/netwerk/test/httpserver libs XPI_NAME=reftest
michael@0 64 +$(MAKE) libs XPI_NAME=reftest
michael@0 65 copy-harness: make-xpi
michael@0 66 libs:: copy-harness
michael@0 67 endif
michael@0 68
michael@0 69 $(_DEST_DIR):
michael@0 70 $(NSINSTALL) -D $@
michael@0 71
michael@0 72 $(_HARNESS_FILES): $(_DEST_DIR)
michael@0 73
michael@0 74 # copy harness and the reftest extension bits to $(_DEST_DIR)
michael@0 75 copy-harness: $(_HARNESS_FILES) $(addprefix $(_DEST_DIR)/,$(_HARNESS_PP_FILES))
michael@0 76 $(INSTALL) $(_HARNESS_FILES) $(_DEST_DIR)
michael@0 77 (cd $(DIST)/xpi-stage && tar $(TAR_CREATE_FLAGS) - reftest) | (cd $(_DEST_DIR) && tar -xf -)
michael@0 78
michael@0 79 PKG_STAGE = $(DIST)/test-package-stage
michael@0 80
michael@0 81 # stage harness and tests for packaging
michael@0 82 stage-package:
michael@0 83 $(NSINSTALL) -D $(PKG_STAGE)/reftest && $(NSINSTALL) -D $(PKG_STAGE)/reftest/tests
michael@0 84 (cd $(DEPTH)/_tests/reftest/ && tar $(TAR_CREATE_FLAGS) - *) | (cd $(PKG_STAGE)/reftest && tar -xf -)
michael@0 85 $(PYTHON) $(topsrcdir)/layout/tools/reftest/print-manifest-dirs.py \
michael@0 86 $(topsrcdir) \
michael@0 87 $(topsrcdir)/layout/reftests/reftest.list \
michael@0 88 $(topsrcdir)/testing/crashtest/crashtests.list \
michael@0 89 | (cd $(topsrcdir) && xargs tar $(TAR_CREATE_FLAGS) -) \
michael@0 90 | (cd $(PKG_STAGE)/reftest/tests && tar -xf -)

mercurial