netwerk/test/Makefile.in
author Ms2ger <ms2ger@gmail.com>
Wed, 24 Jul 2013 09:23:06 +0200
changeset 151933 321a9432686db2dd566435fef316bb2b6114e48b
parent 146602 14d1a41e212918f875d299a48b83fa2cc200ca4a
child 155397 fdeb80c577b38f5c5dce1b52646b3d88a7e70905
permissions -rw-r--r--
Bug 888643 - Part b: Move CPP_UNIT_TESTS definitions into moz.build files; r=gps

# 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@
FAIL_ON_WARNINGS := 1

include $(DEPTH)/config/autoconf.mk

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)

DISABLED_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)

include $(topsrcdir)/config/config.mk

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

DEFINES += $(TK_CFLAGS)

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/