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