mail/test/mozmill/Makefile.in
author Philip Chee <philip.chee@gmail.com>
Wed, 27 Feb 2013 22:05:59 +0800
changeset 12049 8b8ff0fc1c16e0fcf6d3d5410939741328890e6c
parent 10885 6ce4c3cdaf3c3bace2bd82a9c46543a682fe262f
child 12418 993e2baa351076529cf93e613c7ef8044f3f0d90
permissions -rw-r--r--
Back out changeset ddd02164f9f7 (Bug 842618) now that Bug 845341 is fixed r=Neil over IRC. See: Bug 842618 - SeaMonkey contains PrivateBrowsingUtils.jsm, but it throws an exception if used Bug 845341 - PrivateBrowsingUtils.permanentPrivateBrowsing can throw if the autostart pref does not exist
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3125
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
     1
#
10318
Gervase Markham <gerv@gerv.net>
parents: 10056
diff changeset
     2
# This Source Code Form is subject to the terms of the Mozilla Public
Gervase Markham <gerv@gerv.net>
parents: 10056
diff changeset
     3
# License, v. 2.0. If a copy of the MPL was not distributed with this
Gervase Markham <gerv@gerv.net>
parents: 10056
diff changeset
     4
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
3125
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
     5
10885
6ce4c3cdaf3c3bace2bd82a9c46543a682fe262f Part of Bug 781446 - Port bug 774032 (bonus only), bug 763987, bug 742795 to comm-central. Port the bonus part of bug 774032 - Use @DEPTH@ and @relativesrcdir@ replacements in Makefile.in. r=KaiRo
Mark Banner <bugzilla@standard8.plus.com>
parents: 10880
diff changeset
     6
DEPTH		= @DEPTH@
3125
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
     7
topsrcdir	= @top_srcdir@
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
     8
srcdir		= @srcdir@
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
     9
VPATH		= @srcdir@
10885
6ce4c3cdaf3c3bace2bd82a9c46543a682fe262f Part of Bug 781446 - Port bug 774032 (bonus only), bug 763987, bug 742795 to comm-central. Port the bonus part of bug 774032 - Use @DEPTH@ and @relativesrcdir@ replacements in Makefile.in. r=KaiRo
Mark Banner <bugzilla@standard8.plus.com>
parents: 10880
diff changeset
    10
relativesrcdir = @relativesrcdir@
3125
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    11
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    12
include $(DEPTH)/config/autoconf.mk
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    13
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    14
MODULE = mozmill
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    15
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    16
include $(topsrcdir)/config/rules.mk
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    17
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    18
# We're installing to _tests/mozmill
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    19
TARGET_DEPTH = ../..
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    20
include $(MOZILLA_DIR)/build/automation-build.mk
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    21
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    22
_DEST_DIR = $(MOZDEPTH)/_tests/mozmill
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    23
4691
ade6cdcc50d664d870570e286ac955b2ca58b20b Bug 539394 automationutils.py not found building Thunderbird trunk. r=Standard8
Boying Lu <brian.lu@sun.com>
parents: 3444
diff changeset
    24
_HARNESS_FILES = \
ade6cdcc50d664d870570e286ac955b2ca58b20b Bug 539394 automationutils.py not found building Thunderbird trunk. r=Standard8
Boying Lu <brian.lu@sun.com>
parents: 3444
diff changeset
    25
	$(srcdir)/runtest.py \
ade6cdcc50d664d870570e286ac955b2ca58b20b Bug 539394 automationutils.py not found building Thunderbird trunk. r=Standard8
Boying Lu <brian.lu@sun.com>
parents: 3444
diff changeset
    26
	$(srcdir)/runtestlist.py \
ade6cdcc50d664d870570e286ac955b2ca58b20b Bug 539394 automationutils.py not found building Thunderbird trunk. r=Standard8
Boying Lu <brian.lu@sun.com>
parents: 3444
diff changeset
    27
	$(srcdir)/mozmilltests.list \
