1
1
# Makefile.am - tests using NIST's PKITS
2
# Copyright (C) 2004 Free Software Foundation, Inc.
2
# Copyright (C) 2004, 2008 Free Software Foundation, Inc.
4
4
# This file is part of GnuPG.
6
6
# GnuPG is free software; you can redistribute it and/or modify
7
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
8
# the Free Software Foundation; either version 3 of the License, or
9
9
# (at your option) any later version.
11
11
# GnuPG is distributed in the hope that it will be useful,
14
14
# GNU General Public License for more details.
16
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
17
# along with this program; if not, see <http://www.gnu.org/licenses/>.
20
19
## Process this file with automake to produce Makefile.in
22
21
GPGSM = ../../sm/gpgsm
24
23
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)
27
testscripts = import-all-certs validate-all-certs \
28
signature-verification \
30
verifying-name-chaining \
31
basic-certificate-revocation \
32
verifying-paths-self-issued \
33
verifying-basic-constraints \
35
certificate-policies \
36
require-explicit-policy \
38
inhibit-policy-mapping \
43
private-certificate-extensions
46
EXTRA_DIST = inittests runtest common.sh $(testscripts)
53
47
import-all-certs.data
55
49
TESTS = $(testscripts)
57
CLEANFILES = inittests.stamp x y y z out err *.lock .\#lk* *.log
51
CLEANFILES = inittests.stamp scratch.*.tmp x y z out err *.lock .\#lk* *.log
59
53
DISTCLEANFILES = pubring.kbx~ random_seed
67
61
srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests
68
62
echo timestamp >./inittests.stamp
65
run-all-tests: inittests.stamp
67
GNUPGHOME=`pwd`; export GNUPGHOME;\
68
unset GPG_AGENT_INFO; \
69
for tst in $(testscripts); do \
70
if ./$${tst}; then : ; \
71
elif test $$? -eq 77; then echo "- SKIP $$tst"; \