Merge branch 'master' of git://repo.or.cz/gnutls
[gnutls.git] / tests / Makefile.am
blob8d9b9143a4d28879a088d39e7d8a3c31e472b73c
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
4 # Author: Simon Josefsson
6 # This file is part of GNUTLS.
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This file is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 # General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this file; if not, write to the Free Software Foundation,
20 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 SUBDIRS = rsa-md5-collision pkcs1-padding pkcs8-decode pkcs12-decode    \
23         userid pathlen key-id sha2 hostname-check
25 if ENABLE_OPENPGP
26 SUBDIRS += openpgp
27 endif
29 AM_CPPFLAGS = -I$(top_srcdir)/lgl -I$(top_builddir)/lgl                 \
30         -I$(top_srcdir)/gl -I$(top_builddir)/gl                         \
31         -I$(top_srcdir)/includes -I$(top_builddir)/includes
32 AM_LDFLAGS = -no-install
33 LDADD = ../lib/libgnutls.la ../gl/libgnu.la ../lgl/liblgnu.la libutils.la
35 noinst_LTLIBRARIES = libutils.la
36 libutils_la_SOURCES = utils.h utils.c
38 ctests = simple openssl gc set_pkcs12_cred certder      \
39         certificate_set_x509_crl dn parse_ca
40 openssl_LDADD = $(LDADD) ../libextra/libgnutls-openssl.la
41 if HAVE_FORK
42 ctests +=  anonself pskself dhepskself tlsia resume
43 tlsia_LDADD = ../libextra/libgnutls-extra.la $(LDADD) @LTLIBREADLINE@
44 endif
45 gc_LDADD = $(LDADD) $(LIBGCRYPT_LIBS)
47 check_PROGRAMS = $(ctests)
49 TESTS = $(ctests)
51 TESTS_ENVIRONMENT = \
52         PKCS12FILE=$(srcdir)/pkcs12-decode/client.p12   \
53         PKCS12PASSWORD=foobar \
54         $(VALGRIND)