ade6cdcc50d664d870570e286ac955b2ca58b20b Bug 539394 automationutils.py not found building Thunderbird trunk. r=Standard8
Boying Lu <brian.lu@sun.com>
parents: 3444
diff changeset
    28
	automation.py \
ade6cdcc50d664d870570e286ac955b2ca58b20b Bug 539394 automationutils.py not found building Thunderbird trunk. r=Standard8
Boying Lu <brian.lu@sun.com>
parents: 3444
diff changeset
    29
	$(MOZILLA_DIR)/build/automationutils.py \
ade6cdcc50d664d870570e286ac955b2ca58b20b Bug 539394 automationutils.py not found building Thunderbird trunk. r=Standard8
Boying Lu <brian.lu@sun.com>
parents: 3444
diff changeset
    30
	$(NULL)
3125
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    31
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    32
GARBAGE += automation.py
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    33
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    34
$(_DEST_DIR):
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    35
	$(NSINSTALL) -D $@
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    36
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    37
$(_HARNESS_FILES): $(_DEST_DIR)
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    38
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    39
# Copy the mozmill bits to $(_DEST_DIR)
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    40
libs:: $(_HARNESS_FILES)
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    41
	echo $(_HARNESS_FILES)
63a765629dc88fab2c4d8de839b6d5cb7ffb0eec Bug 500142 Create mozmill and mozmill-one make targets for build automation to use - add the initial targets. r=asuth,gozer
Mark Banner <bugzilla@standard8.plus.com>
parents:
diff changeset
    42
	$(INSTALL) $(_HARNESS_FILES) $(_DEST_DIR)
6131
6bf5559f73a77ed817426a3b60541bbae3298db5 Bug 506202 Hook up mozmill tests to make package-tests and support running packaged test style. r=asuth,gozer. a=Standard8 for checkin to CLOSED TREE as this is build-config/test only and allows work on the new try server to get it nearer completion
Mark Banner <bugzilla@standard8.plus.com>
parents: 5027
diff changeset
    43
6bf5559f73a77ed817426a3b60541bbae3298db5 Bug 506202 Hook up mozmill tests to make package-tests and support running packaged test style. r=asuth,gozer. a=Standard8 for checkin to CLOSED TREE as this is build-config/test only and allows work on the new try server to get it nearer completion
Mark Banner <bugzilla@standard8.plus.com>
parents: 5027
diff changeset
    44
# Copy the mailnews and mail resources that we require.
6bf5559f73a77ed817426a3b60541bbae3298db5 Bug 506202 Hook up mozmill tests to make package-tests and support running packaged test style. r=asuth,gozer. a=Standard8 for checkin to CLOSED TREE as this is build-config/test only and allows work on the new try server to get it nearer completion
Mark Banner <bugzilla@standard8.plus.com>
parents: 5027
diff changeset
    45
