2012-05-21 15:12:37 +04:00
|
|
|
# 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/.
|
1998-08-20 00:42:14 +04:00
|
|
|
|
2008-08-12 04:01:47 +04:00
|
|
|
# Make sure we have symbols in case we need to debug these.
|
|
|
|
MOZ_DEBUG_SYMBOLS = 1
|
|
|
|
|
2014-09-22 23:10:31 +04:00
|
|
|
# Don't add our test-only .xpt files to the normal manifests
|
|
|
|
NO_INTERFACES_MANIFEST = 1
|
|
|
|
|
1999-07-23 03:20:25 +04:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2011-04-14 13:23:13 +04:00
|
|
|
ifneq (,$(SIMPLE_PROGRAMS))
|
2014-11-24 03:36:58 +03:00
|
|
|
test_programs_FILES = $(SIMPLE_PROGRAMS)
|
|
|
|
test_programs_DEST := $(DEPTH)/_tests/xpcshell/$(relativesrcdir)/unit
|
|
|
|
test_programs_TARGET := misc
|
|
|
|
INSTALL_TARGETS += test_programs
|
2011-04-14 13:23:13 +04:00
|
|
|
endif
|
1999-05-27 12:50:52 +04:00
|
|
|
|
2014-11-24 03:36:58 +03:00
|
|
|
xpcomtest_FILES := $(DIST)/bin/components/xpcomtest.xpt
|
|
|
|
xpcomtest_DEST := $(DEPTH)/_tests/xpcshell/$(relativesrcdir)/unit
|
|
|
|
xpcomtest_TARGET := misc
|
|
|
|
INSTALL_TARGETS += xpcomtest
|
2014-09-22 23:10:31 +04:00
|
|
|
|
2014-02-11 02:57:01 +04:00
|
|
|
ifeq (,$(filter-out WINNT, $(HOST_OS_ARCH)))
|
2012-07-25 21:06:12 +04:00
|
|
|
getnativepath = $(call normalizepath,$(1))
|
2008-04-01 17:06:18 +04:00
|
|
|
else
|
|
|
|
getnativepath = $(1)
|
|
|
|
endif
|
|
|
|
|
2013-10-17 02:55:16 +04:00
|
|
|
abs_srcdir = $(abspath $(srcdir))
|
2008-04-10 20:14:01 +04:00
|
|
|
|
2013-12-03 01:34:21 +04:00
|
|
|
regOrderDir = $(call getnativepath,$(abs_srcdir)/regorder)
|
2011-05-01 22:59:24 +04:00
|
|
|
|
2005-08-11 20:41:54 +04:00
|
|
|
check::
|
2008-04-01 17:06:18 +04:00
|
|
|
XPCOM_DEBUG_BREAK=stack-and-abort $(RUN_TEST_PROGRAM) \
|
2013-12-03 01:34:21 +04:00
|
|
|
$(DIST)/bin/TestRegistrationOrder$(BIN_SUFFIX) '$(regOrderDir)'
|