aboutsummaryrefslogtreecommitdiff
path: root/src/auditor-lib/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/auditor-lib/Makefile.am')
-rw-r--r--src/auditor-lib/Makefile.am51
1 files changed, 50 insertions, 1 deletions
diff --git a/src/auditor-lib/Makefile.am b/src/auditor-lib/Makefile.am
index 1d3810fd5..988d352fa 100644
--- a/src/auditor-lib/Makefile.am
+++ b/src/auditor-lib/Makefile.am
@@ -7,7 +7,8 @@ if USE_COVERAGE
endif
lib_LTLIBRARIES = \
- libtalerauditor.la
+ libtalerauditor.la \
+ libtalerauditortesting.la
libtalerauditor_la_LDFLAGS = \
-version-info 0:0:0 \
@@ -33,3 +34,51 @@ if HAVE_LIBGNURL
libtalerauditor_la_LIBADD += -lgnurl
endif
endif
+
+
+libtalerauditortesting_la_LDFLAGS = \
+ -version-info 0:0:0 \
+ -no-undefined
+libtalerauditortesting_la_SOURCES = \
+ testing_auditor_api_helpers.c
+libtalerauditortesting_la_LIBADD = \
+ libtalerauditor.la \
+ $(top_builddir)/src/exchange-lib/libtalerexchange.la \
+ $(top_builddir)/src/exchange-lib/libtalertesting.la \
+ $(top_builddir)/src/wire/libtalerwire.la \
+ $(top_builddir)/src/json/libtalerjson.la \
+ $(top_builddir)/src/util/libtalerutil.la \
+ -lgnunetcurl \
+ -lgnunetjson \
+ -lgnunetutil \
+ -ljansson \
+ $(XLIB)
+
+
+check_PROGRAMS = \
+ test_auditor_api
+
+AM_TESTS_ENVIRONMENT=export TALER_PREFIX=$${TALER_PREFIX:-@libdir@};export PATH=$${TALER_PREFIX:-@prefix@}/bin:$$PATH;
+
+TESTS = \
+ $(check_PROGRAMS)
+
+test_auditor_api_SOURCES = \
+ test_auditor_api.c
+test_auditor_api_LDADD = \
+ libtalerauditortesting.la \
+ libtalerauditor.la \
+ $(top_builddir)/src/exchange-lib/libtalertesting.la \
+ $(top_builddir)/src/exchange-lib/libtalerexchange.la \
+ $(LIBGCRYPT_LIBS) \
+ $(top_builddir)/src/bank-lib/libtalerfakebank.la \
+ $(top_builddir)/src/bank-lib/libtalerbank.la \
+ $(top_builddir)/src/json/libtalerjson.la \
+ $(top_builddir)/src/util/libtalerutil.la \
+ -lgnunetcurl \
+ -lgnunetutil \
+ -ljansson
+
+
+EXTRA_DIST = \
+ test_auditor_api.conf