summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: 7e0586ffa281f6bcce762038099eb2a6ec89174c (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
## Process this file with automake to produce Makefile.in
# Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software Foundation
#
# Author: Simon Josefsson
#
# This file is part of GNUTLS.
#
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This file is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this file; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

SUBDIRS = . rsa-md5-collision pkcs1-padding pkcs8-decode pkcs12-decode	\
	userid pathlen key-id sha2

if ENABLE_OPENPGP
SUBDIRS += openpgp-certs
endif

EXTRA_DIST = libgcrypt.supp hostname-check.README

AM_CFLAGS = $(WARN_CFLAGS)
AM_CPPFLAGS = \
	-I$(top_srcdir)/gl			\
	-I$(top_builddir)/gl			\
	-I$(top_srcdir)/lib/includes		\
	-I$(top_builddir)/lib/includes		\
	-I$(top_srcdir)/libextra/includes	\
	-I$(top_builddir)/libextra/includes	\
	-I$(top_srcdir)/lib			\
	-I$(top_srcdir)/doc/examples

AM_LDFLAGS = -no-install
LDADD = ../lib/libgnutls.la ../gl/libgnu.la libutils.la

if ENABLE_MINITASN1
AM_CPPFLAGS += -I$(srcdir)/../lib/minitasn1
endif

noinst_LTLIBRARIES = libutils.la
libutils_la_SOURCES = utils.h utils.c

ctests = simple gc set_pkcs12_cred certder mpi				\
	certificate_set_x509_crl dn parse_ca moredn crypto_rng mini	\
	finished hostname-check cve-2008-4989 pkcs12_s2k chainverify	\
	crq_key_id

if ENABLE_OPENSSL
ctests +=  openssl
openssl_LDADD = $(LDADD) ../libextra/libgnutls-openssl.la
endif

if ENABLE_OPENPGP
ctests += openpgp-keyring pgps2kgnu
openpgp_keyring_LDADD = $(LDADD) ../libextra/libgnutls-extra.la
endif

if HAVE_FORK
ctests += x509self x509signself x509dn anonself pskself dhepskself	\
	tlsia resume netconf-psk setcredcrash

if ENABLE_OPENPGP
ctests += openpgpself 
endif

tlsia_LDADD = ../libextra/libgnutls-extra.la $(LDADD) @LTLIBREADLINE@
endif

if ENABLE_OPRFI
ctests +=  oprfi
endif

check_PROGRAMS = $(ctests)
TESTS = $(ctests)

TESTS_ENVIRONMENT = \
	PKCS12FILE=$(srcdir)/pkcs12-decode/client.p12	\
	PKCS12PASSWORD=foobar \
	PKCS12FILE_2=$(srcdir)/pkcs12-decode/pkcs12_2certs.p12	\
	PKCS12PASSWORD_2="" \
	$(VALGRIND)