DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (5b81998bb7ab)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
# vim: noexpandtab ts=8 sw=8
#
# 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/.

DEPTH		= @DEPTH@
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@
relativesrcdir = @relativesrcdir@

include $(DEPTH)/config/autoconf.mk

MODULE		= test_necko

DIRS            = \
                  httpserver \
                  browser \
                  $(NULL)


CPPSRCS = \
  TestIncrementalDownload.cpp \
  TestStreamLoader.cpp \
  PropertiesTest.cpp \
  urltest.cpp \
  TestCallbacks.cpp \
  TestPageLoad.cpp \
  TestURLParser.cpp \
  TestStandardURL.cpp \
  TestUpload.cpp \
  TestBlockingSocket.cpp \
  TestDNS.cpp \
  TestOpen.cpp \
  TestCookie.cpp \
  TestServ.cpp \
  ReadNTLM.cpp \
  TestProtocols.cpp \
  $(NULL)

SIMPLE_PROGRAMS := $(CPPSRCS:.cpp=$(BIN_SUFFIX))

# XXX Make this work in libxul builds.
#SIMPLE_PROGRAMS += \
#		TestPerf$(BIN_SUFFIX) \
#		TestIDN$(BIN_SUFFIX) \
#		TestSocketTransport$(BIN_SUFFIX) \
#		TestStreamTransport$(BIN_SUFFIX) \
#		TestStreamChannel$(BIN_SUFFIX) \
#		TestStreamPump$(BIN_SUFFIX) \
#		TestIOThreads$(BIN_SUFFIX) \
#		TestUDPSocketProvider$(BIN_SUFFIX) \
#		$(NULL)

CPP_UNIT_TESTS = \
		 TestSTSParser.cpp \
		 $(NULL)

include $(topsrcdir)/config/config.mk

LIBS		= $(EXTRA_DSO_LIBS) \
		  $(XPCOM_LIBS) \
		  $(NSPR_LIBS) \
		  $(NULL)

DEFINES += $(TK_CFLAGS)

XPCSHELL_TESTS = unit
# FIXME/bug 575918: out-of-process xpcshell is broken on OS X
ifneq ($(OS_ARCH),Darwin)
XPCSHELL_TESTS += unit_ipc
endif

include $(topsrcdir)/config/rules.mk

check::
	$(RUN_TEST_PROGRAM) $(DIST)/bin/TestCookie$(BIN_SUFFIX)

_RES_FILES 	= urlparse.dat \
		  urlparse_unx.dat \
		  $(NULL)
libs:: $(_RES_FILES)
	$(INSTALL) $^ $(DIST)/bin/res
install:: $(_RES_FILES)
	$(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/res

# One of the xpcshell unit tests needs this file, so make sure it winds
#  up in the test directory.
libs::
	$(NSINSTALL) -D $(DEPTH)/_tests/xpcshell/$(relativesrcdir)/unit/data
	$(INSTALL) $(topsrcdir)/netwerk/dns/effective_tld_names.dat \
          $(DEPTH)/_tests/xpcshell/$(relativesrcdir)/unit/