1 # Makefile.am - tests using NIST's PKITS
2 # Copyright (C) 2004, 2008 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 3 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, see <https://www.gnu.org/licenses/>.
19 ## Process this file with automake to produce Makefile.in
21 GPGSM = ../../sm/gpgsm
23 TESTS_ENVIRONMENT = GNUPGHOME=`/bin/pwd` GPG_AGENT_INFO= LC_ALL=C \
24 GPGSM=$(GPGSM) silent=yes
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) ChangeLog-2011 \
49 TESTS = $(testscripts)
51 CLEANFILES = inittests.stamp scratch.*.tmp x y z out err *.lock .\#lk* *.log
53 DISTCLEANFILES = pubring.kbx~ random_seed
55 all-local: inittests.stamp
58 srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests --clean
60 inittests.stamp: inittests
61 srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests
62 echo timestamp >./inittests.stamp
65 run-all-tests: inittests.stamp
67 GNUPGHOME=`/bin/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"; \