1
# Makefile.am - tests using NIST's PKITS
2
# Copyright (C) 2004 Free Software Foundation, Inc.
4
# This file is part of GnuPG.
6
# GnuPG is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; either version 2 of the License, or
9
# (at your option) any later version.
11
# GnuPG is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
# GNU General Public License for more details.
16
# You should have received a copy of the GNU General Public License
17
# along with this program; if not, write to the Free Software
18
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20
## Process this file with automake to produce Makefile.in
22
GPGSM = ../../sm/gpgsm
24
TESTS_ENVIRONMENT = GNUPGHOME=`pwd` GPG_AGENT_INFO= LC_ALL=C GPGSM=$(GPGSM) \
25
LD_LIBRARY_PATH=$$(seen=0; \
26
for i in $(LDFLAGS) $(LIBGCRYPT_LIBS) $(PTH_LIBS); \
28
if echo "$$i" | egrep '^-L' >/dev/null 2>&1; \
36
printf "%s" "$${i}" | sed 's/^-L//'; \
40
&& test x$${LD_LIBRARY_PATH} != x; \
44
printf "%s" "$${LD_LIBRARY_PATH}") $(srcdir)/runtest
48
testscripts = import-all-certs validate-all-certs
52
EXTRA_DIST = PKITS_data.tar.bz2 inittests runtest $(testscripts)
55
TESTS = $(testscripts)
57
CLEANFILES = inittests.stamp x y y z out err *.lock .\#lk* *.log
59
DISTCLEANFILES = pubring.kbx~ random_seed
61
all-local: inittests.stamp
64
srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests --clean
66
inittests.stamp: inittests
67
srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests
68
echo timestamp >./inittests.stamp