Backout a74bd5095902, Bug 959405 - Please update the Buri Moz-central, 1.3, 1.2 with...
[gecko.git] / config / makefiles / mochitest.mk
blob82182cbb998d7001a64fd4f8c5e89423755d54f5
1 # -*- makefile -*-
2 # vim:set ts=8 sw=8 sts=8 noet:
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/.
8 ifndef INCLUDED_TESTS_MOCHITEST_MK #{
10 # $1- test directory name
11 # $2- optional: if passed dot used to flatten directory hierarchy copy
12 # else- relativesrcdir
13 mochitestdir = \
14 $(strip \
15 $(if $(2),$(DEPTH)/_tests/testing/mochitest/$1/. \
16 ,$(DEPTH)/_tests/testing/mochitest/$1/$(relativesrcdir) \
20 ifdef MOCHITEST_FILES
21 MOCHITEST_DEST := $(call mochitestdir,tests)
22 INSTALL_TARGETS += MOCHITEST
23 endif
25 ifdef MOCHITEST_CHROME_FILES
26 MOCHITEST_CHROME_DEST := $(call mochitestdir,chrome)
27 INSTALL_TARGETS += MOCHITEST_CHROME
28 endif
30 ifdef MOCHITEST_BROWSER_FILES
31 MOCHITEST_BROWSER_DEST := $(call mochitestdir,browser)
32 INSTALL_TARGETS += MOCHITEST_BROWSER
33 endif
35 ifdef MOCHITEST_A11Y_FILES
36 MOCHITEST_A11Y_DEST := $(call mochitestdir,a11y)
37 INSTALL_TARGETS += MOCHITEST_A11Y
38 endif
40 ifdef MOCHITEST_METRO_FILES
41 MOCHITEST_METRO_DEST := $(call mochitestdir,metro)
42 INSTALL_TARGETS += MOCHITEST_METRO
43 endif
45 ifdef MOCHITEST_ROBOCOP_FILES
46 MOCHITEST_ROBOCOP_DEST := $(call mochitestdir,tests/robocop,flat_hierarchy)
47 INSTALL_TARGETS += MOCHITEST_ROBOCOP
48 endif
50 INCLUDED_TESTS_MOCHITEST_MK := 1
52 endif #} INCLUDED_TESTS_MOCHITEST_MK