Improve certificate chain construction.
[gnupg.git] / tests / pkits / Makefile.am
1 # Makefile.am - tests using NIST's PKITS
2 #       Copyright (C) 2004, 2008 Free Software Foundation, Inc.
3
4 # This file is part of GnuPG.
5
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 3 of the License, or
9 # (at your option) any later version.
10
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.
15
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
18
19 ## Process this file with automake to produce Makefile.in
20
21 GPGSM = ../../sm/gpgsm
22
23 TESTS_ENVIRONMENT = GNUPGHOME=`pwd` GPG_AGENT_INFO= LC_ALL=C GPGSM=$(GPGSM) \
24                     silent=yes
25
26
27 testscripts = import-all-certs validate-all-certs \
28         signature-verification        \
29         validity-periods              \
30         verifying-name-chaining       \
31         basic-certificate-revocation  \
32         verifying-paths-self-issued   \
33         verifying-basic-constraints   \
34         key-usage                     \
35         certificate-policies          \
36         require-explicit-policy       \
37         policy-mappings               \
38         inhibit-policy-mapping        \
39         inhibit-any-policy            \
40         name-constraints              \
41         distribution-points           \
42         delta-crls                    \
43         private-certificate-extensions
44
45
46 EXTRA_DIST = PKITS_data.tar.bz2 inittests runtest $(testscripts) 
47              import-all-certs.data 
48
49 TESTS = $(testscripts)
50
51 CLEANFILES = inittests.stamp x y y z out err  *.lock .\#lk* *.log
52
53 DISTCLEANFILES = pubring.kbx~ random_seed
54
55 all-local: inittests.stamp
56
57 clean-local:
58         srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests --clean
59
60 inittests.stamp: inittests
61         srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests
62         echo timestamp >./inittests.stamp
63
64
65 run-all-tests:
66         @set -e; \
67          GNUPGHOME=`pwd`; export GNUPGHOME;\
68          unset GPG_AGENT_INFO; \
69          for test in $(testscripts); do \
70            ./$${test} && true; \
71          done