Fix
bug 1067007 - [mozmill] tests do not work after TB build changes. r/a=Standard8
--- a/calendar/test/mozmill/Makefile.in
+++ b/calendar/test/mozmill/Makefile.in
@@ -4,34 +4,34 @@
DEPTH = @DEPTH@
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
-MOZMILLDIR=$(DEPTH)/mozilla/_tests/mozmill
+MOZMILLDIR=$(DEPTH)/_tests/mozmill
ifeq ($(OS_ARCH),WINNT)
VIRTUALENV_BIN = $(MOZMILLDIR)/../mozmill-virtualenv/Scripts
else
VIRTUALENV_BIN = $(MOZMILLDIR)/../mozmill-virtualenv/bin
endif
MOZMILLPYTHON = $(abspath $(VIRTUALENV_BIN)/python$(BIN_SUFFIX))
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
# Mac options
APP_NAME = $(MOZ_APP_DISPLAYNAME)
ifdef MOZ_DEBUG
APP_NAME := $(APP_NAME)Debug
endif
-MOZMILLPROGRAM = $(DIST)/$(APP_NAME).app/
+MOZMILLPROGRAM = $(abspath $(DIST)/$(APP_NAME).app/)
else
# Non-mac options
-MOZMILLPROGRAM = $(DIST)/bin/thunderbird$(BIN_SUFFIX)
+MOZMILLPROGRAM = $(abspath $(DIST)/bin/thunderbird$(BIN_SUFFIX))
endif
check-no-solo = $(foreach solo,SOLO_TEST SOLO_FILE,$(if $($(solo)),$(error $(subst SOLOVAR,$(solo),$(1)))))
find-solo-test = $(if $(and $(SOLO_TEST),$(SOLO_FILE)),$(error Both SOLO_TEST and SOLO_FILE are specified. You may only specify one.),$(if $(SOLO_TEST),$(SOLO_TEST),$(if $(SOLO_FILE),$(SOLO_FILE),$(error SOLO_TEST or SOLO_FILE needs to be specified.))))
include $(topsrcdir)/config/rules.mk
# Calendar uses both its own shared modules and those from Thunderbird. Since
--- a/mail/testsuite-targets.mk
+++ b/mail/testsuite-targets.mk
@@ -45,19 +45,20 @@ mozmill-one:
--symbols-path=$(abspath $(DIST)/crashreporter-symbols) \
--plugins-path=$(abspath $(DIST)/plugins) \
$(MOZMILL_EXTRA)
# We need to add the mozmill tests to the package for tests.
ifndef UNIVERSAL_BINARY
# If Lightning is enabled, also stage the lightning extension
ifdef MOZ_CALENDAR
-package-tests: stage-calendar
+package-tests: stage-mozmill stage-calendar
+else
+package-tests: stage-mozmill
endif
-package-tests: stage-mozmill
endif
stage-mozmill: make-stage-dir
$(MAKE) -C $(DEPTH)/mail/test/mozmill stage-package
stage-calendar: make-stage-dir
$(MAKE) -C $(DEPTH)/calendar/lightning stage-package