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