summaryrefslogtreecommitdiff
path: root/common/tests/Makefile.am
blob: 942bc12a57c28a52e377cafb899b298a419125f1 (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

include $(top_srcdir)/build/Makefile.tests

COMMON = $(top_srcdir)/common

AM_CPPFLAGS = \
	-I$(top_srcdir) \
	-I$(srcdir)/.. \
	-I$(COMMON) \
	$(TEST_CFLAGS)

LDADD = \
	$(NULL)

CHECK_PROGS = \
	test-compat \
	test-hash \
	test-dict \
	test-array \
	test-constants \
	test-attrs \
	test-buffer \
	test-url \
	test-path \
	$(NULL)

noinst_PROGRAMS = \
	$(CHECK_PROGS)

if WITH_ASN1

LDADD += \
	$(top_builddir)/common/libp11-data.la \
	$(LIBTASN1_LIBS) \
	$(NULL)

AM_CPPFLAGS += \
	$(LIBTASN1_CFLAGS) \
	$(NULL)

CHECK_PROGS += \
	test-asn1 \
	test-base64 \
	test-lexer \
	test-pem \
	test-oid \
	test-utf8 \
	test-x509 \
	$(NULL)

noinst_PROGRAMS += \
	frob-cert \
	frob-ku \
	frob-eku \
	frob-cert \
	frob-oid \
	$(NULL)

endif # WITH_ASN1

TESTS = $(CHECK_PROGS)

LDADD += \
	$(top_builddir)/common/libp11-test.la \
	$(top_builddir)/common/libp11-common.la \
	$(CUTEST_LIBS)