summaryrefslogtreecommitdiff
path: root/test/Makefile.am
blob: b96458beef4523efcefa6e4b6eea00c3be093355 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
## [psocksxx] test/

AUTOMAKE_OPTIONS        = subdir-objects
TESTS                   =
TEST_EXTENSIONS         = .tap
TAP_LOG_DRIVER          = env AM_TAP_AWK='$(AWK)' $(SHELL) \
	$(top_srcdir)/aux-build/tap-driver.sh


if HAVE_CPPUNIT
check_PROGRAMS = tap-runner.tap
TESTS          += $(check_PROGRAMS)

CPPUNIT_TEST_SOURCES = \
	lecho.h lecho.cpp \
	necho.h necho.cpp \
	socktimeoutexception_test.h socktimeoutexception_test.cpp \
	sockstreambuf_test.h sockstreambuf_test.cpp \
	lsockstream_test.h lsockstream_test.cpp \
	nsockaddr_test.h nsockaddr_test.cpp \
	nsockstream_test.h nsockstream_test.cpp \
	tcpnsockstream_test.h tcpnsockstream_test.cpp \
	udpnsockstream_test.h udpnsockstream_test.cpp

tap_runner_tap_SOURCES = \
	tap-runner.cpp \
	$(CPPUNIT_TEST_SOURCES) \
	tap/tap_listener.h tap/tap_listener.cpp

tap_runner_tap_CXXFLAGS = -I$(top_srcdir)/lib $(CPPUNIT_CFLAGS)
tap_runner_tap_LDFLAGS  = $(top_builddir)/lib/psocksxx/libpsocksxx.la $(CPPUNIT_LIBS)
endif


# remove xunit XML output files
CLEANFILES = xunit.xml