b2g/build.mk
author Andrew Halberstadt <ahalberstadt@mozilla.com>
Mon, 08 Aug 2016 11:48:49 -0400
changeset 398782 43ebf330ad942617aa8526294493a3dd25c0fc8d
parent 177955 c7865e76e945572079a9ff97d6ffcdc13cbfefbb
permissions -rw-r--r--
Bug 1293295 - Replace all mochitest 'flavor' options with a single --flavor argument, r=jmaher This accomplishes three things: 1) Easier to use CLI when running without the benefit of testing/mochitest/mach_commands.py 2) Guarantees these arguments are mutually exclusive 3) Simplifies a bunch of logic in the test harness The primary motivation for this change is to slightly improve the UX when running mochitest from a taskcluster interactive loaner. However, this is more of a bandaid solution that was easy to implement before the proper fix in bug 1293259 can be landed. MozReview-Commit-ID: IeHBGrJ0Sji

# 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/.

include $(topsrcdir)/toolkit/mozapps/installer/package-name.mk

installer: 
	@$(MAKE) -C b2g/installer installer

package:
	@$(MAKE) -C b2g/installer

install::
	@echo 'B2G can't be installed directly.'
	@exit 1

upload::
	@$(MAKE) -C b2g/installer upload

ifdef ENABLE_TESTS
# Implemented in testing/testsuite-targets.mk

mochitest-browser-chrome:
	$(RUN_MOCHITEST) --flavor=browser
	$(CHECK_TEST_ERROR)

mochitest:: mochitest-browser-chrome

.PHONY: mochitest-browser-chrome
endif