2003-09-11 20:32:33 +00:00
|
|
|
# vim: noexpandtab ts=8 sw=8
|
1999-04-25 19:25:24 +00:00
|
|
|
#
|
2004-04-18 22:01:16 +00:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
1999-04-25 19:25:24 +00:00
|
|
|
#
|
2004-04-18 22:01:16 +00:00
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
1999-04-25 19:25:24 +00:00
|
|
|
#
|
1999-11-06 03:40:37 +00:00
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
2004-04-18 22:01:16 +00:00
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Netscape Communications Corporation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
1999-11-06 03:40:37 +00:00
|
|
|
#
|
2004-04-18 22:01:16 +00:00
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
1999-07-27 23:27:44 +00:00
|
|
|
#
|
2004-04-18 22:01:16 +00:00
|
|
|
# ***** END LICENSE BLOCK *****
|
1999-04-25 19:25:24 +00:00
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
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 \
|
|
|
|
$(NULL)
|
|
|
|
|
2001-09-18 13:41:47 +00:00
|
|
|
REQUIRES = xpcom \
|
|
|
|
string \
|
|
|
|
necko \
|
2003-10-30 03:28:28 +00:00
|
|
|
pref \
|
2001-09-18 13:41:47 +00:00
|
|
|
$(NULL)
|
1999-07-27 23:27:44 +00:00
|
|
|
|
2003-10-06 01:46:31 +00:00
|
|
|
CPPSRCS = \
|
2005-06-01 18:05:36 +00:00
|
|
|
TestIncrementalDownload.cpp \
|
2004-06-22 15:37:33 +00:00
|
|
|
TestStreamLoader.cpp \
|
2003-10-06 01:46:31 +00:00
|
|
|
PropertiesTest.cpp \
|
|
|
|
urltest.cpp \
|
|
|
|
TestCallbacks.cpp \
|
|
|
|
TestPageLoad.cpp \
|
|
|
|
TestURLParser.cpp \
|
|
|
|
TestStandardURL.cpp \
|
|
|
|
TestUpload.cpp \
|
|
|
|
TestBlockingSocket.cpp \
|
|
|
|
TestDNS.cpp \
|
2003-11-09 23:44:02 +00:00
|
|
|
TestOpen.cpp \
|
2003-10-30 03:28:28 +00:00
|
|
|
TestCookie.cpp \
|
2003-11-18 02:58:18 +00:00
|
|
|
TestServ.cpp \
|
2003-11-18 02:20:34 +00:00
|
|
|
ReadNTLM.cpp \
|
2003-10-06 01:46:31 +00:00
|
|
|
$(NULL)
|
2003-01-18 02:15:14 +00:00
|
|
|
|
2005-11-08 19:23:00 +00:00
|
|
|
ifndef MOZ_ENABLE_LIBXUL
|
|
|
|
CPPSRCS += \
|
|
|
|
TestPerf.cpp \
|
|
|
|
TestIDN.cpp \
|
|
|
|
TestSocketTransport.cpp \
|
|
|
|
TestStreamTransport.cpp \
|
|
|
|
TestStreamChannel.cpp \
|
|
|
|
TestStreamPump.cpp \
|
|
|
|
TestProtocols.cpp \
|
|
|
|
TestIOThreads.cpp \
|
2007-05-31 06:07:26 +00:00
|
|
|
TestUDPSocketProvider.cpp \
|
2005-11-08 19:23:00 +00:00
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2000-05-11 14:15:34 +00:00
|
|
|
SIMPLE_PROGRAMS = $(CPPSRCS:.cpp=$(BIN_SUFFIX))
|
1999-07-27 23:27:44 +00:00
|
|
|
|
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) \
|
2005-11-08 19:23:00 +00:00
|
|
|
$(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
|
2003-09-11 20:32:33 +00:00
|
|
|
$(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
|
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::
|
2005-08-21 14:20:40 +00:00
|
|
|
$(RUN_TEST_PROGRAM) $(DIST)/bin/TestCookie
|
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::
|
|
|
|
$(NSINSTALL) -D $(DEPTH)/_tests/xpcshell/$(MODULE)/unit/data
|
|
|
|
$(INSTALL) $(topsrcdir)/netwerk/dns/src/effective_tld_names.dat \
|
|
|
|
$(DEPTH)/_tests/xpcshell/$(MODULE)/unit/
|