summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: b9f0fe62c70f838f87780839e7a888dd0b9259f6 (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
## Process this file with automake to produce Makefile.in
# Copyright (C) 2004, 2005, 2006 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 2 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.

AM_CPPFLAGS = -I../gl -I$(top_srcdir)/gl -I../includes -I$(top_srcdir)/includes
AM_LDFLAGS = -no-install
LDADD = ../lib/libgnutls.la ../gl/libgnu.la ../lib/libgnutls.la libutils.la

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

# For pkcs12_neon.
EXTRA_DIST = client.p12 noclient.p12 unclient.p12

# For pkcs8.
EXTRA_DIST += encpkcs8.pem unencpkcs8.pem enc2pkcs8.pem

openssl_LDADD = $(LDADD) ../libextra/libgnutls-openssl.la
tlsia_LDADD = $(LDADD) ../libextra/libgnutls-extra.la \
	../gl/libgnu.la @LTLIBREADLINE@

ctests = simple anonself pskself openssl gc dhepskself set_pkcs12_cred	\
	tlsia resume certder
TESTS = pkcs12_neon pkcs8 $(ctests)
check_PROGRAMS = $(ctests)
dist_check_SCRIPTS = pkcs12_neon pkcs8

VALGRIND=valgrind --leak-check=full --leak-resolution=high \
	--show-reachable=yes --num-callers=50 \
	--suppressions=gnutls.supp
TESTS_ENVIRONMENT = \
	PKCS12FILE=$(srcdir)/client.p12	\
	PKCS12PASSWORD=foobar \
	`if type valgrind > /dev/null 2>&1; then echo $(VALGRIND); else echo $$SHELL -c; fi`