Makefile.am 2.33 KB
Newer Older
1
2
AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
AM_CPPFLAGS += -I$(top_builddir)/src/lib/dns -I$(top_srcdir)/src/lib/dns
3
AM_CPPFLAGS += -DTEST_DATA_DIR=\"$(srcdir)/testdata\"
Evan Hunt's avatar
Evan Hunt committed
4
5
6
7
8
9
10

CLEANFILES = *.gcno *.gcda

TESTS =
if HAVE_GTEST
TESTS += run_unittests
run_unittests_SOURCES = run_unittests.cc
11
12
run_unittests_SOURCES += $(top_srcdir)/src/lib/dns/tests/unittest_util.h
run_unittests_SOURCES += $(top_srcdir)/src/lib/dns/tests/unittest_util.cc
Evan Hunt's avatar
Evan Hunt committed
13
run_unittests_SOURCES += datasrc_unittest.cc
14
15
run_unittests_SOURCES += sqlite3_unittest.cc
run_unittests_SOURCES += static_unittest.cc
16
run_unittests_SOURCES += query_unittest.cc
17
run_unittests_SOURCES += test_datasrc.h test_datasrc.cc
Evan Hunt's avatar
Evan Hunt committed
18
19
20
21
22
23
24
25
26
27
28
run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
run_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS)
run_unittests_LDADD = $(GTEST_LDADD)
run_unittests_LDADD += $(SQLITE_LIBS)
run_unittests_LDADD += $(top_builddir)/src/lib/auth/.libs/libauth.a 
run_unittests_LDADD += $(top_builddir)/src/lib/dns/.libs/libdns.a 
run_unittests_LDADD += $(top_builddir)/src/lib/cc/libcc.a 
run_unittests_LDADD += $(top_builddir)/src/lib/exceptions/.libs/libexceptions.a
endif

noinst_PROGRAMS = $(TESTS)
29
30
31
32
33

EXTRA_DIST =  testdata/brokendb.sqlite3
EXTRA_DIST += testdata/example.com.signed
EXTRA_DIST += testdata/example.org
EXTRA_DIST += testdata/example.org.sqlite3
34
35
EXTRA_DIST += testdata/example2.com
EXTRA_DIST += testdata/example2.com.sqlite3
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
EXTRA_DIST += testdata/mkbrokendb.c
EXTRA_DIST += testdata/q_cname
EXTRA_DIST += testdata/q_cname_ext
EXTRA_DIST += testdata/q_cname_int
EXTRA_DIST += testdata/q_dname
EXTRA_DIST += testdata/q_example_ns
EXTRA_DIST += testdata/q_example_ptr
EXTRA_DIST += testdata/q_glork
EXTRA_DIST += testdata/q_spork
EXTRA_DIST += testdata/q_sql1
EXTRA_DIST += testdata/q_subzone
EXTRA_DIST += testdata/q_subzone_any
EXTRA_DIST += testdata/q_subzone_dname
EXTRA_DIST += testdata/q_subzone_ds
EXTRA_DIST += testdata/q_subzone_ns
EXTRA_DIST += testdata/q_subzone_nsec
EXTRA_DIST += testdata/q_wild2_a
EXTRA_DIST += testdata/q_wild2_aaaa
EXTRA_DIST += testdata/q_wild3_a
EXTRA_DIST += testdata/q_wild_a
EXTRA_DIST += testdata/q_wild_aaaa
EXTRA_DIST += testdata/root.zone
EXTRA_DIST += testdata/sql1.example.com.signed
EXTRA_DIST += testdata/sql2.example.com.signed
EXTRA_DIST += testdata/test-root.sqlite3
EXTRA_DIST += testdata/test.sqlite3
62
EXTRA_DIST += testdata/test2.sqlite3