summaryrefslogtreecommitdiff
path: root/tools/tests/Makefile.am
blob: a74c981424b3ce25b11c7a34656c98fadecf9e42 (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

include $(top_srcdir)/build/Makefile.tests

NULL =

EXTRA_DIST = files

if WITH_ASN1

COMMON = $(top_srcdir)/common
TOOLS = $(top_srcdir)/tools

INCLUDES = \
	-I$(top_srcdir) \
	-I$(top_srcdir)/p11-kit \
	-I$(srcdir)/.. \
	-I$(COMMON) \
	-DP11_KIT_FUTURE_UNSTABLE_API \
	$(LIBTASN1_CFLAGS) \
	$(CUTEST_CFLAGS) \
	$(NULL)

LDADD = \
	$(top_builddir)/p11-kit/libp11-kit.la \
	$(top_builddir)/common/libp11-data.la \
	$(top_builddir)/common/libp11-mock.la \
	$(top_builddir)/common/libp11-library.la \
	$(top_builddir)/common/libp11-compat.la \
	$(builddir)/libtestcommon.la \
	$(LIBTASN1_LIBS) \
	$(LTLIBINTL) \
	$(CUTEST_LIBS) \
	$(NULL)

noinst_LTLIBRARIES = \
	libtestcommon.la

libtestcommon_la_SOURCES = \
	test.c test.h

CHECK_PROGS = \
	test-save \
	test-extract \
	test-x509 \
	test-pem \
	test-openssl \
	$(NULL)

noinst_PROGRAMS = \
	$(CHECK_PROGS)

TESTS = $(CHECK_PROGS:=$(EXEEXT))

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

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

test_x509_SOURCES = \
	test-x509.c \
	$(TOOLS)/extract-info.c \
	$(TOOLS)/extract-x509.c \
	$(TOOLS)/save.c \
	$(NULL)

test_pem_SOURCES = \
	test-pem.c \
	$(TOOLS)/extract-info.c \
	$(TOOLS)/extract-pem.c \
	$(TOOLS)/save.c \
	$(NULL)

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

endif # WITH_ASN1