summaryrefslogtreecommitdiff
path: root/src/testing/Makefile.am
blob: fe38d86df88ba0be733233859eb8b031b150f64c (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
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_srcdir)/src/backend -I$(top_srcdir)/src/lib

if USE_COVERAGE
  AM_CFLAGS = --coverage -O0
  XLIB = -lgcov
endif

lib_LTLIBRARIES = \
  libanastasistesting.la

libanastasistesting_la_LDFLAGS = \
  -version-info 0:0:0 \
  -no-undefined
libanastasistesting_la_SOURCES = \
  testing_api_cmd_policy_store.c \
  testing_api_cmd_truth_store.c \
  testing_api_cmd_policy_lookup.c \
  testing_api_cmd_keyshare_lookup.c \
  testing_api_cmd_config.c \
  testing_api_helpers.c \
  testing_cmd_truth_upload.c \
  testing_cmd_policy_create.c \
  testing_cmd_secret_share.c \
  testing_cmd_recover_secret.c \
  testing_cmd_challenge_answer.c
libanastasistesting_la_LIBADD = \
  $(top_builddir)/src/restclient/libanastasisrest.la \
  $(top_builddir)/src/lib/libanastasis.la \
  $(top_builddir)/src/util/libanastasisutil.la \
  -ltalerexchange \
  -ltalermerchant \
  -ltalerjson \
  -ltalerutil \
  -lgnunetcurl \
  -lgnunetjson \
  -lgnunetutil \
  -ljansson \
  -luuid \
  -ltalertesting \
  $(XLIB)


check_PROGRAMS = \
  test_anastasisrest_api \
  test_anastasis

AM_TESTS_ENVIRONMENT=export ANASTASIS_PREFIX=$${ANASTASIS_PREFIX:-@libdir@};export PATH=$${ANASTASIS_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
TESTS = \
  $(check_PROGRAMS)

test_anastasisrest_api_SOURCES = \
  test_anastasis_api.c
test_anastasisrest_api_LDADD = \
  libanastasistesting.la \
  -ltalermerchanttesting \
  -ltalertesting \
  -lgnunetutil \
  $(XLIB)

test_anastasis_SOURCES = \
  test_anastasis.c
test_anastasis_LDADD = \
  libanastasistesting.la \
  -ltalermerchanttesting \
  -ltalertesting \
  -ltalerexchange \
  -lgnunetutil \
  $(XLIB)

EXTRA_DIST = \
  test_anastasis_api.conf \
  test_anastasis_api_home/.config/taler/exchange/account-2.json \
  test_anastasis_api_home/.local/share/taler/exchange/offline-keys/master.priv \
  sms_authentication.sh

MOSTLYCLEANFILES = \
  test_anastasis_api_home/.local/share/taler/exchange/offline-keys/secm_tofus.pub