2012-05-21 04:12:37 -07:00
|
|
|
|
# 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/.
|
2008-08-16 22:40:34 -07:00
|
|
|
|
|
2010-08-26 14:47:28 -07:00
|
|
|
|
TESTROOT = $(call core_abspath,$(DEPTH))/_tests/xpcshell/$(relativesrcdir)
|
2008-08-17 19:15:10 -07:00
|
|
|
|
|
2010-10-19 21:28:29 -07:00
|
|
|
|
DEFINES += \
|
|
|
|
|
-DAB_CD=$(AB_CD) \
|
|
|
|
|
-DMOZ_APP_NAME=$(MOZ_APP_NAME) \
|
2012-07-17 12:10:11 -07:00
|
|
|
|
-DMOZ_APP_DISPLAYNAME="$(MOZ_APP_DISPLAYNAME)" \
|
2010-10-19 21:28:29 -07:00
|
|
|
|
-DBIN_SUFFIX=$(BIN_SUFFIX) \
|
|
|
|
|
-DNS_NO_XPCOM \
|
2012-05-22 07:50:04 -07:00
|
|
|
|
-DMOZ_DEBUG=$(MOZ_DEBUG) \
|
2010-10-19 21:28:29 -07:00
|
|
|
|
$(NULL)
|
|
|
|
|
|
2012-07-05 00:42:03 -07:00
|
|
|
|
ifdef MOZ_MAINTENANCE_SERVICE
|
|
|
|
|
DEFINES += -DMOZ_MAINTENANCE_SERVICE=$(MOZ_MAINTENANCE_SERVICE)
|
|
|
|
|
endif
|
|
|
|
|
|
2012-12-16 12:53:57 -08:00
|
|
|
|
ifneq (android,$(MOZ_WIDGET_TOOLKIT))
|
2009-02-08 13:44:02 -08:00
|
|
|
|
INI_TEST_FILES = \
|
|
|
|
|
TestAUSReadStrings1.ini \
|
|
|
|
|
TestAUSReadStrings2.ini \
|
|
|
|
|
TestAUSReadStrings3.ini \
|
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += \
|
|
|
|
|
-I$(srcdir) \
|
2010-01-26 04:11:00 -08:00
|
|
|
|
-I$(topsrcdir)/toolkit/mozapps/update \
|
2012-01-04 20:19:14 -08:00
|
|
|
|
-I$(topsrcdir)/toolkit/mozapps/update/common \
|
2009-02-08 13:44:02 -08:00
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
|
|
MOZ_WINCONSOLE = 1
|
|
|
|
|
|
|
|
|
|
LIBS += \
|
2012-03-05 12:47:46 -08:00
|
|
|
|
../common/$(LIB_PREFIX)updatecommon.$(LIB_SUFFIX) \
|
2009-02-08 13:44:02 -08:00
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
|
USE_STATIC_LIBS = 1
|
|
|
|
|
DEFINES += -DUNICODE -D_UNICODE
|
|
|
|
|
endif
|
2011-06-04 22:31:23 -07:00
|
|
|
|
endif # Not Android
|
2008-08-17 19:15:10 -07:00
|
|
|
|
|
2008-08-16 22:40:34 -07:00
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
2008-08-17 19:15:10 -07:00
|
|
|
|
|
2012-12-16 12:53:57 -08:00
|
|
|
|
ifneq (android,$(MOZ_WIDGET_TOOLKIT))
|
2009-02-08 13:44:02 -08:00
|
|
|
|
# TestAUSReadStrings runs during check in the following directory with a Unicode
|
2009-02-08 16:03:25 -08:00
|
|
|
|
# char in order to test bug 473417 on Windows.
|
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
2009-02-08 13:44:02 -08:00
|
|
|
|
bug473417dir = test_bug473417-<2D>
|
2009-02-08 16:03:25 -08:00
|
|
|
|
else
|
|
|
|
|
bug473417dir = test_bug473417
|
|
|
|
|
endif
|
2009-02-08 13:44:02 -08:00
|
|
|
|
|
|
|
|
|
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)
|
2011-06-04 22:31:23 -07:00
|
|
|
|
endif # Not Android
|
2010-10-19 21:28:29 -07:00
|
|
|
|
|
|
|
|
|
libs:: unit/head_update.js.in
|
|
|
|
|
$(PYTHON) $(MOZILLA_DIR)/config/Preprocessor.py -Fsubstitution $(DEFINES) $(ACDEFINES) $^ > $(TESTROOT)/unit/head_update.js
|
2010-11-06 23:41:49 -07:00
|
|
|
|
|
2012-12-16 12:53:57 -08:00
|
|
|
|
ifneq (android,$(MOZ_WIDGET_TOOLKIT))
|
2011-04-14 02:23:13 -07:00
|
|
|
|
ifndef MOZ_PROFILE_GENERATE
|
2010-11-06 23:41:49 -07:00
|
|
|
|
libs::
|
|
|
|
|
$(INSTALL) TestAUSHelper$(BIN_SUFFIX) $(DEPTH)/_tests/xpcshell/$(relativesrcdir)/unit
|
2011-04-14 02:23:13 -07:00
|
|
|
|
endif
|
2012-12-16 12:53:57 -08:00
|
|
|
|
endif
|