The test now works.
[gnutls.git] / tests / Makefile.am
blob0f31f6b4c70ce822782ac3b17d604e6fa69ed8c9
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2004, 2005, 2006, 2007, 2008 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 3 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         -I$(top_srcdir)/doc/examples
33 AM_LDFLAGS = -no-install
34 LDADD = ../lib/libgnutls.la ../gl/libgnu.la ../lgl/liblgnu.la libutils.la
36 noinst_LTLIBRARIES = libutils.la
37 libutils_la_SOURCES = utils.h utils.c
39 ctests = simple openssl gc set_pkcs12_cred certder      \
40         certificate_set_x509_crl dn parse_ca moredn crypto_rng
41 openssl_LDADD = $(LDADD) ../libextra/libgnutls-openssl.la
43 if HAVE_FORK
44 ctests += x509self x509signself x509dn anonself pskself dhepskself      \
45         tlsia resume netconf-psk
47 if ENABLE_OPENPGP
48 ctests += openpgpself 
49 endif
51 tlsia_LDADD = ../libextra/libgnutls-extra.la $(LDADD) @LTLIBREADLINE@
52 endif
54 if ENABLE_OPRFI
55 ctests +=  oprfi
56 endif
58 gc_LDADD = $(LDADD) $(LIBGCRYPT_LIBS)
60 check_PROGRAMS = $(ctests)
62 TESTS = $(ctests)
64 TESTS_ENVIRONMENT = \
65         PKCS12FILE=$(srcdir)/pkcs12-decode/client.p12   \
66         PKCS12PASSWORD=foobar \
67         $(VALGRIND)