Obsolete option --no-sig-create-check.
[gnupg.git] / checks / Makefile.am
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/gpg --homedir . --quiet --yes --no-permission-warning --import
20
21 TESTS = version.test mds.test \
22         decrypt.test decrypt-dsa.test \
23         sigs.test sigs-dsa.test \
24         encrypt.test encrypt-dsa.test  \
25         seat.test clearsig.test encryptp.test detach.test \
26         armsigs.test armencrypt.test armencryptp.test \
27         signencrypt.test signencrypt-dsa.test \
28         armsignencrypt.test armdetach.test \
29         armdetachm.test detachm.test genkey1024.test \
30         conventional.test conventional-mdc.test \
31         multisig.test verify.test armor.test
32
33 # Force sequential run of tests as in the good old times
34 mds.log:               version.log
35 decrypt.log:           mds.log
36 decrypt-dsa.log:       decrypt.log
37 sigs.log:              decrypt-dsa.log
38 sigs-dsa.log:          sigs.log
39 encrypt.log:           sigs-dsa.log
40 encrypt-dsa.log:       encrypt.log
41 seat.log:              encrypt-dsa.log
42 clearsig.log:          seat.log
43 encryptp.log:          clearsig.log
44 detach.log:            encryptp.log
45 armsigs.log:           detach.log
46 armencrypt.log:        armsigs.log
47 armencryptp.log:       armencrypt.log
48 signencrypt.log:       armencryptp.log
49 signencrypt-dsa.log:   signencrypt.log
50 armsignencrypt.log:    signencrypt-dsa.log
51 armdetach.log:         armsignencrypt.log
52 armdetachm.log:        armdetach.log
53 detachm.log:           armdetachm.log
54 genkey1024.log:        detachm.log
55 conventional.log:      genkey1024.log
56 conventional-mdc.log:  conventional.log
57 multisig.log:          conventional-mdc.log
58 verify.log:            multisig.log
59 armor.log:             verify.log
60
61
62
63 TEST_FILES = pubring.asc secring.asc plain-1o.asc plain-2o.asc plain-3o.asc \
64              plain-1.asc plain-2.asc plain-3.asc plain-1-pgp.asc \
65              pubring.pkr.asc secring.skr.asc secdemo.asc pubdemo.asc options
66
67 DATA_FILES = data-500 data-9000 data-32000 data-80000 plain-large
68
69 EXTRA_DIST = defs.inc $(TESTS) $(TEST_FILES) \
70              mkdemodirs signdemokey
71 CLEANFILES = defs-config.inc x y yy z out err  $(DATA_FILES) \
72              plain-1 plain-2 plain-3 trustdb.gpg *.lock .\#lk* \
73              *.test.log gpg_dearmor gpg.conf \
74              pubring.gpg secring.gpg pubring.pkr secring.skr
75 DISTCLEANFILES = pubring.gpg~ random_seed
76
77
78 all-local: defs-config.inc
79
80 distclean-local:
81         $(srcdir)/mkdemodirs --clean
82
83 defs-config.inc: ./pubring.gpg ./secring.gpg ./plain-1 ./plain-2 ./plain-3 \
84                 ./pubring.pkr ./secring.skr ./gpg_dearmor $(DATA_FILES)
85          $(GPG_IMPORT) $(srcdir)/pubdemo.asc
86          echo '# Do not edit - created by the Makefile.      -*- sh -*-' \
87                > defs-config.inc
88 if ENABLE_SELINUX_HACKS
89          echo enable_selinux_hacks=yes >> defs-config.inc
90 else
91          echo enable_selinux_hacks=no >> defs-config.inc
92 endif
93
94
95 ./gpg_dearmor:
96         echo '#!/bin/sh' >./gpg_dearmor
97         echo "../g10/gpg --no-options --no-greeting \
98              --no-secmem-warning --batch --dearmor" >>./gpg_dearmor
99         chmod 755 ./gpg_dearmor
100
101 ./pubring.gpg: $(srcdir)/pubring.asc $(srcdir)/pubdemo.asc ./gpg_dearmor
102         ./gpg_dearmor > ./pubring.gpg < $(srcdir)/pubring.asc
103
104 ./secring.gpg: $(srcdir)/secring.asc ./gpg_dearmor
105         ./gpg_dearmor > ./secring.gpg < $(srcdir)/secring.asc
106
107 ./pubring.pkr: $(srcdir)/pubring.pkr.asc ./gpg_dearmor
108         ./gpg_dearmor > ./pubring.pkr < $(srcdir)/pubring.pkr.asc
109
110 ./secring.skr: $(srcdir)/secring.skr.asc ./gpg_dearmor
111         ./gpg_dearmor > ./secring.skr < $(srcdir)/secring.skr.asc
112
113 ./plain-1: $(srcdir)/plain-1o.asc ./gpg_dearmor
114         ./gpg_dearmor > ./plain-1 < $(srcdir)/plain-1o.asc
115
116 ./plain-2: $(srcdir)/plain-2o.asc ./gpg_dearmor
117         ./gpg_dearmor > ./plain-2 < $(srcdir)/plain-2o.asc
118
119 ./plain-3: $(srcdir)/plain-3o.asc ./gpg_dearmor
120         ./gpg_dearmor > ./plain-3 < $(srcdir)/plain-3o.asc
121
122
123 data-500:
124         ../tools/mk-tdata   500  >data-500
125 data-9000:
126         ../tools/mk-tdata  9000  >data-9000
127 data-32000:
128         ../tools/mk-tdata 32000  >data-32000
129 data-80000:
130         ../tools/mk-tdata 80000  >data-80000
131 plain-large:
132         cat $(srcdir)/../doc/HACKING \
133             $(srcdir)/../doc/DETAILS \
134             $(srcdir)/../doc/FAQ         >plain-large