summaryrefslogtreecommitdiffstats
path: root/tests/dns/Makefile.am
blob: 7062c6018e018d7737fa73dd2131faa80a7cf87f (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
include $(top_srcdir)/Makefile.top

AM_CPPFLAGS +=				\
	$(LIBISC_CFLAGS)		\
	$(LIBDNS_CFLAGS)		\
	$(LIBUV_CFLAGS)			\
	$(KRB5_CFLAGS)			\
	-DSRCDIR=\"$(abs_srcdir)\"	\
	-DBUILDDIR=\"$(abs_builddir)\"	\
	-I$(top_srcdir)/lib/dns		\
	-I$(top_srcdir)/lib/isc

LDADD +=				\
	$(LIBISC_LIBS)			\
	$(LIBUV_LIBS)			\
	$(LIBDNS_LIBS)

check_PROGRAMS =		\
	acl_test		\
	db_test			\
	dbdiff_test		\
	dbiterator_test		\
	dbversion_test		\
	dh_test			\
	dispatch_test		\
	dns64_test		\
	dst_test		\
	keytable_test		\
	name_test		\
	nsec3_test		\
	nsec3param_test		\
	private_test		\
	rbt_test		\
	rbtdb_test		\
	rdata_test		\
	rdataset_test		\
	rdatasetstats_test	\
	resolver_test		\
	rsa_test		\
	sigs_test		\
	time_test		\
	tsig_test		\
	update_test		\
	zonemgr_test		\
	zt_test

CLEANFILES =

if HAVE_PERL

check_PROGRAMS +=		\
	master_test

EXTRA_master_test_DEPENDENCIES = testdata/master/master12.data testdata/master/master13.data testdata/master/master14.data
CLEANFILES += $(EXTRA_master_test_DEPENDENCIES)

testdata/master/master12.data: testdata/master/master12.data.in
	mkdir -p testdata/master
	$(PERL) -w $(srcdir)/mkraw.pl < $(srcdir)/testdata/master/master12.data.in > $@

testdata/master/master13.data: testdata/master/master13.data.in
	mkdir -p testdata/master
	$(PERL) -w $(srcdir)/mkraw.pl < $(srcdir)/testdata/master/master13.data.in > $@

testdata/master/master14.data: testdata/master/master14.data.in
	mkdir -p testdata/master
	$(PERL) -w $(srcdir)/mkraw.pl < $(srcdir)/testdata/master/master14.data.in > $@

endif

if HAVE_GEOIP2
check_PROGRAMS +=		\
	geoip_test

geoip_test_CPPFLAGS =		\
	$(AM_CPPFLAGS)		\
	$(MAXMINDDB_CFLAGS)	\
	-DTEST_GEOIP_DATA=\"$(top_srcdir)/bin/tests/system/geoip2/data\"

geoip_test_LDADD =		\
	$(LDADD)		\
	$(MAXMINDDB_LIBS)
endif

if HAVE_DNSTAP
check_PROGRAMS +=		\
	dnstap_test

dnstap_test_CPPFLAGS =		\
	$(AM_CPPFLAGS)		\
	$(DNSTAP_CFLAGS)
dnstap_test_LDADD =		\
	$(LDADD)		\
	$(DNSTAP_LIBS)
endif

dh_test_CPPFLAGS =		\
	$(AM_CPPFLAGS)		\
	$(OPENSSL_CFLAGS)

dst_test_CPPFLAGS =		\
	$(AM_CPPFLAGS)		\
	$(OPENSSL_CFLAGS)

rsa_test_CPPFLAGS =		\
	$(AM_CPPFLAGS)		\
	$(OPENSSL_CFLAGS)

rdata_test_CPPFLAGS = 		\
	$(AM_CPPFLAGS)		\
	$(OPENSSL_CFLAGS)

rdata_test_LDADD =		\
	$(LDADD)		\
	$(OPENSSL_LIBS)

EXTRA_sigs_test_DEPENDENCIES = testdata/master/master18.data
CLEANFILES += $(EXTRA_sigs_test_DEPENDENCIES)

testdata/master/master18.data: testdata/master/master18.data.in
	mkdir -p testdata/master
	sed -e 's,@TOP_SRCDIR@,$(abs_srcdir),' < $(srcdir)/testdata/master/master18.data.in > $@

EXTRA_DIST =			\
	Kdh.+002+18602.key	\
	Krsa.+008+29238.key	\
	comparekeys		\
	mkraw.pl		\
	testdata		\
	testkeys

include $(top_srcdir)/Makefile.tests