diff options
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | tests/Makefile.am | 45 | ||||
-rw-r--r-- | tests/cms/32100C27173EF6E9C4E9A25D3D69F86D37A4F939 (renamed from tests/gpgsm/32100C27173EF6E9C4E9A25D3D69F86D37A4F939) | 0 | ||||
-rw-r--r-- | tests/cms/567064FE6D14A17B2D811ABB407728BC558AA455 (renamed from tests/567064FE6D14A17B2D811ABB407728BC558AA455) | 0 | ||||
-rw-r--r-- | tests/cms/Makefile.am (renamed from tests/gpgsm/Makefile.am) | 39 | ||||
-rw-r--r-- | tests/cms/all-tests.scm (renamed from tests/gpgsm/all-tests.scm) | 10 | ||||
-rw-r--r-- | tests/cms/cert_cci_sphinx_ca.pem (renamed from tests/cert_cci_sphinx_ca.pem) | 0 | ||||
-rw-r--r-- | tests/cms/cert_cci_test_wzs.pem (renamed from tests/cert_cci_test_wzs.pem) | 0 | ||||
-rw-r--r-- | tests/cms/cert_cci_test_zs.pem (renamed from tests/cert_cci_test_zs.pem) | 0 | ||||
-rw-r--r-- | tests/cms/cert_cci_user02.pem (renamed from tests/cert_cci_user02.pem) | 0 | ||||
-rw-r--r-- | tests/cms/cert_cci_user03.pem (renamed from tests/cert_cci_user03.pem) | 0 | ||||
-rw-r--r-- | tests/cms/cert_cci_user04.pem (renamed from tests/cert_cci_user04.pem) | 0 | ||||
-rw-r--r-- | tests/cms/cert_cci_user06.pem (renamed from tests/cert_cci_user06.pem) | 0 | ||||
-rw-r--r-- | tests/cms/cert_cci_user07.pem (renamed from tests/cert_cci_user07.pem) | 0 | ||||
-rw-r--r-- | tests/cms/cert_dfn_pca01.der (renamed from tests/gpgsm/cert_dfn_pca01.der) | bin | 1224 -> 1224 bytes | |||
-rw-r--r-- | tests/cms/cert_dfn_pca15.der (renamed from tests/gpgsm/cert_dfn_pca15.der) | bin | 1560 -> 1560 bytes | |||
-rw-r--r-- | tests/cms/cert_g10code_test1.der (renamed from tests/gpgsm/cert_g10code_test1.der) | bin | 793 -> 793 bytes | |||
-rw-r--r-- | tests/cms/cert_testpki_testpca.pem (renamed from tests/cert_testpki_testpca.pem) | 0 | ||||
-rw-r--r-- | tests/cms/crl_testpki_testpca.pem (renamed from tests/crl_testpki_testpca.pem) | 0 | ||||
-rw-r--r-- | tests/cms/decrypt.scm (renamed from tests/gpgsm/decrypt.scm) | 4 | ||||
-rw-r--r-- | tests/cms/encrypt.scm (renamed from tests/gpgsm/encrypt.scm) | 2 | ||||
-rw-r--r-- | tests/cms/export.scm (renamed from tests/gpgsm/export.scm) | 2 | ||||
-rw-r--r-- | tests/cms/gpgsm-defs.scm (renamed from tests/gpgsm/gpgsm-defs.scm) | 5 | ||||
-rw-r--r-- | tests/cms/import.scm (renamed from tests/gpgsm/import.scm) | 4 | ||||
-rwxr-xr-x | tests/cms/inittests (renamed from tests/inittests) | 4 | ||||
-rw-r--r-- | tests/cms/key_g10code_pete1.pem (renamed from tests/key_g10code_pete1.pem) | 0 | ||||
-rw-r--r-- | tests/cms/key_g10code_theo1.pem (renamed from tests/key_g10code_theo1.pem) | 0 | ||||
-rw-r--r-- | tests/cms/plain-1.cms.asc (renamed from tests/gpgsm/plain-1.cms.asc) | 0 | ||||
-rw-r--r-- | tests/cms/plain-2.cms.asc (renamed from tests/gpgsm/plain-2.cms.asc) | 0 | ||||
-rw-r--r-- | tests/cms/plain-3.cms.asc (renamed from tests/gpgsm/plain-3.cms.asc) | 0 | ||||
-rw-r--r-- | tests/cms/plain-large.cms.asc (renamed from tests/gpgsm/plain-large.cms.asc) | 0 | ||||
-rw-r--r-- | tests/cms/run-tests.scm (renamed from tests/gpgsm/run-tests.scm) | 12 | ||||
-rwxr-xr-x | tests/cms/runtest (renamed from tests/runtest) | 0 | ||||
-rw-r--r-- | tests/cms/samplekeys/32100C27173EF6E9C4E9A25D3D69F86D37A4F939.key (renamed from tests/samplekeys/32100C27173EF6E9C4E9A25D3D69F86D37A4F939.key) | 0 | ||||
-rw-r--r-- | tests/cms/samplekeys/68A638998DFABAC510EA645CE34F9686B2EDF7EA.key (renamed from tests/samplekeys/68A638998DFABAC510EA645CE34F9686B2EDF7EA.key) | 0 | ||||
-rw-r--r-- | tests/cms/samplekeys/8D6D17B4B94BBE8304926C016D2C5C7805EB6705.key (renamed from tests/samplekeys/8D6D17B4B94BBE8304926C016D2C5C7805EB6705.key) | 0 | ||||
-rw-r--r-- | tests/cms/samplekeys/README (renamed from tests/samplekeys/README) | 0 | ||||
-rw-r--r-- | tests/cms/samplekeys/cert-with-117-akas.pem (renamed from tests/samplekeys/cert-with-117-akas.pem) | 0 | ||||
-rw-r--r-- | tests/cms/samplekeys/cert_g10code_enconly_1.pem (renamed from tests/samplekeys/cert_g10code_enconly_1.pem) | 0 | ||||
-rw-r--r-- | tests/cms/samplekeys/cert_g10code_pete1.pem (renamed from tests/samplekeys/cert_g10code_pete1.pem) | 0 | ||||
-rw-r--r-- | tests/cms/samplekeys/cert_g10code_test1.pem (renamed from tests/samplekeys/cert_g10code_test1.pem) | 0 | ||||
-rw-r--r-- | tests/cms/samplekeys/cert_g10code_test_ca.pem (renamed from tests/samplekeys/cert_g10code_test_ca.pem) | 0 | ||||
-rw-r--r-- | tests/cms/samplekeys/cert_g10code_theo1.pem (renamed from tests/samplekeys/cert_g10code_theo1.pem) | 0 | ||||
-rw-r--r-- | tests/cms/samplekeys/cryptlib-key.p12 (renamed from tests/samplekeys/cryptlib-key.p12) | bin | 1559 -> 1559 bytes | |||
-rw-r--r-- | tests/cms/samplekeys/gte.pem (renamed from tests/samplekeys/gte.pem) | 0 | ||||
-rw-r--r-- | tests/cms/samplekeys/opensc-test.p12 (renamed from tests/samplekeys/opensc-test.p12) | bin | 2397 -> 2397 bytes | |||
-rw-r--r-- | tests/cms/samplekeys/ossl-rentec-user.pem (renamed from tests/samplekeys/ossl-rentec-user.pem) | 0 | ||||
-rw-r--r-- | tests/cms/samplekeys/ov-server.p12 (renamed from tests/samplekeys/ov-server.p12) | bin | 2133 -> 2133 bytes | |||
-rw-r--r-- | tests/cms/samplekeys/ov-user.p12 (renamed from tests/samplekeys/ov-user.p12) | bin | 2141 -> 2141 bytes | |||
-rw-r--r-- | tests/cms/samplekeys/steed-self-signing-nonthority.pem (renamed from tests/samplekeys/steed-self-signing-nonthority.pem) | 0 | ||||
-rw-r--r-- | tests/cms/samplekeys/webdeca.der (renamed from tests/samplekeys/webdeca.der) | bin | 1857 -> 1857 bytes | |||
-rw-r--r-- | tests/cms/samplekeys/webderoot.der (renamed from tests/samplekeys/webderoot.der) | bin | 2009 -> 2009 bytes | |||
-rw-r--r-- | tests/cms/samplemsgs/webde-buenemann-signed.cms (renamed from tests/samplemsgs/webde-buenemann-signed.cms) | bin | 3368 -> 3368 bytes | |||
-rw-r--r-- | tests/cms/setup.scm (renamed from tests/gpgsm/setup.scm) | 2 | ||||
-rw-r--r-- | tests/cms/shell.scm (renamed from tests/gpgsm/shell.scm) | 2 | ||||
-rw-r--r-- | tests/cms/sign.scm (renamed from tests/gpgsm/sign.scm) | 2 | ||||
-rw-r--r-- | tests/cms/skey_g10code_test1.pem (renamed from tests/skey_g10code_test1.pem) | 0 | ||||
-rw-r--r-- | tests/cms/sm-sign+verify (renamed from tests/sm-sign+verify) | 0 | ||||
-rw-r--r-- | tests/cms/sm-verify (renamed from tests/sm-verify) | 0 | ||||
-rw-r--r-- | tests/cms/text-1.dsig.pem (renamed from tests/text-1.dsig.pem) | 0 | ||||
-rw-r--r-- | tests/cms/text-1.osig-bad.pem (renamed from tests/text-1.osig-bad.pem) | 0 | ||||
-rw-r--r-- | tests/cms/text-1.osig-badusage.pem (renamed from tests/text-1.osig-badusage.pem) | 0 | ||||
-rw-r--r-- | tests/cms/text-1.osig.pem (renamed from tests/text-1.osig.pem) | 0 | ||||
-rw-r--r-- | tests/cms/text-1.txt (renamed from tests/text-1.txt) | 0 | ||||
-rw-r--r-- | tests/cms/text-2.osig-bad.pem (renamed from tests/text-2.osig-bad.pem) | 0 | ||||
-rw-r--r-- | tests/cms/text-2.osig.pem (renamed from tests/text-2.osig.pem) | 0 | ||||
-rw-r--r-- | tests/cms/text-2.txt (renamed from tests/text-2.txt) | 0 | ||||
-rw-r--r-- | tests/cms/text-3.txt (renamed from tests/text-3.txt) | 0 | ||||
-rw-r--r-- | tests/cms/verify.scm (renamed from tests/gpgsm/verify.scm) | 2 | ||||
-rw-r--r-- | tests/run-tests.scm | 2 |
70 files changed, 69 insertions, 72 deletions
diff --git a/configure.ac b/configure.ac index 6d128837e..7b398f3df 100644 --- a/configure.ac +++ b/configure.ac @@ -2144,9 +2144,9 @@ doc/Makefile tests/Makefile tests/gpgscm/Makefile tests/openpgp/Makefile -tests/tpm2dtests/Makefile +tests/cms/Makefile tests/migrations/Makefile -tests/gpgsm/Makefile +tests/tpm2dtests/Makefile tests/gpgme/Makefile tests/pkits/Makefile g10/gpg.w32-manifest diff --git a/tests/Makefile.am b/tests/Makefile.am index 624334c63..f29b68a53 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -24,60 +24,23 @@ else tpm2dtests = endif -SUBDIRS = gpgscm openpgp migrations gpgsm gpgme pkits $(tpm2dtests) . +SUBDIRS = gpgscm openpgp cms migrations gpgme pkits $(tpm2dtests) . GPGSM = ../sm/gpgsm -# Note that we need to use /bin/pwd so that we don't get into trouble -# if the shell used for inittests would uses an internal version of -# pwd which handles symlinks differently. -TESTS_ENVIRONMENT = GNUPGHOME=`/bin/pwd` GPG_AGENT_INFO= LC_ALL=C \ - GPGSM="$(GPGSM)" "$(srcdir)/runtest" -testscripts = sm-sign+verify sm-verify - -EXTRA_DIST = runtest inittests $(testscripts) ChangeLog-2011 \ - text-1.txt text-2.txt text-3.txt \ - text-1.osig.pem text-1.dsig.pem text-1.osig-bad.pem \ - text-2.osig.pem text-2.osig-bad.pem \ +EXTRA_DIST = run-tests.scm \ fake-pinentries/README.txt \ fake-pinentries/fake-pinentry.php \ fake-pinentries/fake-pinentry.pl \ fake-pinentries/fake-pinentry.py \ fake-pinentries/fake-pinentry.sh \ - samplekeys/steed-self-signing-nonthority.pem \ - samplekeys/68A638998DFABAC510EA645CE34F9686B2EDF7EA.key \ - samplekeys/32100C27173EF6E9C4E9A25D3D69F86D37A4F939.key \ - samplekeys/cert_g10code_pete1.pem \ - samplekeys/cert_g10code_test1.pem \ - samplekeys/cert_g10code_theo1.pem \ - run-tests.scm - -# We used to run $(testscripts) here but these asschk scripts are not -# completely reliable in all environments and thus we better disable -# them. The tests are anyway way too minimal. We will eventually -# write new tests based on gpg-connect-agent which has a full fledged -# script language and thus makes it far easier to write tests than to -# use that low-level asschk stuff. -TESTS = + ChangeLog-2011 -CLEANFILES = inittests.stamp x y y z out err \ - *.lock .\#lk* - -DISTCLEANFILES = pubring.kbx~ random_seed +CLEANFILES = x y z out err if !HAVE_W32_SYSTEM noinst_PROGRAMS = asschk endif asschk_SOURCES = asschk.c - - -all-local: inittests.stamp - -clean-local: - srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests --clean - -inittests.stamp: inittests - srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests - echo timestamp >./inittests.stamp diff --git a/tests/gpgsm/32100C27173EF6E9C4E9A25D3D69F86D37A4F939 b/tests/cms/32100C27173EF6E9C4E9A25D3D69F86D37A4F939 index 7aa9bfde5..7aa9bfde5 100644 --- a/tests/gpgsm/32100C27173EF6E9C4E9A25D3D69F86D37A4F939 +++ b/tests/cms/32100C27173EF6E9C4E9A25D3D69F86D37A4F939 diff --git a/tests/567064FE6D14A17B2D811ABB407728BC558AA455 b/tests/cms/567064FE6D14A17B2D811ABB407728BC558AA455 index cf0535ff7..cf0535ff7 100644 --- a/tests/567064FE6D14A17B2D811ABB407728BC558AA455 +++ b/tests/cms/567064FE6D14A17B2D811ABB407728BC558AA455 diff --git a/tests/gpgsm/Makefile.am b/tests/cms/Makefile.am index e784a3168..03c7d8d21 100644 --- a/tests/gpgsm/Makefile.am +++ b/tests/cms/Makefile.am @@ -28,6 +28,12 @@ include $(top_srcdir)/am/cmacros.am AM_CFLAGS = +# Note that we need to use /bin/pwd so that we don't get into trouble +# if the shell used for inittests would uses an internal version of +# pwd which handles symlinks differently. +OLD_TESTS_ENVIRONMENT = GNUPGHOME=`/bin/pwd` GPG_AGENT_INFO= LC_ALL=C \ + GPGSM="$(GPGSM)" "$(srcdir)/runtest" + TESTS_ENVIRONMENT = LC_ALL=C \ EXEEXT=$(EXEEXT) \ PATH="../gpgscm:$(PATH)" \ @@ -65,11 +71,38 @@ TEST_FILES = plain-1.cms.asc \ plain-3.cms.asc \ plain-large.cms.asc +# We used to run $(testscripts) here but these asschk scripts are not +# completely reliable in all environments and thus we better disable +# them. The tests are anyway way too minimal. We will eventually +# write new tests based on gpg-connect-agent which has a full fledged +# script language and thus makes it far easier to write tests than to +# use that low-level asschk stuff. +testscripts = sm-sign+verify sm-verify + EXTRA_DIST = $(XTESTS) $(KEYS) $(CERTS) $(TEST_FILES) \ - gpgsm-defs.scm run-tests.scm setup.scm all-tests.scm + samplekeys/steed-self-signing-nonthority.pem \ + samplekeys/68A638998DFABAC510EA645CE34F9686B2EDF7EA.key \ + samplekeys/32100C27173EF6E9C4E9A25D3D69F86D37A4F939.key \ + samplekeys/cert_g10code_pete1.pem \ + samplekeys/cert_g10code_test1.pem \ + samplekeys/cert_g10code_theo1.pem \ + text-1.txt text-2.txt text-3.txt \ + text-1.osig.pem text-1.dsig.pem text-1.osig-bad.pem \ + text-2.osig.pem text-2.osig-bad.pem \ + runtest inittests $(testscripts) \ + gpgsm-defs.scm run-tests.scm setup.scm all-tests.scm + +CLEANFILES = inittests.stamp *.lock *.log report.xml .\#lk* -CLEANFILES = *.log report.xml +DISTCLEANFILES = pubring.kbx~ random_seed # We need to depend on a couple of programs so that the tests don't # start before all programs are built. -all-local: $(required_pgms) +all-local: $(required_pgms) inittests.stamp + +clean-local: + srcdir=$(srcdir) $(OLD_TESTS_ENVIRONMENT) $(srcdir)/inittests --clean + +inittests.stamp: inittests + srcdir=$(srcdir) $(OLD_TESTS_ENVIRONMENT) $(srcdir)/inittests + echo timestamp >./inittests.stamp diff --git a/tests/gpgsm/all-tests.scm b/tests/cms/all-tests.scm index 1baa92468..78ad00678 100644 --- a/tests/gpgsm/all-tests.scm +++ b/tests/cms/all-tests.scm @@ -30,14 +30,14 @@ (make-environment-cache (test::scm #f - (path-join "tests" "gpgsm" "setup.scm") - (in-srcdir "tests" "gpgsm" "setup.scm") + (path-join "tests" "cms" "setup.scm") + (in-srcdir "tests" "cms" "setup.scm") "--" "tests" "gpg"))) (map (lambda (name) (test::scm setup - (path-join "tests" "gpgsm" name) - (in-srcdir "tests" "gpgsm" name))) - (parse-makefile-expand (in-srcdir "tests" "gpgsm" "Makefile.am") + (path-join "tests" "cms" name) + (in-srcdir "tests" "cms" name))) + (parse-makefile-expand (in-srcdir "tests" "cms" "Makefile.am") (lambda (filename port key) (parse-makefile port key)) "XTESTS"))) diff --git a/tests/cert_cci_sphinx_ca.pem b/tests/cms/cert_cci_sphinx_ca.pem index b426c2f33..b426c2f33 100644 --- a/tests/cert_cci_sphinx_ca.pem +++ b/tests/cms/cert_cci_sphinx_ca.pem diff --git a/tests/cert_cci_test_wzs.pem b/tests/cms/cert_cci_test_wzs.pem index 7ba60ce0c..7ba60ce0c 100644 --- a/tests/cert_cci_test_wzs.pem +++ b/tests/cms/cert_cci_test_wzs.pem diff --git a/tests/cert_cci_test_zs.pem b/tests/cms/cert_cci_test_zs.pem index 025a22c8c..025a22c8c 100644 --- a/tests/cert_cci_test_zs.pem +++ b/tests/cms/cert_cci_test_zs.pem diff --git a/tests/cert_cci_user02.pem b/tests/cms/cert_cci_user02.pem index b1fba0df7..b1fba0df7 100644 --- a/tests/cert_cci_user02.pem +++ b/tests/cms/cert_cci_user02.pem diff --git a/tests/cert_cci_user03.pem b/tests/cms/cert_cci_user03.pem index 44a8510d2..44a8510d2 100644 --- a/tests/cert_cci_user03.pem +++ b/tests/cms/cert_cci_user03.pem diff --git a/tests/cert_cci_user04.pem b/tests/cms/cert_cci_user04.pem index e76880162..e76880162 100644 --- a/tests/cert_cci_user04.pem +++ b/tests/cms/cert_cci_user04.pem diff --git a/tests/cert_cci_user06.pem b/tests/cms/cert_cci_user06.pem index 7026112b4..7026112b4 100644 --- a/tests/cert_cci_user06.pem +++ b/tests/cms/cert_cci_user06.pem diff --git a/tests/cert_cci_user07.pem b/tests/cms/cert_cci_user07.pem index 2dfadf872..2dfadf872 100644 --- a/tests/cert_cci_user07.pem +++ b/tests/cms/cert_cci_user07.pem diff --git a/tests/gpgsm/cert_dfn_pca01.der b/tests/cms/cert_dfn_pca01.der Binary files differindex 4c8593c38..4c8593c38 100644 --- a/tests/gpgsm/cert_dfn_pca01.der +++ b/tests/cms/cert_dfn_pca01.der diff --git a/tests/gpgsm/cert_dfn_pca15.der b/tests/cms/cert_dfn_pca15.der Binary files differindex c28f137b5..c28f137b5 100644 --- a/tests/gpgsm/cert_dfn_pca15.der +++ b/tests/cms/cert_dfn_pca15.der diff --git a/tests/gpgsm/cert_g10code_test1.der b/tests/cms/cert_g10code_test1.der Binary files differindex 67c7db602..67c7db602 100644 --- a/tests/gpgsm/cert_g10code_test1.der +++ b/tests/cms/cert_g10code_test1.der diff --git a/tests/cert_testpki_testpca.pem b/tests/cms/cert_testpki_testpca.pem index 255d6f4af..255d6f4af 100644 --- a/tests/cert_testpki_testpca.pem +++ b/tests/cms/cert_testpki_testpca.pem diff --git a/tests/crl_testpki_testpca.pem b/tests/cms/crl_testpki_testpca.pem index 458c48164..458c48164 100644 --- a/tests/crl_testpki_testpca.pem +++ b/tests/cms/crl_testpki_testpca.pem diff --git a/tests/gpgsm/decrypt.scm b/tests/cms/decrypt.scm index c328ba89d..16bded668 100644 --- a/tests/gpgsm/decrypt.scm +++ b/tests/cms/decrypt.scm @@ -17,14 +17,14 @@ ;; You should have received a copy of the GNU General Public License ;; along with this program; if not, see <http://www.gnu.org/licenses/>. -(load (in-srcdir "tests" "gpgsm" "gpgsm-defs.scm")) +(load (in-srcdir "tests" "cms" "gpgsm-defs.scm")) (setup-gpgsm-environment) (for-each-p "Checking decryption of supplied files." (lambda (name) (tr:do - (tr:open (in-srcdir "tests" "gpgsm" (string-append name ".cms.asc"))) + (tr:open (in-srcdir "tests" "cms" (string-append name ".cms.asc"))) (tr:gpgsm "" '(--decrypt)) (tr:assert-identity name))) plain-files) diff --git a/tests/gpgsm/encrypt.scm b/tests/cms/encrypt.scm index bb90c8e73..5e679d923 100644 --- a/tests/gpgsm/encrypt.scm +++ b/tests/cms/encrypt.scm @@ -17,7 +17,7 @@ ;; You should have received a copy of the GNU General Public License ;; along with this program; if not, see <http://www.gnu.org/licenses/>. -(load (in-srcdir "tests" "gpgsm" "gpgsm-defs.scm")) +(load (in-srcdir "tests" "cms" "gpgsm-defs.scm")) (setup-gpgsm-environment) (for-each-p diff --git a/tests/gpgsm/export.scm b/tests/cms/export.scm index 4a8108bd3..1100f2464 100644 --- a/tests/gpgsm/export.scm +++ b/tests/cms/export.scm @@ -17,7 +17,7 @@ ;; You should have received a copy of the GNU General Public License ;; along with this program; if not, see <http://www.gnu.org/licenses/>. -(load (in-srcdir "tests" "gpgsm" "gpgsm-defs.scm")) +(load (in-srcdir "tests" "cms" "gpgsm-defs.scm")) (setup-gpgsm-environment) (for-each-p' diff --git a/tests/gpgsm/gpgsm-defs.scm b/tests/cms/gpgsm-defs.scm index 848bc7581..f643afaad 100644 --- a/tests/gpgsm/gpgsm-defs.scm +++ b/tests/cms/gpgsm-defs.scm @@ -78,13 +78,14 @@ (log "Storing private keys") (for-each (lambda (name) - (file-copy (in-srcdir "tests" "gpgsm" name) + (file-copy (in-srcdir "tests" "cms" name) (path-join "private-keys-v1.d" (string-append name ".key")))) '("32100C27173EF6E9C4E9A25D3D69F86D37A4F939")) (log "Importing public demo and test keys") - (call-check `(,@gpgsm --import ,(in-srcdir "tests" "gpgsm" "cert_g10code_test1.der"))) + (call-check `(,@gpgsm --import ,(in-srcdir "tests" "cms" + "cert_g10code_test1.der"))) (create-sample-files) (stop-agent)) diff --git a/tests/gpgsm/import.scm b/tests/cms/import.scm index be555da8a..4c85ae4bb 100644 --- a/tests/gpgsm/import.scm +++ b/tests/cms/import.scm @@ -17,7 +17,7 @@ ;; You should have received a copy of the GNU General Public License ;; along with this program; if not, see <http://www.gnu.org/licenses/>. -(load (in-srcdir "tests" "gpgsm" "gpgsm-defs.scm")) +(load (in-srcdir "tests" "cms" "gpgsm-defs.scm")) (setup-gpgsm-environment) (define certs-for-import @@ -47,7 +47,7 @@ "Checking certificate import." (lambda (test) (assert (not (sm-have-public-key? (:cert test)))) - (call-check `(,@gpgsm --import ,(in-srcdir "tests" "gpgsm" (:name test)))) + (call-check `(,@gpgsm --import ,(in-srcdir "tests" "cms" (:name test)))) (assert (sm-have-public-key? (:cert test)))) (lambda (test) (:name test)) certs-for-import) diff --git a/tests/inittests b/tests/cms/inittests index 9090674e3..296bf1426 100755 --- a/tests/inittests +++ b/tests/cms/inittests @@ -28,10 +28,10 @@ msg msg.sig msg.unsig [ -z "$srcdir" ] && srcdir=. -[ -z "$GPGSM" ] && GPGSM=../sm/gpgsm +[ -z "$GPGSM" ] && GPGSM=../../sm/gpgsm if [ -d $srcdir/samplekeys ] \ - && grep TESTS_ENVIRONMENT Makefile >/dev/null 2>&1; then + && grep OLD_TESTS_ENVIRONMENT Makefile >/dev/null 2>&1; then : else # During make distclean the Makefile has already been removed, diff --git a/tests/key_g10code_pete1.pem b/tests/cms/key_g10code_pete1.pem index dc26c8eda..dc26c8eda 100644 --- a/tests/key_g10code_pete1.pem +++ b/tests/cms/key_g10code_pete1.pem diff --git a/tests/key_g10code_theo1.pem b/tests/cms/key_g10code_theo1.pem index 9722be26d..9722be26d 100644 --- a/tests/key_g10code_theo1.pem +++ b/tests/cms/key_g10code_theo1.pem diff --git a/tests/gpgsm/plain-1.cms.asc b/tests/cms/plain-1.cms.asc index cb1a4db1b..cb1a4db1b 100644 --- a/tests/gpgsm/plain-1.cms.asc +++ b/tests/cms/plain-1.cms.asc diff --git a/tests/gpgsm/plain-2.cms.asc b/tests/cms/plain-2.cms.asc index 1ff0a8fe3..1ff0a8fe3 100644 --- a/tests/gpgsm/plain-2.cms.asc +++ b/tests/cms/plain-2.cms.asc diff --git a/tests/gpgsm/plain-3.cms.asc b/tests/cms/plain-3.cms.asc index 5c6331c15..5c6331c15 100644 --- a/tests/gpgsm/plain-3.cms.asc +++ b/tests/cms/plain-3.cms.asc diff --git a/tests/gpgsm/plain-large.cms.asc b/tests/cms/plain-large.cms.asc index f8fc90f13..f8fc90f13 100644 --- a/tests/gpgsm/plain-large.cms.asc +++ b/tests/cms/plain-large.cms.asc diff --git a/tests/gpgsm/run-tests.scm b/tests/cms/run-tests.scm index 6b460b165..caae86d5b 100644 --- a/tests/gpgsm/run-tests.scm +++ b/tests/cms/run-tests.scm @@ -20,7 +20,7 @@ (if (string=? "" (getenv "abs_top_srcdir")) (begin (echo "Environment variable 'abs_top_srcdir' not set. Please point it to" - "tests/gpgsm.") + "tests/cms.") (exit 2))) (define tests (filter (lambda (arg) (not (string-prefix? arg "--"))) *args*)) @@ -28,12 +28,12 @@ (define setup (make-environment-cache (test::scm #f - (path-join "tests" "gpgsm" "setup.scm") - (in-srcdir "tests" "gpgsm" "setup.scm")))) + (path-join "tests" "cms" "setup.scm") + (in-srcdir "tests" "cms" "setup.scm")))) (run-tests (if (null? tests) - (load-tests "tests" "gpgsm") + (load-tests "tests" "cms") (map (lambda (name) (test::scm setup - (path-join "tests" "gpgsm" name) - (in-srcdir "tests" "gpgsm" name))) tests))) + (path-join "tests" "cms" name) + (in-srcdir "tests" "cms" name))) tests))) diff --git a/tests/runtest b/tests/cms/runtest index 5c832bdb0..5c832bdb0 100755 --- a/tests/runtest +++ b/tests/cms/runtest diff --git a/tests/samplekeys/32100C27173EF6E9C4E9A25D3D69F86D37A4F939.key b/tests/cms/samplekeys/32100C27173EF6E9C4E9A25D3D69F86D37A4F939.key index cf0535ff7..cf0535ff7 100644 --- a/tests/samplekeys/32100C27173EF6E9C4E9A25D3D69F86D37A4F939.key +++ b/tests/cms/samplekeys/32100C27173EF6E9C4E9A25D3D69F86D37A4F939.key diff --git a/tests/samplekeys/68A638998DFABAC510EA645CE34F9686B2EDF7EA.key b/tests/cms/samplekeys/68A638998DFABAC510EA645CE34F9686B2EDF7EA.key index 8236349a0..8236349a0 100644 --- a/tests/samplekeys/68A638998DFABAC510EA645CE34F9686B2EDF7EA.key +++ b/tests/cms/samplekeys/68A638998DFABAC510EA645CE34F9686B2EDF7EA.key diff --git a/tests/samplekeys/8D6D17B4B94BBE8304926C016D2C5C7805EB6705.key b/tests/cms/samplekeys/8D6D17B4B94BBE8304926C016D2C5C7805EB6705.key index 2063610dc..2063610dc 100644 --- a/tests/samplekeys/8D6D17B4B94BBE8304926C016D2C5C7805EB6705.key +++ b/tests/cms/samplekeys/8D6D17B4B94BBE8304926C016D2C5C7805EB6705.key diff --git a/tests/samplekeys/README b/tests/cms/samplekeys/README index 65255cb61..65255cb61 100644 --- a/tests/samplekeys/README +++ b/tests/cms/samplekeys/README diff --git a/tests/samplekeys/cert-with-117-akas.pem b/tests/cms/samplekeys/cert-with-117-akas.pem index bd0a7ea9d..bd0a7ea9d 100644 --- a/tests/samplekeys/cert-with-117-akas.pem +++ b/tests/cms/samplekeys/cert-with-117-akas.pem diff --git a/tests/samplekeys/cert_g10code_enconly_1.pem b/tests/cms/samplekeys/cert_g10code_enconly_1.pem index ef28b6924..ef28b6924 100644 --- a/tests/samplekeys/cert_g10code_enconly_1.pem +++ b/tests/cms/samplekeys/cert_g10code_enconly_1.pem diff --git a/tests/samplekeys/cert_g10code_pete1.pem b/tests/cms/samplekeys/cert_g10code_pete1.pem index c6f778a56..c6f778a56 100644 --- a/tests/samplekeys/cert_g10code_pete1.pem +++ b/tests/cms/samplekeys/cert_g10code_pete1.pem diff --git a/tests/samplekeys/cert_g10code_test1.pem b/tests/cms/samplekeys/cert_g10code_test1.pem index 61d1f9813..61d1f9813 100644 --- a/tests/samplekeys/cert_g10code_test1.pem +++ b/tests/cms/samplekeys/cert_g10code_test1.pem diff --git a/tests/samplekeys/cert_g10code_test_ca.pem b/tests/cms/samplekeys/cert_g10code_test_ca.pem index d65a84c52..d65a84c52 100644 --- a/tests/samplekeys/cert_g10code_test_ca.pem +++ b/tests/cms/samplekeys/cert_g10code_test_ca.pem diff --git a/tests/samplekeys/cert_g10code_theo1.pem b/tests/cms/samplekeys/cert_g10code_theo1.pem index a7685c415..a7685c415 100644 --- a/tests/samplekeys/cert_g10code_theo1.pem +++ b/tests/cms/samplekeys/cert_g10code_theo1.pem diff --git a/tests/samplekeys/cryptlib-key.p12 b/tests/cms/samplekeys/cryptlib-key.p12 Binary files differindex 5c23e95a7..5c23e95a7 100644 --- a/tests/samplekeys/cryptlib-key.p12 +++ b/tests/cms/samplekeys/cryptlib-key.p12 diff --git a/tests/samplekeys/gte.pem b/tests/cms/samplekeys/gte.pem index fd6ae9f5f..fd6ae9f5f 100644 --- a/tests/samplekeys/gte.pem +++ b/tests/cms/samplekeys/gte.pem diff --git a/tests/samplekeys/opensc-test.p12 b/tests/cms/samplekeys/opensc-test.p12 Binary files differindex 990b1279a..990b1279a 100644 --- a/tests/samplekeys/opensc-test.p12 +++ b/tests/cms/samplekeys/opensc-test.p12 diff --git a/tests/samplekeys/ossl-rentec-user.pem b/tests/cms/samplekeys/ossl-rentec-user.pem index 290b0ef0d..290b0ef0d 100644 --- a/tests/samplekeys/ossl-rentec-user.pem +++ b/tests/cms/samplekeys/ossl-rentec-user.pem diff --git a/tests/samplekeys/ov-server.p12 b/tests/cms/samplekeys/ov-server.p12 Binary files differindex 52f2d558d..52f2d558d 100644 --- a/tests/samplekeys/ov-server.p12 +++ b/tests/cms/samplekeys/ov-server.p12 diff --git a/tests/samplekeys/ov-user.p12 b/tests/cms/samplekeys/ov-user.p12 Binary files differindex bb53a3d1a..bb53a3d1a 100644 --- a/tests/samplekeys/ov-user.p12 +++ b/tests/cms/samplekeys/ov-user.p12 diff --git a/tests/samplekeys/steed-self-signing-nonthority.pem b/tests/cms/samplekeys/steed-self-signing-nonthority.pem index c6a9c54e8..c6a9c54e8 100644 --- a/tests/samplekeys/steed-self-signing-nonthority.pem +++ b/tests/cms/samplekeys/steed-self-signing-nonthority.pem diff --git a/tests/samplekeys/webdeca.der b/tests/cms/samplekeys/webdeca.der Binary files differindex 9532e3fa5..9532e3fa5 100644 --- a/tests/samplekeys/webdeca.der +++ b/tests/cms/samplekeys/webdeca.der diff --git a/tests/samplekeys/webderoot.der b/tests/cms/samplekeys/webderoot.der Binary files differindex 3fedd9cd0..3fedd9cd0 100644 --- a/tests/samplekeys/webderoot.der +++ b/tests/cms/samplekeys/webderoot.der diff --git a/tests/samplemsgs/webde-buenemann-signed.cms b/tests/cms/samplemsgs/webde-buenemann-signed.cms Binary files differindex 9ed2dc1c4..9ed2dc1c4 100644 --- a/tests/samplemsgs/webde-buenemann-signed.cms +++ b/tests/cms/samplemsgs/webde-buenemann-signed.cms diff --git a/tests/gpgsm/setup.scm b/tests/cms/setup.scm index c241b38fe..577b26f47 100644 --- a/tests/gpgsm/setup.scm +++ b/tests/cms/setup.scm @@ -17,7 +17,7 @@ ;; You should have received a copy of the GNU General Public License ;; along with this program; if not, see <http://www.gnu.org/licenses/>. -(load (in-srcdir "tests" "gpgsm" "gpgsm-defs.scm")) +(load (in-srcdir "tests" "cms" "gpgsm-defs.scm")) (define tarball (flag "--create-tarball" *args*)) (unless (and tarball (not (null? tarball))) diff --git a/tests/gpgsm/shell.scm b/tests/cms/shell.scm index 606e3880b..ca4171cc9 100644 --- a/tests/gpgsm/shell.scm +++ b/tests/cms/shell.scm @@ -17,7 +17,7 @@ ;; You should have received a copy of the GNU General Public License ;; along with this program; if not, see <http://www.gnu.org/licenses/>. -(load (in-srcdir "tests" "gpgsm" "gpgsm-defs.scm")) +(load (in-srcdir "tests" "cms" "gpgsm-defs.scm")) (setup-gpgsm-environment) ;; This is not a test, but can be used to inspect the test diff --git a/tests/gpgsm/sign.scm b/tests/cms/sign.scm index 48b7b0669..0c118524a 100644 --- a/tests/gpgsm/sign.scm +++ b/tests/cms/sign.scm @@ -17,7 +17,7 @@ ;; You should have received a copy of the GNU General Public License ;; along with this program; if not, see <http://www.gnu.org/licenses/>. -(load (in-srcdir "tests" "gpgsm" "gpgsm-defs.scm")) +(load (in-srcdir "tests" "cms" "gpgsm-defs.scm")) (setup-gpgsm-environment) (for-each-p diff --git a/tests/skey_g10code_test1.pem b/tests/cms/skey_g10code_test1.pem index 9f2db8e68..9f2db8e68 100644 --- a/tests/skey_g10code_test1.pem +++ b/tests/cms/skey_g10code_test1.pem diff --git a/tests/sm-sign+verify b/tests/cms/sm-sign+verify index 1c3ae7dbd..1c3ae7dbd 100644 --- a/tests/sm-sign+verify +++ b/tests/cms/sm-sign+verify diff --git a/tests/sm-verify b/tests/cms/sm-verify index fa0932300..fa0932300 100644 --- a/tests/sm-verify +++ b/tests/cms/sm-verify diff --git a/tests/text-1.dsig.pem b/tests/cms/text-1.dsig.pem index a031ec259..a031ec259 100644 --- a/tests/text-1.dsig.pem +++ b/tests/cms/text-1.dsig.pem diff --git a/tests/text-1.osig-bad.pem b/tests/cms/text-1.osig-bad.pem index 0b5f4a439..0b5f4a439 100644 --- a/tests/text-1.osig-bad.pem +++ b/tests/cms/text-1.osig-bad.pem diff --git a/tests/text-1.osig-badusage.pem b/tests/cms/text-1.osig-badusage.pem index 027f23ead..027f23ead 100644 --- a/tests/text-1.osig-badusage.pem +++ b/tests/cms/text-1.osig-badusage.pem diff --git a/tests/text-1.osig.pem b/tests/cms/text-1.osig.pem index 7317350ec..7317350ec 100644 --- a/tests/text-1.osig.pem +++ b/tests/cms/text-1.osig.pem diff --git a/tests/text-1.txt b/tests/cms/text-1.txt index b14c1a27c..b14c1a27c 100644 --- a/tests/text-1.txt +++ b/tests/cms/text-1.txt diff --git a/tests/text-2.osig-bad.pem b/tests/cms/text-2.osig-bad.pem index 555844844..555844844 100644 --- a/tests/text-2.osig-bad.pem +++ b/tests/cms/text-2.osig-bad.pem diff --git a/tests/text-2.osig.pem b/tests/cms/text-2.osig.pem index 57b5da9b2..57b5da9b2 100644 --- a/tests/text-2.osig.pem +++ b/tests/cms/text-2.osig.pem diff --git a/tests/text-2.txt b/tests/cms/text-2.txt index 314c7a4e8..314c7a4e8 100644 --- a/tests/text-2.txt +++ b/tests/cms/text-2.txt diff --git a/tests/text-3.txt b/tests/cms/text-3.txt index 9345b550f..9345b550f 100644 --- a/tests/text-3.txt +++ b/tests/cms/text-3.txt diff --git a/tests/gpgsm/verify.scm b/tests/cms/verify.scm index 40dbd4898..531a8f16f 100644 --- a/tests/gpgsm/verify.scm +++ b/tests/cms/verify.scm @@ -17,7 +17,7 @@ ;; You should have received a copy of the GNU General Public License ;; along with this program; if not, see <http://www.gnu.org/licenses/>. -(load (in-srcdir "tests" "gpgsm" "gpgsm-defs.scm")) +(load (in-srcdir "tests" "cms" "gpgsm-defs.scm")) (setup-gpgsm-environment) ;; diff --git a/tests/run-tests.scm b/tests/run-tests.scm index d3ebba07e..bb9ade50c 100644 --- a/tests/run-tests.scm +++ b/tests/run-tests.scm @@ -34,8 +34,8 @@ (load-tests-with-log "g13") (load-tests-with-log "agent") (load-tests-with-log "tests" "openpgp") + (load-tests-with-log "tests" "cms") (load-tests-with-log "tests" "migrations") - (load-tests-with-log "tests" "gpgsm") (load-tests-with-log "tests" "gpgme")))) (run-tests (if prefix (filter |