g10: Create expiring keys in quick key generation mode.
[gnupg.git] / tests / openpgp / Makefile.am
index f8932d6..deed63d 100644 (file)
 # 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, see <http://www.gnu.org/licenses/>.
+# along with this program; if not, see <https://www.gnu.org/licenses/>.
 # Process this file with automake to create Makefile.in
 
 
 # Programs required before we can run these tests.
 required_pgms = ../../g10/gpg$(EXEEXT) ../../agent/gpg-agent$(EXEEXT) \
                 ../../tools/gpg-connect-agent$(EXEEXT) \
-               ../../tools/mk-tdata$(EXEEXT) \
                ../gpgscm/gpgscm$(EXEEXT)
 
 AM_CPPFLAGS = -I$(top_srcdir)/common
@@ -36,24 +35,27 @@ fake_pinentry_SOURCES = fake-pinentry.c
 
 TMP ?= /tmp
 
-TESTS_ENVIRONMENT = GNUPGHOME=$(abs_builddir) GPG_AGENT_INFO= LC_ALL=C \
+TESTS_ENVIRONMENT = LC_ALL=C \
        EXEEXT=$(EXEEXT) \
        PATH=../gpgscm:$(PATH) \
        TMP=$(TMP) \
+       srcdir=$(abs_srcdir) \
        objdir=$(abs_top_builddir) \
-       GPGSCM_PATH=$(top_srcdir)/tests/gpgscm:$(top_srcdir)/tests/openpgp
+       GPGSCM_PATH=$(abs_top_srcdir)/tests/gpgscm:$(abs_top_srcdir)/tests/openpgp
 
-# Note: setup.scm needs to be the first test to run and finish.scm
-# the last one
-TESTS = setup.scm \
+XTESTS = \
        version.scm \
+       enarmor.scm \
        mds.scm \
        decrypt.scm \
+       decrypt-multifile.scm \
        decrypt-dsa.scm \
        sigs.scm \
        sigs-dsa.scm \
        encrypt.scm \
+       encrypt-multifile.scm \
        encrypt-dsa.scm \
+       compression.scm \
        seat.scm \
        clearsig.scm \
        encryptp.scm \
@@ -72,8 +74,11 @@ TESTS = setup.scm \
        conventional-mdc.scm \
        multisig.scm \
        verify.scm \
+       verify-multifile.scm \
+       gpgv-forged-keyring.scm \
        armor.scm \
        import.scm \
+       import-revocation-certificate.scm \
        ecc.scm \
        4gb-packet.scm \
        tofu.scm \
@@ -81,11 +86,27 @@ TESTS = setup.scm \
        use-exact-key.scm \
        default-key.scm \
        export.scm \
-       ssh.scm \
+       ssh-import.scm \
+       ssh-export.scm \
+       quick-key-manipulation.scm \
+       key-selection.scm \
        issue2015.scm \
        issue2346.scm \
-       finish.scm
-
+       issue2417.scm \
+       issue2419.scm
+
+# XXX: Currently, one cannot override automake's 'check' target.  As a
+# workaround, we avoid defining 'TESTS', thus automake will not emit
+# the 'check' target.  For extra robustness, we merely define a
+# dependency on 'xcheck', so this hack should also work even if
+# automake would emit the 'check' target, as adding dependencies to
+# targets is okay.
+check: xcheck
+
+.PHONY: xcheck
+xcheck:
+       $(TESTS_ENVIRONMENT) $(abs_top_builddir)/tests/gpgscm/gpgscm \
+         run-tests.scm $(TESTFLAGS) $(XTESTS)
 
 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 \
@@ -94,8 +115,47 @@ TEST_FILES = pubring.asc secring.asc plain-1o.asc plain-2o.asc plain-3o.asc \
              gpg.conf.tmpl gpg-agent.conf.tmpl \
             bug537-test.data.asc bug894-test.asc \
             bug1223-good.asc bug1223-bogus.asc 4gb-packet.asc \
