annotate src/lib-dns/Makefile.am @ 21126:3e8d32a5defe

lib-dns: Add tests for dns-util
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Fri, 11 Nov 2016 13:36:23 +0200
parents 001a41d133dc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10615
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
1 noinst_LTLIBRARIES = libdns.la
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
2
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
3 AM_CPPFLAGS = \
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
4 -I$(top_srcdir)/src/lib
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
5
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
6 libdns_la_SOURCES = \
21125
001a41d133dc lib-dns: Add DNS specific matching algorithms
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 11117
diff changeset
7 dns-lookup.c \
001a41d133dc lib-dns: Add DNS specific matching algorithms
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 11117
diff changeset
8 dns-util.c
10615
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
9
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
10 headers = \
21125
001a41d133dc lib-dns: Add DNS specific matching algorithms
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 11117
diff changeset
11 dns-lookup.h \
001a41d133dc lib-dns: Add DNS specific matching algorithms
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 11117
diff changeset
12 dns-util.h
10615
8f9fc7fa7c73 Added dns-client service and library for doing async dns lookups.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
13
21126
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
14 test_programs = \
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
15 test-dns-util
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
16
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
17 noinst_PROGRAMS = $(test_programs)
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
18
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
19 test_libs = \
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
20 libdns.la \
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
21 ../lib-test/libtest.la \
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
22 ../lib/liblib.la
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
23
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
24 test_dns_util_SOURCE = test-dns-util.c
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
25 test_dns_util_LDADD = $(test_libs)
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
26 test_dns_util_CFLAGS = $(AM_CPPFLAGS) \
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
27 -I$(top_srcdir)/src/lib-test
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
28
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
29 check: check-am check-test
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
30 check-test: all-am
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
31 for bin in $(test_programs); do \
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
32 if test "$$bin" = "test-program-client-local"; then \
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
33 if ! env NOVALGRIND=yes $(RUN_TEST) ./$$bin; then exit 1; fi; \
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
34 else \
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
35 if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
36 fi \
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
37 done
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
38
3e8d32a5defe lib-dns: Add tests for dns-util
Aki Tuomi <aki.tuomi@dovecot.fi>
parents: 21125
diff changeset
39
11117
eee1e2a1c25b configure: Removed --enable-header-install. It's now always enabled.
Timo Sirainen <tss@iki.fi>
parents: 10615
diff changeset
40 pkginc_libdir=$(pkgincludedir)
eee1e2a1c25b configure: Removed --enable-header-install. It's now always enabled.
Timo Sirainen <tss@iki.fi>
parents: 10615
diff changeset
41 pkginc_lib_HEADERS = $(headers)