summaryrefslogtreecommitdiff
path: root/trust/tests/Makefile.am
blob: 1f13b2aa6ab11eebf176dfa1640ea99dfecdcfaa (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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122

include $(top_srcdir)/build/Makefile.tests

COMMON = $(top_srcdir)/common
TRUST = $(top_srcdir)/trust

AM_CPPFLAGS = \
	-I$(top_srcdir) \
	-I$(srcdir)/.. \
	-I$(top_srcdir)/p11-kit \
	-I$(COMMON) \
	-DDATADIR=\"$(datadir)\" \
	-DSYSCONFDIR=\"$(sysconfdir)\" \
	-DP11_KIT_FUTURE_UNSTABLE_API \
	$(LIBTASN1_CFLAGS) \
	$(TEST_CFLAGS) \
	$(NULL)

noinst_LTLIBRARIES = \
	libtrust-test.la

libtrust_test_la_SOURCES = \
	test-trust.c test-trust.h \
	$(TRUST)/digest.c

LDADD = \
	$(top_builddir)/trust/libtrust-testable.la \
	$(top_builddir)/trust/libtrust-data.la \
	$(builddir)/libtrust-test.la \
	$(top_builddir)/p11-kit/libp11-kit.la \
	$(top_builddir)/common/libp11-library.la \
	$(top_builddir)/common/libp11-test.la \
	$(top_builddir)/common/libp11-common.la \
	$(LIBTASN1_LIBS) \
	$(HASH_LIBS) \
	$(NULL)

CHECK_PROGS = \
	test-digest \
	test-asn1 \
	test-base64 \
	test-pem \
	test-oid \
	test-utf8 \
	test-x509 \
	test-persist \
	test-index \
	test-parser \
	test-builder \
	test-token \
	test-module \
	test-save \
	test-enumerate \
	test-cer \
	test-bundle \
	test-openssl \
	$(NULL)

noinst_PROGRAMS = \
	frob-pow \
	frob-token \
	frob-nss-trust \
	frob-cert \
	frob-bc \
	frob-ku \
	frob-eku \
	frob-ext \
	frob-cert \
	frob-oid \
	$(CHECK_PROGS)

frob_nss_trust_LDADD = \
	$(top_builddir)/common/libp11-common.la \
	$(top_builddir)/p11-kit/libp11-kit.la \
	$(HASH_LIBS) \
	$(NULL)

TESTS = $(CHECK_PROGS)

EXTRA_DIST = \
	input \
	files \
	$(NULL)

TEST_RUNNER = libtool --mode=execute

test_save_SOURCES = \
	test-save.c \
	$(TRUST)/save.c \
	$(NULL)

test_enumerate_SOURCES = \
	test-enumerate.c \
	$(TRUST)/enumerate.c \
	$(NULL)

test_cer_SOURCES = \
	test-cer.c \
	$(TRUST)/enumerate.c \
	$(TRUST)/extract-cer.c \
	$(TRUST)/save.c \
	$(NULL)

test_bundle_SOURCES = \
	test-bundle.c \
	$(TRUST)/enumerate.c \
	$(TRUST)/extract-pem.c \
	$(TRUST)/save.c \
	$(NULL)

test_openssl_SOURCES = \
	test-openssl.c \
	$(TRUST)/enumerate.c \
	$(TRUST)/extract-openssl.c \
	$(TRUST)/save.c \
	$(NULL)

noinst_SCRIPTS = \
	test-extract

installcheck-local:
	sh $(builddir)/test-extract