-            tofu-keys.asc tofu-keys-secret.asc \
-            tofu-2183839A-1.txt tofu-BC15C85A-1.txt tofu-EE37CF96-1.txt
+            tofu/conflicting/1C005AF3.gpg \
+            tofu/conflicting/1C005AF3-secret.gpg \
+            tofu/conflicting/1C005AF3-1.txt \
+            tofu/conflicting/1C005AF3-2.txt \
+            tofu/conflicting/1C005AF3-3.txt \
+            tofu/conflicting/1C005AF3-4.txt \
+            tofu/conflicting/1C005AF3-5.txt \
+            tofu/conflicting/B662E42F.gpg \
+            tofu/conflicting/B662E42F-secret.gpg \
+            tofu/conflicting/B662E42F-1.txt \
+            tofu/conflicting/B662E42F-2.txt \
+            tofu/conflicting/B662E42F-3.txt \
+            tofu/conflicting/B662E42F-4.txt \
+            tofu/conflicting/B662E42F-5.txt \
+            tofu/conflicting/BE04EB2B.gpg \
+            tofu/conflicting/BE04EB2B-secret.gpg \
+            tofu/conflicting/BE04EB2B-1.txt \
+            tofu/conflicting/BE04EB2B-2.txt \
+            tofu/conflicting/BE04EB2B-3.txt \
+            tofu/conflicting/BE04EB2B-4.txt \
+            tofu/conflicting/BE04EB2B-5.txt \
+            tofu/cross-sigs/EC38277E-secret.gpg \
+            tofu/cross-sigs/EC38277E-1.gpg \
+            tofu/cross-sigs/EC38277E-1.txt \
+            tofu/cross-sigs/EC38277E-2.gpg \
+            tofu/cross-sigs/EC38277E-2.txt \
+            tofu/cross-sigs/EC38277E-3.txt \
+            tofu/cross-sigs/871C2247-secret.gpg \
+            tofu/cross-sigs/871C2247-1.gpg \
+            tofu/cross-sigs/871C2247-1.txt \
+            tofu/cross-sigs/871C2247-2.gpg \
+            tofu/cross-sigs/871C2247-2.txt \
+            tofu/cross-sigs/871C2247-3.gpg \
+            tofu/cross-sigs/871C2247-3.txt \
+            tofu/cross-sigs/871C2247-4.gpg \
+            tofu/cross-sigs/README \
+            key-selection/0.asc \
+            key-selection/1.asc \
+            key-selection/2.asc \
+            key-selection/3.asc \
+            key-selection/4.asc
 
 data_files = data-500 data-9000 data-32000 data-80000 plain-large
 
@@ -152,15 +212,23 @@ sample_keys = samplekeys/README \
              samplekeys/ssh-ecdsa.key \
              samplekeys/ssh-ed25519.key \
              samplekeys/ssh-rsa.key \
-             samplekeys/issue2346.gpg
+             samplekeys/issue2346.gpg \
+             samplekeys/authenticate-only.pub.asc \
+             samplekeys/authenticate-only.sec.asc
+
+sample_msgs = samplemsgs/issue2419.asc \
+             samplemsgs/clearsig-1-key-1.asc \
+             samplemsgs/signed-1-key-1.asc \
+             samplemsgs/revoke-2D727CC768697734.asc
 
-EXTRA_DIST = defs.inc defs.scm pinentry.sh $(TESTS) $(TEST_FILES) \
+EXTRA_DIST = defs.scm $(XTESTS) $(TEST_FILES) \
             mkdemodirs signdemokey $(priv_keys) $(sample_keys)   \
-            ChangeLog-2011
+            $(sample_msgs) ChangeLog-2011 run-tests.scm \
+            setup.scm shell.scm
 
 CLEANFILES = prepared.stamp x y yy z out err  $(data_files) \
             plain-1 plain-2 plain-3 trustdb.gpg *.lock .\#lk* \
-            *.test.log gpg_dearmor gpg.conf gpg-agent.conf S.gpg-agent \
+            *.log gpg_dearmor gpg.conf gpg-agent.conf S.gpg-agent \
             pubring.gpg pubring.gpg~ pubring.kbx pubring.kbx~ \
             secring.gpg pubring.pkr secring.skr \
             gnupg-test.stop random_seed gpg-agent.log tofu.db \