~ubuntu-branches/ubuntu/oneiric/gnupg2/oneiric-updates

« back to all changes in this revision

Viewing changes to tests/openpgp/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
# Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
 
2
#
 
3
# This file is part of GnuPG.
 
4
#
 
5
# GnuPG is free software; you can redistribute it and/or modify
 
6
# it under the terms of the GNU General Public License as published by
 
7
# the Free Software Foundation; either version 3 of the License, or
 
8
# (at your option) any later version.
 
9
 
10
# GnuPG is distributed in the hope that it will be useful,
 
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
# GNU General Public License for more details.
 
14
 
15
# You should have received a copy of the GNU General Public License
 
16
# along with this program; if not, see <http://www.gnu.org/licenses/>.
 
17
# Process this file with automake to create Makefile.in
 
18
 
 
19
GPG_IMPORT = ../../g10/gpg2 --homedir . \
 
20
              --quiet --yes --no-permission-warning --import
 
21
 
 
22
TESTS = version.test mds.test \
 
23
        decrypt.test decrypt-dsa.test \
 
24
        sigs.test sigs-dsa.test \
 
25
        encrypt.test encrypt-dsa.test  \
 
26
        seat.test clearsig.test encryptp.test detach.test \
 
27
        armsigs.test armencrypt.test armencryptp.test \
 
28
        signencrypt.test signencrypt-dsa.test \
 
29
        armsignencrypt.test armdetach.test \
 
30
        armdetachm.test detachm.test genkey1024.test \
 
31
        conventional.test conventional-mdc.test \
 
32
        multisig.test verify.test armor.test \
 
33
        import.test
 
34
 
 
35
 
 
36
TEST_FILES = pubring.asc secring.asc plain-1o.asc plain-2o.asc plain-3o.asc \
 
37
             plain-1.asc plain-2.asc plain-3.asc plain-1-pgp.asc \
 
38
             pubring.pkr.asc secring.skr.asc secdemo.asc pubdemo.asc \
 
39
             gpg.conf.tmpl bug537-test.data.asc bug894-test.asc
 
40
 
 
41
DATA_FILES = data-500 data-9000 data-32000 data-80000 plain-large
 
42
 
 
43
EXTRA_DIST = defs.inc $(TESTS) $(TEST_FILES) \
 
44
             mkdemodirs signdemokey
 
45
CLEANFILES = prepared.stamp x y yy z out err  $(DATA_FILES) \
 
46
             plain-1 plain-2 plain-3 trustdb.gpg *.lock .\#lk* \
 
47
             *.test.log gpg_dearmor gpg.conf \
 
48
             pubring.gpg secring.gpg pubring.pkr secring.skr
 
49
 
 
50
DISTCLEANFILES = pubring.gpg~ random_seed
 
51
 
 
52
 
 
53
all-local: prepared.stamp
 
54
 
 
55
distclean-local:
 
56
        $(srcdir)/mkdemodirs --clean
 
57
 
 
58
prepared.stamp: ./pubring.gpg ./secring.gpg ./plain-1 ./plain-2 ./plain-3 \
 
59
                ./pubring.pkr ./secring.skr ./gpg_dearmor $(DATA_FILES)
 
60
         $(GPG_IMPORT) $(srcdir)/pubdemo.asc     
 
61
         echo timestamp >./prepared.stamp
 
62
 
 
63
./gpg_dearmor:
 
64
        echo '#!/bin/sh' >./gpg_dearmor
 
65
        echo "../../g10/gpg2 --no-options --no-greeting \
 
66
             --no-secmem-warning --batch --dearmor" >>./gpg_dearmor
 
67
        chmod 755 ./gpg_dearmor
 
68
 
 
69
./pubring.gpg: $(srcdir)/pubring.asc $(srcdir)/pubdemo.asc ./gpg_dearmor
 
70
        ./gpg_dearmor > ./pubring.gpg < $(srcdir)/pubring.asc
 
71
 
 
72
./secring.gpg: $(srcdir)/secring.asc ./gpg_dearmor
 
73
        ./gpg_dearmor > ./secring.gpg < $(srcdir)/secring.asc
 
74
 
 
75
./pubring.pkr: $(srcdir)/pubring.pkr.asc ./gpg_dearmor
 
76
        ./gpg_dearmor > ./pubring.pkr < $(srcdir)/pubring.pkr.asc
 
77
 
 
78
./secring.skr: $(srcdir)/secring.skr.asc ./gpg_dearmor
 
79
        ./gpg_dearmor > ./secring.skr < $(srcdir)/secring.skr.asc
 
80
 
 
81
./plain-1: $(srcdir)/plain-1o.asc ./gpg_dearmor
 
82
        ./gpg_dearmor > ./plain-1 < $(srcdir)/plain-1o.asc
 
83
 
 
84
./plain-2: $(srcdir)/plain-2o.asc ./gpg_dearmor
 
85
        ./gpg_dearmor > ./plain-2 < $(srcdir)/plain-2o.asc
 
86
 
 
87
./plain-3: $(srcdir)/plain-3o.asc ./gpg_dearmor
 
88
        ./gpg_dearmor > ./plain-3 < $(srcdir)/plain-3o.asc
 
89
 
 
90
 
 
91
data-500:
 
92
        ../../tools/mk-tdata   500  >data-500
 
93
data-9000:
 
94
        ../../tools/mk-tdata  9000  >data-9000
 
95
data-32000:
 
96
        ../../tools/mk-tdata 32000  >data-32000
 
97
data-80000:
 
98
        ../../tools/mk-tdata 80000  >data-80000
 
99
plain-large:
 
100
        cat $(srcdir)/../../doc/HACKING \
 
101
            $(srcdir)/../../doc/DETAILS \
 
102
            $(srcdir)/../../doc/gpg.texi >plain-large
 
103
 
 
104
# To speed up key generation we create a dummy random seed file
 
105
random_seed:
 
106
        ../../tools/mk-tdata 600
 
107