layout/tools/reftest/Makefile.in

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

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

mercurial