~ubuntu-branches/ubuntu/quantal/enigmail/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/config/makefiles/xpcshell.mk

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2013-09-13 16:02:15 UTC
  • mfrom: (0.12.16)
  • Revision ID: package-import@ubuntu.com-20130913160215-u3g8nmwa0pdwagwc
Tags: 2:1.5.2-0ubuntu0.12.10.1
* New upstream release v1.5.2 for Thunderbird 24

* Build enigmail using a stripped down Thunderbird 17 build system, as it's
  now quite difficult to build the way we were doing previously, with the
  latest Firefox build system
* Add debian/patches/no_libxpcom.patch - Don't link against libxpcom, as it
  doesn't exist anymore (but exists in the build system)
* Add debian/patches/use_sdk.patch - Use the SDK version of xpt.py and
  friends
* Drop debian/patches/ipc-pipe_rename.diff (not needed anymore)
* Drop debian/patches/makefile_depth.diff (not needed anymore)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- makefile -*-
 
2
# vim:set ts=8 sw=8 sts=8 noet:
 
3
#
 
4
# This Source Code Form is subject to the terms of the Mozilla Public
 
5
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
 
6
# You can obtain one at http://mozilla.org/MPL/2.0/.
 
7
#
 
8
 
 
9
ifndef INCLUDED_TESTS_XPCSHELL_MK #{
 
10
 
 
11
ifdef XPCSHELL_TESTS #{
 
12
 
 
13
ifndef relativesrcdir
 
14
$(error Must define relativesrcdir when defining XPCSHELL_TESTS.)
 
15
endif
 
16
 
 
17
define _INSTALL_TESTS
 
