bug 447664 - make top level Makefile targets to run test suites work on comm-central, r=ted
authorRobert Kaiser <kairo@kairo.at>
Wed, 20 Aug 2008 16:42:13 +0200
changeset 150 7a5b12a221af8bffa08eb27db9b9e5655c1df0d3
parent 149 9aff77e03bb47476a9799f3c334d36613396d014
child 151 9dae4af4b459a5e093f1637c1b88190776203a46
push idunknown
push userunknown
push dateunknown
reviewersted
bugs447664
bug 447664 - make top level Makefile targets to run test suites work on comm-central, r=ted
Makefile.in
suite/build.mk
--- a/Makefile.in
+++ b/Makefile.in
@@ -36,17 +36,17 @@
 
 DEPTH		= .
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(topsrcdir)/config/config.mk
 
-default install export libs clean realclean distclean alldep maybe_clobber_profiledbuild check rebase splitsymbols uploadsymbols signnss deliver::
+default install export libs clean realclean distclean alldep maybe_clobber_profiledbuild check rebase splitsymbols uploadsymbols signnss deliver mochitest mochitest-plain mochitest-chrome mochitest-browser-chrome mochitest-a11y::
 	$(MAKE) -C mozilla $@
 
 # http://bugzilla.mozilla.org/show_bug.cgi?id=450485
 buildsymbols ::
 	$(MAKE) -C mozilla $@ MAKE_SYM_STORE_PATH=..
 
 include $(topsrcdir)/$(MOZ_BUILD_APP)/build.mk
 
--- a/suite/build.mk
+++ b/suite/build.mk
@@ -81,8 +81,22 @@ endif # COMM_BUILD
 installer:
 	@$(MAKE) -C suite/installer installer
 
 package:
 	@$(MAKE) -C suite/installer
 
 install::
 	@$(MAKE) -C suite/installer install
+
+ifndef COMM_BUILD
+# mochitests need to be run from the Mozilla build system
+ifdef ENABLE_TESTS
+# Implemented in testing/testsuite-targets.mk
+mochitest-browser-chrome:
+	$(RUN_MOCHITEST) --browser-chrome
+	$(CHECK_TEST_ERROR)
+
+mochitest:: mochitest-browser-chrome
+
+.PHONY: mochitest-browser-chrome
+endif
+endif