~ubuntu-branches/ubuntu/jaunty/gnupg2/jaunty-security

« back to all changes in this revision

Viewing changes to tests/pkits/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-10-04 10:25:53 UTC
  • mfrom: (5.1.15 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081004102553-fv62pp8dsitxli47
Tags: 2.0.9-3.1
* Non-maintainer upload.
* agent/gpg-agent.c: Deinit the threading library before exec'ing
  the command to run in --daemon mode. And because that still doesn't
  restore the sigprocmask, do that manually. Closes: #499569

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.
3
3
4
4
# This file is part of GnuPG.
5
5
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.
10
10
11
11
# GnuPG is distributed in the hope that it will be useful,
14
14
# GNU General Public License for more details.
15
15
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/>.
19
18
 
20
19
## Process this file with automake to produce Makefile.in
21
20
 
22
21
GPGSM = ../../sm/gpgsm
23
22
 
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); \
27
 
                           do \
28
 
                             if echo "$$i" | egrep '^-L' >/dev/null 2>&1; \
29
 
                             then \
30
 
                               if test $$seen = 0; \
31
 
                               then \
32
 
                                 seen=1; \
33
 
                               else \
34
 
                                 printf ":"; \
35
 
                               fi; \
36
 
                               printf "%s" "$${i}" | sed 's/^-L//'; \
37
 
                             fi; \
38
 
                           done; \
39
 
                           if test $$seen != 0 \
40
 
                              && test x$${LD_LIBRARY_PATH} != x; \
41
 
                           then \
42
 
                             printf ":"; \
43
 
                           fi; \
44
 
                           printf "%s" "$${LD_LIBRARY_PATH}") $(srcdir)/runtest
45
 
 
46
 
 
47
 
 
48
 
testscripts = import-all-certs validate-all-certs
49
 
 
50
 
 
51
 
 
52
 
EXTRA_DIST = PKITS_data.tar.bz2 inittests runtest $(testscripts) 
 
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 = inittests runtest common.sh $(testscripts) 
53
47
             import-all-certs.data 
54
48
 
55
49
TESTS = $(testscripts)
56
50
 
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
58
52
 
59
53
DISTCLEANFILES = pubring.kbx~ random_seed
60
54
 
67
61
        srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests
68
62
        echo timestamp >./inittests.stamp
69
63
 
 
64
 
 
65
run-all-tests: inittests.stamp
 
66
        @set -e; \
 
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"; \
 
72
           fi; \
 
73
         done
 
74
 
 
75