aboutsummaryrefslogtreecommitdiffstats
path: root/checks/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'checks/Makefile.am')
-rw-r--r--checks/Makefile.am79
1 files changed, 55 insertions, 24 deletions
diff --git a/checks/Makefile.am b/checks/Makefile.am
index 41ded3cd6..ed779a432 100644
--- a/checks/Makefile.am
+++ b/checks/Makefile.am
@@ -1,6 +1,24 @@
-## Process this file with automake to create Makefile.in
-
-GPG_DEARMOR = ../g10/gpg --no-options --quiet --yes --dearmor
+# Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+#
+# This file is part of GnuPG.
+#
+# GnuPG is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# GnuPG is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+
+# Process this file with automake to create Makefile.in
+
+GPG_IMPORT = ../g10/gpg --homedir . --quiet --yes --import
TESTS = version.test mds.test \
decrypt.test decrypt-dsa.test \
@@ -11,54 +29,67 @@ TESTS = version.test mds.test \
signencrypt.test signencrypt-dsa.test \
armsignencrypt.test armdetach.test \
armdetachm.test detachm.test genkey1024.test \
- conventional.test
+ conventional.test conventional-mdc.test \
+ multisig.test
TEST_FILES = pubring.asc secring.asc plain-1o.asc plain-2o.asc plain-3o.asc \
plain-1.asc plain-2.asc plain-3.asc plain-1-pgp.asc \
- pubring.pkr.asc secring.skr.asc secdemo.asc pubdemo.asc
+ pubring.pkr.asc secring.skr.asc secdemo.asc pubdemo.asc options.in
DATA_FILES = data-500 data-9000 data-32000 data-80000 plain-large
-EXTRA_DIST = defs.inc run-gpg run-gpg.patterns $(TESTS) $(TEST_FILES) \
+EXTRA_DIST = defs.inc $(TESTS) $(TEST_FILES) \
mkdemodirs signdemokey
CLEANFILES = prepared.stamp x y yy z out err $(DATA_FILES) \
- plain-1 plain-2 plain-3 options trustdb.gpg *.lock .\#lk* \
+ plain-1 plain-2 plain-3 trustdb.gpg *.lock .\#lk* \
+ *.test.log options gpg_dearmor \
pubring.gpg secring.gpg pubring.pkr secring.skr
-DISTCLEANFILES = pubring.gpg~
+DISTCLEANFILES = pubring.gpg~ random_seed
all-local: prepared.stamp
distclean-local:
- ./mkdemodirs --clean
+ $(srcdir)/mkdemodirs --clean
prepared.stamp: ./pubring.gpg ./secring.gpg ./plain-1 ./plain-2 ./plain-3 \
- ./pubring.pkr ./secring.skr $(DATA_FILES)
+ ./pubring.pkr ./secring.skr ./options ./gpg_dearmor \
+ $(DATA_FILES)
+ $(GPG_IMPORT) $(srcdir)/pubdemo.asc
echo timestamp >./prepared.stamp
+./options: $(srcdir)/options.in
+ cat $(srcdir)/options.in >./options
+ @set -e; if echo "@DYNAMIC_CIPHER_MODS@" |grep tiger >/dev/null ;then \
+ echo load-extension ../cipher/tiger >>./options; fi
-./pubring.gpg: $(srcdir)/pubring.asc
- $(GPG_DEARMOR) -o ./pubring.gpg $(srcdir)/pubring.asc
+./gpg_dearmor:
+ echo '#!/bin/sh' >./gpg_dearmor
+ echo "../g10/gpg --no-options --no-greeting \
+ --no-secmem-warning --batch --dearmor" >>./gpg_dearmor
+ chmod 755 ./gpg_dearmor
-./secring.gpg: $(srcdir)/secring.asc
- $(GPG_DEARMOR) -o ./secring.gpg $(srcdir)/secring.asc
+./pubring.gpg: $(srcdir)/pubring.asc $(srcdir)/pubdemo.asc ./gpg_dearmor
+ ./gpg_dearmor > ./pubring.gpg < $(srcdir)/pubring.asc
-./pubring.pkr: $(srcdir)/pubring.pkr.asc
- $(GPG_DEARMOR) -o ./pubring.pkr $(srcdir)/pubring.pkr.asc
+./secring.gpg: $(srcdir)/secring.asc ./gpg_dearmor
+ ./gpg_dearmor > ./secring.gpg < $(srcdir)/secring.asc
-./secring.skr: $(srcdir)/secring.skr.asc
- $(GPG_DEARMOR) -o ./secring.skr $(srcdir)/secring.skr.asc
+./pubring.pkr: $(srcdir)/pubring.pkr.asc ./gpg_dearmor
+ ./gpg_dearmor > ./pubring.pkr < $(srcdir)/pubring.pkr.asc
-./plain-1: $(srcdir)/plain-1o.asc
- $(GPG_DEARMOR) -o ./plain-1 $(srcdir)/plain-1o.asc
+./secring.skr: $(srcdir)/secring.skr.asc ./gpg_dearmor
+ ./gpg_dearmor > ./secring.skr < $(srcdir)/secring.skr.asc
-./plain-2: $(srcdir)/plain-2o.asc
- $(GPG_DEARMOR) -o ./plain-2 $(srcdir)/plain-2o.asc
+./plain-1: $(srcdir)/plain-1o.asc ./gpg_dearmor
+ ./gpg_dearmor > ./plain-1 < $(srcdir)/plain-1o.asc
-./plain-3: $(srcdir)/plain-3o.asc
- $(GPG_DEARMOR) -o ./plain-3 $(srcdir)/plain-3o.asc
+./plain-2: $(srcdir)/plain-2o.asc ./gpg_dearmor
+ ./gpg_dearmor > ./plain-2 < $(srcdir)/plain-2o.asc
+./plain-3: $(srcdir)/plain-3o.asc ./gpg_dearmor
+ ./gpg_dearmor > ./plain-3 < $(srcdir)/plain-3o.asc
data-500: