@@ -5,6 +5,10 @@ EXTRA_DIST =
55CLEANFILES =
66DISTCLEANFILES =
77ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
8+ AM_TESTS_ENVIRONMENT = top_builddir='$(top_builddir ) '; \
9+ top_srcdir='$(top_srcdir ) '; \
10+ export top_builddir top_srcdir;
11+ TESTS_ENVIRONMENT = $(AM_TESTS_ENVIRONMENT )
812
913AM_CPPFLAGS = \
1014 -include $(top_builddir ) /config.h \
@@ -79,6 +83,7 @@ nobase_include_HEADERS = \
7983 axa/axa.h \
8084 axa/bits.h \
8185 axa/client.h \
86+ axa/client_config.h \
8287 axa/dns_walk.h \
8388 axa/axa_endian.h \
8489 axa/fields.h \
@@ -96,6 +101,7 @@ axa_libaxa_la_SOURCES = \
96101 axa/axa.h \
97102 axa/bits.h \
98103 axa/client.h \
104+ axa/client_config.h \
99105 axa/dns_walk.h \
100106 axa/axa_endian.h \
101107 axa/fields.h \
@@ -106,8 +112,10 @@ axa_libaxa_la_SOURCES = \
106112 axa/strbuf.h \
107113 axa/trie.h \
108114 axa/wire.h \
115+ axalib/apikey.c \
109116 axalib/bit_funcs.c \
110117 axalib/client.c \
118+ axalib/client_config.c \
111119 axalib/dns_walk.c \
112120 axalib/domain_to_str.c \
113121 axalib/emsg.c \
@@ -288,10 +296,28 @@ spotless: distclean
288296# #
289297#
290298
291- EXTRA_DIST += tests/test-json.c
292299
293300TESTS += tests/test-json
294301check_PROGRAMS += tests/test-json
295302tests_test_json_SOURCES = tests/test-json.c
296303tests_test_json_LDADD = axa/libaxa.la ${libnmsg_LIBS} ${check_LIBS}
297304tests_test_json_CFLAGS = ${AM_CFLAGS} ${libnmsg_CFLAGS} ${check_CFLAGS} ${libssl_CFLAGS}
305+
306+ TESTS += tests/test-apikey
307+ check_PROGRAMS += tests/test-apikey
308+ tests_test_apikey_SOURCES = tests/test-apikey.c
309+ tests_test_apikey_LDADD = axa/libaxa.la ${libnmsg_LIBS} ${check_LIBS}
310+ tests_test_apikey_CFLAGS = ${AM_CFLAGS} ${libnmsg_CFLAGS} ${check_CFLAGS} ${libssl_CFLAGS}
311+
312+ TESTS += tests/test-client_config
313+ EXTRA_DIST += $(top_builddir ) /tests/test-config
314+ check_PROGRAMS += tests/test-client_config
315+ tests_test_client_config_SOURCES = tests/test-client_config.c $(top_builddir ) /tests/test-config
316+ tests_test_client_config_LDADD = axa/libaxa.la ${libnmsg_LIBS} ${check_LIBS} ${strlcpy_LIBS}
317+ tests_test_client_config_CFLAGS = ${AM_CFLAGS} ${libnmsg_CFLAGS} ${check_CFLAGS} ${libssl_CFLAGS} ${strlcpy_CFLAGS}
318+
319+ TESTS += tests/test-mgmt
320+ check_PROGRAMS += tests/test-mgmt
321+ tests_test_mgmt_SOURCES = tests/test-mgmt.c
322+ tests_test_mgmt_LDADD = axa/libaxa.la ${libnmsg_LIBS} ${check_LIBS} ${strlcpy_LIBS}
323+ tests_test_mgmt_CFLAGS = ${AM_CFLAGS} ${libnmsg_CFLAGS} ${check_CFLAGS} ${libssl_CFLAGS} ${strlcpy_CFLAGS}
0 commit comments