2007-03-22 10:30:00 -07:00
|
|
|
# vim: noexpandtab ts=8 sw=8
|
|
|
|
#
|
2012-05-21 04:12:37 -07: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/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2007-03-22 10:30:00 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2012-08-04 11:26:44 -07:00
|
|
|
relativesrcdir = @relativesrcdir@
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
MODULE = test_necko
|
|
|
|
|
|
|
|
DIRS = \
|
|
|
|
httpserver \
|
2010-07-23 14:59:07 -07:00
|
|
|
browser \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
|
2012-05-14 22:44:32 -07:00
|
|
|
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))
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2011-05-23 09:54:47 -07:00
|
|
|
# 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)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2010-06-03 14:03:17 -07:00
|
|
|
CPP_UNIT_TESTS = \
|
|
|
|
TestSTSParser.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
|
|
|
LIBS = $(EXTRA_DSO_LIBS) \
|
|
|
|
$(XPCOM_LIBS) \
|
|
|
|
$(NSPR_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
DEFINES += $(TK_CFLAGS)
|
|
|
|
|
|
|
|
XPCSHELL_TESTS = unit
|
2010-06-30 15:53:51 -07:00
|
|
|
# FIXME/bug 575918: out-of-process xpcshell is broken on OS X
|
|
|
|
ifneq ($(OS_ARCH),Darwin)
|
2009-10-17 00:05:27 -07:00
|
|
|
XPCSHELL_TESTS += unit_ipc
|
|
|
|
endif
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
check::
|
2010-03-10 10:36:45 -08:00
|
|
|
$(RUN_TEST_PROGRAM) $(DIST)/bin/TestCookie$(BIN_SUFFIX)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
_RES_FILES = urlparse.dat \
|
|
|
|
urlparse_unx.dat \
|
|
|
|
$(NULL)
|
|
|
|
libs:: $(_RES_FILES)
|
|
|
|
$(INSTALL) $^ $(DIST)/bin/res
|
|
|
|
install:: $(_RES_FILES)
|
|
|
|
$(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/res
|
2009-03-21 08:20:00 -07:00
|
|
|
|
|
|
|
# One of the xpcshell unit tests needs this file, so make sure it winds
|
|
|
|
# up in the test directory.
|
|
|
|
libs::
|
2010-08-26 14:47:28 -07:00
|
|
|
$(NSINSTALL) -D $(DEPTH)/_tests/xpcshell/$(relativesrcdir)/unit/data
|
2010-06-05 18:18:12 -07:00
|
|
|
$(INSTALL) $(topsrcdir)/netwerk/dns/effective_tld_names.dat \
|
2010-08-26 14:47:28 -07:00
|
|
|
$(DEPTH)/_tests/xpcshell/$(relativesrcdir)/unit/
|