summaryrefslogtreecommitdiff
path: root/trust/tests/Makefile.am
blob: 9d5b3ae97f15f50f65a4e98f70ccf38af8919ce9 (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

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

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) \
	$(NULL)

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

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

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

TESTS = $(CHECK_PROGS)

EXTRA_DIST = \
	input \
	files \
	$(NULL)

TEST_RUNNER = libtool --mode=execute

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

test_extract_SOURCES = \
	test-extract.c \
	$(TRUST)/extract-info.c \
	$(NULL)

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

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

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