mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
tests:tpm2dtests: Fix tests with TPM2D.
* tests/tpm2dtests/Makefile.am (TESTS_ENVIRONMENT): Fix. * tests/tpm2dtests/all-tests.scm: Follow the change of gpgscm. * tests/tpm2dtests/run-tests.scm: Likewise. -- GnuPG-bug-id: 6052 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
4206d89003
commit
321f9c0a3f
@ -34,10 +34,10 @@ TESTS_ENVIRONMENT = LC_ALL=C \
|
|||||||
PATH="../gpgscm:$(PATH)" \
|
PATH="../gpgscm:$(PATH)" \
|
||||||
abs_top_srcdir="$(abs_top_srcdir)" \
|
abs_top_srcdir="$(abs_top_srcdir)" \
|
||||||
objdir="$(abs_top_builddir)" \
|
objdir="$(abs_top_builddir)" \
|
||||||
TPMSERVER="$(TPMSERVER)" \
|
TPMSERVER="$(TPMSERVER)" TSSSTARTUP="$(TSSSTARTUP)" \
|
||||||
SWTPM="$(SWTPM)" \
|
SWTPM="$(SWTPM)" \
|
||||||
SWTPM_IOCTL="$(SWTPM_IOCTL)" \
|
SWTPM_IOCTL="$(SWTPM_IOCTL)" \
|
||||||
GNUPG_BUILD_ROOT="$(abs_top_builddir)/tests" \
|
GNUPG_BUILD_ROOT="$(abs_top_builddir)" \
|
||||||
GNUPG_IN_TEST_SUITE=fact \
|
GNUPG_IN_TEST_SUITE=fact \
|
||||||
GPGSCM_PATH="$(abs_top_srcdir)/tests/gpgscm"
|
GPGSCM_PATH="$(abs_top_srcdir)/tests/gpgscm"
|
||||||
|
|
||||||
|
@ -30,8 +30,9 @@
|
|||||||
(make-environment-cache
|
(make-environment-cache
|
||||||
(test::scm
|
(test::scm
|
||||||
#f
|
#f
|
||||||
(path-join "tests" "openpgp" "setup.scm")
|
#f
|
||||||
(in-srcdir "tests" "openpgp" "setup.scm"))))
|
(path-join "tests" "tpm2dtests" "setup.scm")
|
||||||
|
(in-srcdir "tests" "tpm2dtests" "setup.scm"))))
|
||||||
|
|
||||||
(define (qualify path variant)
|
(define (qualify path variant)
|
||||||
(string-append "<" variant ">" path))
|
(string-append "<" variant ">" path))
|
||||||
@ -40,8 +41,9 @@
|
|||||||
(make-environment-cache
|
(make-environment-cache
|
||||||
(test::scm
|
(test::scm
|
||||||
#f
|
#f
|
||||||
(qualify (path-join "tests" "openpgp" "setup.scm") variant)
|
variant
|
||||||
(in-srcdir "tests" "openpgp" "setup.scm")
|
(path-join "tests" "tpm2dtests" "setup.scm")
|
||||||
|
(in-srcdir "tests" "tpm2dtests" "setup.scm")
|
||||||
(string-append "--" variant))))
|
(string-append "--" variant))))
|
||||||
|
|
||||||
(define setup-use-keyring (setup* "use-keyring"))
|
(define setup-use-keyring (setup* "use-keyring"))
|
||||||
@ -55,7 +57,8 @@
|
|||||||
(define tests
|
(define tests
|
||||||
(map (lambda (name)
|
(map (lambda (name)
|
||||||
(test::scm setup
|
(test::scm setup
|
||||||
(qualify (path-join "tests" "tpm2dtests" name) "standard")
|
"standards"
|
||||||
|
(path-join "tests" "tpm2dtests" name)
|
||||||
(in-srcdir "tests" "tpm2dtests" name))) all-tests))
|
(in-srcdir "tests" "tpm2dtests" name))) all-tests))
|
||||||
|
|
||||||
(when *run-all-tests*
|
(when *run-all-tests*
|
||||||
@ -65,15 +68,15 @@
|
|||||||
;; The second pass uses the keyboxd
|
;; The second pass uses the keyboxd
|
||||||
(map (lambda (name)
|
(map (lambda (name)
|
||||||
(test::scm setup-use-keyboxd
|
(test::scm setup-use-keyboxd
|
||||||
(qualify (path-join "tests" "tpm2dtests" name)
|
"keyboxd"
|
||||||
"keyboxd")
|
(path-join "tests" "tpm2dtests" name)
|
||||||
(in-srcdir "tests" "tpm2dtests" name)
|
(in-srcdir "tests" "tpm2dtests" name)
|
||||||
"--use-keyboxd")) all-tests)
|
"--use-keyboxd")) all-tests)
|
||||||
;; The third pass uses the legact pubring.gpg
|
;; The third pass uses the legact pubring.gpg
|
||||||
(map (lambda (name)
|
(map (lambda (name)
|
||||||
(test::scm setup-use-keyring
|
(test::scm setup-use-keyring
|
||||||
(qualify (path-join "tests" "tpm2dtests" name)
|
"keyring"
|
||||||
"keyring")
|
(path-join "tests" "tpm2dtests" name)
|
||||||
(in-srcdir "tests" "tpm2dtests" name)
|
(in-srcdir "tests" "tpm2dtests" name)
|
||||||
"--use-keyring")) all-tests)
|
"--use-keyring")) all-tests)
|
||||||
)))
|
)))
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
(define setup
|
(define setup
|
||||||
(make-environment-cache (test::scm
|
(make-environment-cache (test::scm
|
||||||
#f
|
#f
|
||||||
|
#f
|
||||||
(path-join "tests" "tpm2dtests" "setup.scm")
|
(path-join "tests" "tpm2dtests" "setup.scm")
|
||||||
(in-srcdir "tests" "tpm2dtests" "setup.scm"))))
|
(in-srcdir "tests" "tpm2dtests" "setup.scm"))))
|
||||||
|
|
||||||
@ -38,6 +39,7 @@
|
|||||||
(load-tests "tests" "tpm2dtests")
|
(load-tests "tests" "tpm2dtests")
|
||||||
(map (lambda (name)
|
(map (lambda (name)
|
||||||
(test::scm setup
|
(test::scm setup
|
||||||
|
#f
|
||||||
(path-join "tests" "tpm2dtests" name)
|
(path-join "tests" "tpm2dtests" name)
|
||||||
(in-srcdir "tests" "tpm2dtests" name)
|
(in-srcdir "tests" "tpm2dtests" name)
|
||||||
"--use-keyring")) tests)))
|
"--use-keyring")) tests)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user