2012-07-03 13:49:02 -07:00
|
|
|
# -*- makefile -*-
|
|
|
|
# vim:set ts=8 sw=8 sts=8 noet:
|
|
|
|
#
|
|
|
|
# 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/.
|
|
|
|
|
|
|
|
ifndef INCLUDED_TESTS_MOCHITEST_MK #{
|
|
|
|
|
2013-03-19 12:34:59 -07:00
|
|
|
# $1- test directory name
|
|
|
|
# $2- optional: if passed dot used to flatten directory hierarchy copy
|
|
|
|
# else- relativesrcdir
|
|
|
|
mochitestdir = \
|
|
|
|
$(strip \
|
|
|
|
$(if $(2),$(DEPTH)/_tests/testing/mochitest/$1/. \
|
2013-09-18 15:39:58 -07:00
|
|
|
,$(DEPTH)/_tests/testing/mochitest/$1/$(relativesrcdir) \
|
|
|
|
))
|
2013-03-19 12:34:59 -07:00
|
|
|
|
2012-07-03 13:49:02 -07:00
|
|
|
|
|
|
|
ifdef MOCHITEST_FILES
|
2013-09-18 15:39:58 -07:00
|
|
|
MOCHITEST_DEST := $(call mochitestdir,tests)
|
|
|
|
INSTALL_TARGETS += MOCHITEST
|
2012-07-03 13:49:02 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOCHITEST_CHROME_FILES
|
2013-09-18 15:39:58 -07:00
|
|
|
MOCHITEST_CHROME_DEST := $(call mochitestdir,chrome)
|
|
|
|
INSTALL_TARGETS += MOCHITEST_CHROME
|
2012-07-03 13:49:02 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOCHITEST_BROWSER_FILES
|
2013-09-18 15:39:58 -07:00
|
|
|
MOCHITEST_BROWSER_DEST := $(call mochitestdir,browser)
|
|
|
|
INSTALL_TARGETS += MOCHITEST_BROWSER
|
2012-07-03 13:49:02 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOCHITEST_A11Y_FILES
|
2013-09-18 15:39:58 -07:00
|
|
|
MOCHITEST_A11Y_DEST := $(call mochitestdir,a11y)
|
|
|
|
INSTALL_TARGETS += MOCHITEST_A11Y
|
2012-07-03 13:49:02 -07:00
|
|
|
endif
|
|
|
|
|
2013-07-19 16:59:23 -07:00
|
|
|
ifdef MOCHITEST_METRO_FILES
|
2013-09-18 15:39:58 -07:00
|
|
|
MOCHITEST_METRO_DEST := $(call mochitestdir,metro)
|
|
|
|
INSTALL_TARGETS += MOCHITEST_METRO
|
2013-07-19 16:59:23 -07:00
|
|
|
endif
|
|
|
|
|
2013-03-19 12:34:59 -07:00
|
|
|
ifdef MOCHITEST_ROBOCOP_FILES
|
2013-09-18 15:39:58 -07:00
|
|
|
MOCHITEST_ROBOCOP_DEST := $(call mochitestdir,tests/robocop,flat_hierarchy)
|
|
|
|
INSTALL_TARGETS += MOCHITEST_ROBOCOP
|
2013-03-19 12:34:59 -07:00
|
|
|
endif
|
|
|
|
|
2012-07-03 13:49:02 -07:00
|
|
|
INCLUDED_TESTS_MOCHITEST_MK := 1
|
|
|
|
|
|
|
|
endif #} INCLUDED_TESTS_MOCHITEST_MK
|