18
$(call install_cmd, $(wildcard $(srcdir)/$(dir)/*) $(testxpcobjdir)/$(relativesrcdir)/$(dir))
 
19
 
 
20
endef # do not remove the blank line!
 
21
 
 
22
SOLO_FILE ?= $(error Specify a test filename in SOLO_FILE when using check-interactive or check-one)
 
23
 
 
24
testxpcsrcdir = $(topsrcdir)/testing/xpcshell
 
25
 
 
26
libs:: libs-xpcshell-tests
 
27
 
 
28
###########################################################################
 
29
libs-xpcshell-tests:
 
30
        $(foreach dir,$(XPCSHELL_TESTS),$(_INSTALL_TESTS))
 
31
ifndef NO_XPCSHELL_MANIFEST_CHECK #{
 
32
        $(PYTHON) $(MOZILLA_DIR)/build/xpccheck.py \
 
33
          $(topsrcdir) \
 
34
          $(topsrcdir)/testing/xpcshell/xpcshell.ini \
 
35
          $(addprefix $(MOZILLA_DIR)/$(relativesrcdir)/,$(XPCSHELL_TESTS))
 
36
endif #} NO_XPCSHELL_MANIFEST_CHECK 
 
37
 
 
38
###########################################################################
 
39
# Execute all tests in the $(XPCSHELL_TESTS) directories.
 
40
# See also testsuite-targets.mk 'xpcshell-tests' target for global execution.
 
41
xpcshell-tests:
 
42
        $(PYTHON) -u $(topsrcdir)/config/pythonpath.py \
 
43
          -I$(topsrcdir)/build \
 
44
      -I$(DEPTH)/_tests/mozbase/mozinfo \
 
45
          $(testxpcsrcdir)/runxpcshelltests.py \
 
46
          --symbols-path=$(DIST)/crashreporter-symbols \
 
47
          --build-info-json=$(DEPTH)/mozinfo.json \
 
48
          --tests-root-dir=$(testxpcobjdir) \
 
49
          --testing-modules-dir=$(DEPTH)/_tests/modules \
 
50
          --xunit-file=$(testxpcobjdir)/$(relativesrcdir)/results.xml \
 
51
          --xunit-suite-name=xpcshell \
 
52
          $(EXTRA_TEST_ARGS) \
 
53
          $(LIBXUL_DIST)/bin/xpcshell \
 
54
          $(foreach dir,$(XPCSHELL_TESTS),$(testxpcobjdir)/$(relativesrcdir)/$(dir))
 
55
 
 
56
xpcshell-tests-remote: DM_TRANS?=adb
 
57
xpcshell-tests-remote:
 
58
        $(PYTHON) -u $(topsrcdir)/config/pythonpath.py \
 
59
          -I$(topsrcdir)/build \
 
60
          -I$(topsrcdir)/build/mobile \
 
61
          $(topsrcdir)/testing/xpcshell/remotexpcshelltests.py \
 
62
          --symbols-path=$(DIST)/crashreporter-symbols \
 
63
          --build-info-json=$(DEPTH)/mozinfo.json \
 
64
          $(EXTRA_TEST_ARGS) \
 
65
          --dm_trans=$(DM_TRANS) \
 
66
          --deviceIP=${TEST_DEVICE} \
 
67
          --objdir=$(DEPTH) \
 
68
          $(foreach dir,$(XPCSHELL_TESTS),$(testxpcobjdir)/$(relativesrcdir)/$(dir))
 
69
 
 
70
###########################################################################
 
71
# Execute a single test, specified in $(SOLO_FILE), but don't automatically
 
72
# start the test. Instead, present the xpcshell prompt so the user can
 
73
# attach a debugger and then start the test.
 
74
check-interactive:
 
75
        $(PYTHON) -u $(topsrcdir)/config/pythonpath.py \
 
76
          -I$(topsrcdir)/build \
 
77
      -I$(DEPTH)/_tests/mozbase/mozinfo \
 
78
          $(testxpcsrcdir)/runxpcshelltests.py \
 
79
          --symbols-path=$(DIST)/crashreporter-symbols \
 
80
          --build-info-json=$(DEPTH)/mozinfo.json \
 
81
          --test-path=$(SOLO_FILE) \
 
82
          --testing-modules-dir=$(DEPTH)/_tests/modules \
 
83
          --profile-name=$(MOZ_APP_NAME) \
 
84
          --interactive \
 
85
          $(LIBXUL_DIST)/bin/xpcshell \
 
86
          $(foreach dir,$(XPCSHELL_TESTS),$(testxpcobjdir)/$(relativesrcdir)/$(dir))
 
87
 
 
88
# Execute a single test, specified in $(SOLO_FILE)
 
89
check-one:
 
90
        $(PYTHON) -u $(topsrcdir)/config/pythonpath.py \
 
91
          -I$(topsrcdir)/build \
 
92
      -I$(DEPTH)/_tests/mozbase/mozinfo \
 
93
          $(testxpcsrcdir)/runxpcshelltests.py \
 
94
          --symbols-path=$(DIST)/crashreporter-symbols \
 
95
          --build-info-json=$(DEPTH)/mozinfo.json \
 
96
          --test-path=$(SOLO_FILE) \
 
97
          --testing-modules-dir=$(DEPTH)/_tests/modules \
 
98
          --profile-name=$(MOZ_APP_NAME) \
 
99
          --verbose \
 
100
          $(EXTRA_TEST_ARGS) \
 
101
          $(LIBXUL_DIST)/bin/xpcshell \
 
102
          $(foreach dir,$(XPCSHELL_TESTS),$(testxpcobjdir)/$(relativesrcdir)/$(dir))
 
103
 
 
104
check-one-remote: DM_TRANS?=adb
 
105
check-one-remote:
 
106
        $(PYTHON) -u $(topsrcdir)/config/pythonpath.py \
 
107
          -I$(topsrcdir)/build \
 
108
          -I$(topsrcdir)/build/mobile \
 
109
          $(testxpcsrcdir)/remotexpcshelltests.py \
 
110
          --symbols-path=$(DIST)/crashreporter-symbols \
 
111
          --build-info-json=$(DEPTH)/mozinfo.json \
 
112
          --test-path=$(SOLO_FILE) \
 
113
          --profile-name=$(MOZ_APP_NAME) \
 
114
          --verbose \
 
115
          $(EXTRA_TEST_ARGS) \
 
116
          --dm_trans=$(DM_TRANS) \
 
117
          --deviceIP=${TEST_DEVICE} \
 
118
          --objdir=$(DEPTH) \
 
119
          --noSetup \
 
120
          $(foreach dir,$(XPCSHELL_TESTS),$(testxpcobjdir)/$(relativesrcdir)/$(dir))
 
121
 
 
122
 
 
123
.PHONY: xpcshell-tests check-interactive check-one libs-xpcshell-tests
 
124
 
 
125
endif #} XPCSHELL_TESTS
 
126
 
 
127
INCLUDED_TESTS_XPCSHELL_MK = 1
 
128
endif #} INCLUDED_TESTS_XPCSHELL_MK