summaryrefslogtreecommitdiff
path: root/toolkit/mozapps/update/tests/Makefile.in
blob: 0b8d19aa2fa4b7177886bae3cf9ff72a8a0e87d6 (plain)
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
# 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 = $(topobjdir)/_tests/xpcshell/$(relativesrcdir)

pp_const_file = $(srcdir)/data/xpcshellConstantsPP.js

PP_TARGETS            += aus-test-const
aus-test-const        := $(pp_const_file)
aus-test-const_PATH   := $(XPCSHELLTESTROOT)/data
aus-test-const_FLAGS  := -Fsubstitution $(DEFINES) $(ACDEFINES)
aus-test-const_TARGET := misc

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

MOZ_WINCONSOLE = 1

include $(topsrcdir)/config/rules.mk

# 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)