michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: LIBS += $(XPCOM_LIBS) michael@0: michael@0: # Make sure we have symbols in case we need to debug these. michael@0: MOZ_DEBUG_SYMBOLS = 1 michael@0: michael@0: include $(topsrcdir)/config/rules.mk michael@0: michael@0: ifneq (,$(SIMPLE_PROGRAMS)) michael@0: libs:: michael@0: $(INSTALL) $(SIMPLE_PROGRAMS) $(DEPTH)/_tests/xpcshell/$(relativesrcdir)/unit michael@0: endif michael@0: michael@0: ifeq (,$(filter-out WINNT, $(HOST_OS_ARCH))) michael@0: getnativepath = $(call normalizepath,$(1)) michael@0: else michael@0: getnativepath = $(1) michael@0: endif michael@0: michael@0: abs_srcdir = $(abspath $(srcdir)) michael@0: michael@0: regOrderDir = $(call getnativepath,$(abs_srcdir)/regorder) michael@0: michael@0: check:: michael@0: XPCOM_DEBUG_BREAK=stack-and-abort $(RUN_TEST_PROGRAM) \ michael@0: $(DIST)/bin/TestRegistrationOrder$(BIN_SUFFIX) '$(regOrderDir)'