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
# 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/.

XPCSHELLTESTROOT = $(abspath $(DEPTH))/_tests/xpcshell/$(relativesrcdir)
CHROMETESTROOT = $(abspath $(DEPTH))/_tests/testing/mochitest/chrome/$(relativesrcdir)

PP_TARGETS            += aus-update-head
aus-update-head_FLAGS := -Fsubstitution $(DEFINES) $(ACDEFINES)
aus-update-head       := $(srcdir)/unit_aus_update/head_update.js
aus-update-head_PATH  := $(XPCSHELLTESTROOT)/unit_aus_update

INSTALL_TARGETS       += xpcshell-data
xpcshell-data_TARGET  := libs
xpcshell-data_DEST    := $(XPCSHELLTESTROOT)/data
xpcshell-data_FILES   := $(wildcard $(srcdir)/data/*)

# Android doesn't use the Mozilla updater or the toolkit update UI
ifneq (android,$(MOZ_WIDGET_TOOLKIT))
INSTALL_TARGETS           += base-updater-head
base-updater-head_TARGET  := libs
base-updater-head_DEST    := $(XPCSHELLTESTROOT)/unit_base_updater
base-updater-head_FILES   := $(XPCSHELLTESTROOT)/unit_aus_update/head_update.js

ifdef MOZ_MAINTENANCE_SERVICE
ifndef HAVE_64BIT_BUILD
INSTALL_TARGETS              += service-updater-head
service-updater-head_TARGET  := libs
service-updater-head_DEST    := $(XPCSHELLTESTROOT)/unit_service_updater
service-updater-head_FILES   := $(XPCSHELLTESTROOT)/unit_aus_update/head_update.js
endif # HAVE_64BIT_BUILD
endif # MOZ_MAINTENANCE_SERVICE

ifndef MOZ_PROFILE_GENERATE
ifdef COMPILE_ENVIRONMENT
INSTALL_TARGETS              += xpcshell-test-helper
xpcshell-test-helper_TARGET  := libs
xpcshell-test-helper_DEST    := $(XPCSHELLTESTROOT)/data
xpcshell-test-helper_FILES   := $(DIST)/bin/TestAUSHelper$(BIN_SUFFIX)
endif
endif # Not MOZ_PROFILE_GENERATE

_CHROME_SHARED := \
  update.sjs \
  utils.js \
  $(NULL)
PP_TARGETS         += chrome-shared
chrome-shared      := $(addprefix $(srcdir)/chrome/,$(_CHROME_SHARED))
chrome-shared_PATH := $(CHROMETESTROOT)/chrome

_CHROME_DATA := \
  simple.mar \
  $(NULL)
INSTALL_TARGETS     += chrome-data
chrome-data_TARGET  := libs
chrome-data_DEST    := $(CHROMETESTROOT)/data
chrome-data_FILES   := $(addprefix $(srcdir)/data/,$(_CHROME_DATA))

INI_TEST_FILES = \
  TestAUSReadStrings1.ini \
  TestAUSReadStrings2.ini \
  TestAUSReadStrings3.ini \
  $(NULL)

MOZ_GLUE_LDFLAGS =
MOZ_WINCONSOLE = 1

endif # Not Android

include $(topsrcdir)/config/rules.mk

ifneq (android,$(MOZ_WIDGET_TOOLKIT))
# TestAUSReadStrings runs during check in the following directory with a Unicode
# char in order to test bug 473417 on Windows.
ifeq ($(OS_ARCH),WINNT)
bug473417dir = test_bug473417-รณ
else
bug473417dir = test_bug473417
endif

check::
	$(RM) -rf $(DEPTH)/_tests/updater/ && $(NSINSTALL) -D $(DEPTH)/_tests/updater/$(bug473417dir)/
	for i in $(INI_TEST_FILES); do \
	  $(INSTALL) $(srcdir)/$$i $(DEPTH)/_tests/updater/$(bug473417dir)/; \
	done
	$(INSTALL) $(FINAL_TARGET)/TestAUSReadStrings$(BIN_SUFFIX) $(DEPTH)/_tests/updater/$(bug473417dir)/
	@$(RUN_TEST_PROGRAM) $(DEPTH)/_tests/updater/$(bug473417dir)/TestAUSReadStrings$(BIN_SUFFIX)
endif # Not Android