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