libs::
8327
790cc2369783c05a19a3c87f41ec88c0c2b8bbbb Bug 656736 - Upgrade to the latest version of MozMill. r=Standard8
Siddharth Agarwal <sid.bugzilla@gmail.com>
parents: 8310
diff changeset
    46
	$(INSTALL) $(topsrcdir)/mailnews/test/resources/* $(_DEST_DIR)/resources
790cc2369783c05a19a3c87f41ec88c0c2b8bbbb Bug 656736 - Upgrade to the latest version of MozMill. r=Standard8
Siddharth Agarwal <sid.bugzilla@gmail.com>
parents: 8310
diff changeset
    47
	$(INSTALL) $(topsrcdir)/mailnews/test/fakeserver/* $(_DEST_DIR)/resources
790cc2369783c05a19a3c87f41ec88c0c2b8bbbb Bug 656736 - Upgrade to the latest version of MozMill. r=Standard8
Siddharth Agarwal <sid.bugzilla@gmail.com>
parents: 8310
diff changeset
    48
	$(INSTALL) $(topsrcdir)/mail/base/test/unit/resources/* $(_DEST_DIR)/resources
790cc2369783c05a19a3c87f41ec88c0c2b8bbbb Bug 656736 - Upgrade to the latest version of MozMill. r=Standard8
Siddharth Agarwal <sid.bugzilla@gmail.com>
parents: 8310
diff changeset
    49
790cc2369783c05a19a3c87f41ec88c0c2b8bbbb Bug 656736 - Upgrade to the latest version of MozMill. r=Standard8
Siddharth Agarwal <sid.bugzilla@gmail.com>
parents: 8310
diff changeset
    50
# Copy MozMill and its dependencies over, and set up a virtualenv. The
790cc2369783c05a19a3c87f41ec88c0c2b8bbbb Bug 656736 - Upgrade to the latest version of MozMill. r=Standard8
Siddharth Agarwal <sid.bugzilla@gmail.com>
parents: 8310
diff changeset
    51
# virtualenv directory is outside because we don't want to bundle it up during
790cc2369783c05a19a3c87f41ec88c0c2b8bbbb Bug 656736 - Upgrade to the latest version of MozMill. r=Standard8
Siddharth Agarwal <sid.bugzilla@gmail.com>
parents: 8310
diff changeset
    52
# stage-package.
790cc2369783c05a19a3c87f41ec88c0c2b8bbbb Bug 656736 - Upgrade to the latest version of MozMill. r=Standard8
Siddharth Agarwal <sid.bugzilla@gmail.com>
parents: 8310
diff changeset
    53
VIRTUALENV_DIR = $(_DEST_DIR)/../mozmill-virtualenv
790cc2369783c05a19a3c87f41ec88c0c2b8bbbb Bug 656736 - Upgrade to the latest version of MozMill. r=Standard8
Siddharth Agarwal <sid.bugzilla@gmail.com>
parents: 8310
diff changeset
    54
mozmill-virtualenv: NSDISTMODE=copy
790cc2369783c05a19a3c87f41ec88c0c2b8bbbb Bug 656736 - Upgrade to the latest version of MozMill. r=Standard8
Siddharth Agarwal <sid.bugzilla@gmail.com>
parents: 8310
diff changeset
    55
mozmill-virtualenv:
790cc2369783c05a19a3c87f41ec88c0c2b8bbbb Bug 656736 - Upgrade to the latest version of MozMill. r=Standard8
Siddharth Agarwal <sid.bugzilla@gmail.com>
parents: 8310
diff changeset
    56
	$(DIR_INSTALL) $(topsrcdir)/mail/test/resources $(_DEST_DIR)
790cc2369783c05a19a3c87f41ec88c0c2b8bbbb Bug 656736 - Upgrade to the latest version of MozMill. r=Standard8
Siddharth Agarwal <sid.bugzilla@gmail.com>
parents: 8310
diff changeset
    57
	rm -rf $(VIRTUALENV_DIR) && \
790cc2369783c05a19a3c87f41ec88c0c2b8bbbb Bug 656736 - Upgrade to the latest version of MozMill. r=Standard8
Siddharth Agarwal <sid.bugzilla@gmail.com>
parents: 8310
diff changeset
    58
	mkdir $(VIRTUALENV_DIR) && \
10658
f71ece130895b40234ff56b6741e54eeea56f99a Fix bug 774203 - Error with python 2.7 distuils when installing mozmill. r=Standard8
Philipp Kewisch <mozilla@kewis.ch>
parents: 10318
diff changeset
    59
	unset MACOSX_DEPLOYMENT_TARGET && \
f71ece130895b40234ff56b6741e54eeea56f99a Fix bug 774203 - Error with python 2.7 distuils when installing mozmill. r=Standard8
Philipp Kewisch <mozilla@kewis.ch>
parents: 10318
diff changeset
    60
	$(PYTHON) $(_DEST_DIR)/resources/installmozmill.py $(VIRTUALENV_DIR)
8327
790cc2369783c05a19a3c87f41ec88c0c2b8bbbb Bug 656736 - Upgrade to the latest version of MozMill. r=Standard8
Siddharth Agarwal <sid.bugzilla@gmail.com>
parents: 8310
diff changeset
    61
790cc2369783c05a19a3c87f41ec88c0c2b8bbbb Bug 656736 - Upgrade to the latest version of MozMill. r=Standard8
Siddharth Agarwal <sid.bugzilla@gmail.com>
parents: 8310
diff changeset
    62
libs:: mozmill-virtualenv
6131
6bf5559f73a77ed817426a3b60541bbae3298db5 Bug 506202 Hook up mozmill tests to make package-tests and support running packaged test style. r=asuth,gozer. a=Standard8 for checkin to CLOSED TREE as this is build-config/test only and allows work on the new try server to get it nearer completion
Mark Banner <bugzilla@standard8.plus.com>
parents: 5027
diff changeset
    63
6bf5559f73a77ed817426a3b60541bbae3298db5 Bug 506202 Hook up mozmill tests to make package-tests and support running packaged test style. r=asuth,gozer. a=Standard8 for checkin to CLOSED TREE as this is build-config/test only and allows work on the new try server to get it nearer completion
Mark Banner <bugzilla@standard8.plus.com>
parents: 5027
diff changeset
    64
PKG_STAGE = $(DIST)/test-package-stage
6bf5559f73a77ed817426a3b60541bbae3298db5 Bug 506202 Hook up mozmill tests to make package-tests and support running packaged test style. r=asuth,gozer. a=Standard8 for checkin to CLOSED TREE as this is build-config/test only and allows work on the new try server to get it nearer completion
Mark Banner <bugzilla@standard8.plus.com>
parents: 5027
diff changeset
    65
6bf5559f73a77ed817426a3b60541bbae3298db5 Bug 506202 Hook up mozmill tests to make package-tests and support running packaged test style. r=asuth,gozer. a=Standard8 for checkin to CLOSED TREE as this is build-config/test only and allows work on the new try server to get it nearer completion
Mark Banner <bugzilla@standard8.plus.com>
parents: 5027
diff changeset
    66
stage-package:
6bf5559f73a77ed817426a3b60541bbae3298db5 Bug 506202 Hook up mozmill tests to make package-tests and support running packaged test style. r=asuth,gozer. a=Standard8 for checkin to CLOSED TREE as this is build-config/test only and allows work on the new try server to get it nearer completion
Mark Banner <bugzilla@standard8.plus.com>
parents: 5027
diff changeset
    67
	$(NSINSTALL) -D $(PKG_STAGE)/mozmill/
6bf5559f73a77ed817426a3b60541bbae3298db5 Bug 506202 Hook up mozmill tests to make package-tests and support running packaged test style. r=asuth,gozer. a=Standard8 for checkin to CLOSED TREE as this is build-config/test only and allows work on the new try server to get it nearer completion
Mark Banner <bugzilla@standard8.plus.com>
parents: 5027
diff changeset
    68
	@(cd $(topsrcdir)/mail/test/mozmill && tar $(TAR_CREATE_FLAGS) - *) | (cd $(PKG_STAGE)/mozmill/ && tar -xf -)
6bf5559f73a77ed817426a3b60541bbae3298db5 Bug 506202 Hook up mozmill tests to make package-tests and support running packaged test style. r=asuth,gozer. a=Standard8 for checkin to CLOSED TREE as this is build-config/test only and allows work on the new try server to get it nearer completion
Mark Banner <bugzilla@standard8.plus.com>
parents: 5027
diff changeset
    69
	@(cd $(MOZDEPTH)/_tests/mozmill && tar $(TAR_CREATE_FLAGS) - *) | (cd $(PKG_STAGE)/mozmill/ && tar -xf -)