summaryrefslogtreecommitdiff
path: root/test/Makefile.am
blob: b2fe0115395dd0378c1e6a379a0ea0801a557d3c (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Rules for the test code (use `make check` to execute)
if ENABLE_TESTS

TESTS = logintest xmlencodetest connectionhandlertest nodetreetest acltest

EXTRA_DIST = \
	dgunit.h \
	scopedfile.h

check_PROGRAMS = $(TESTS)

logintest_CXXFLAGS = -DOUTPUT=\"logintest\" \
	$(DEBUG_FLAGS) \
	-I$(top_srcdir)/src
logintest_LDFLAGS =
logintest_SOURCES = \
	logintest.cc \
	dgtest.cc

xmlencodetest_CXXFLAGS = -DOUTPUT=\"xmlencodetest\" \
	$(DEBUG_FLAGS) \
	-I$(top_srcdir)/src
xmlencodetest_LDFLAGS =
xmlencodetest_SOURCES = \
	$(top_srcdir)/src/xml_encode_decode.cc \
	xmlencodetest.cc \
	dgtest.cc

connectionhandlertest_CXXFLAGS = -DOUTPUT=\"connectionhandlertest\" \
	$(DEBUG_FLAGS) \
	-I$(top_srcdir)/src \
	-I$(top_srcdir)/hugin
connectionhandlertest_LDFLAGS =
connectionhandlertest_SOURCES = \
	$(top_srcdir)/hugin/hugin.c \
	$(top_srcdir)/src/connectionhandler.cc \
	connectionhandlertest.cc \
	dgtest.cc

nodetreetest_CXXFLAGS = -DOUTPUT=\"nodetreetest\" \
	$(DEBUG_FLAGS) \
	-I$(top_srcdir)/src \
	-I$(top_srcdir)/hugin \
	$(EXPAT_CFLAGS)
nodetreetest_LDFLAGS = $(EXPAT_LIBS)
nodetreetest_SOURCES = \
	$(top_srcdir)/hugin/hugin.c \
	$(top_srcdir)/src/nodetree.cc \
	$(top_srcdir)/src/xmlparser.cc \
	$(top_srcdir)/src/saxparser.cc \
	$(top_srcdir)/src/xml_encode_decode.cc \
	nodetreetest.cc \
	dgtest.cc

acltest_CXXFLAGS = -DOUTPUT=\"acltest\" \
	$(DEBUG_FLAGS) \
	-I$(top_srcdir)/src \
	-I$(top_srcdir)/argon2/include
acltest_LDFLAGS = $(top_builddir)/src/libargon2.la
acltest_SOURCES = \
	$(top_srcdir)/src/acl.cc \
	$(top_srcdir)/src/hash.cc \
	scopedfile.cc \
	acltest.cc \
	dgtest.cc

endif