mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
tests/openpgp: Fake the system time for the tofu test.
The keys in the tofu test are set to expire on 2016-09-17. Fake the system time for this test. This commit includes changes to the old test as well, for those who need to backport it. * tests/openpgp/gpg-agent.conf.tmpl: Drop trailing newlines. * tests/openpgp/tofu.scm: Fake system time. * tests/openpgp/tofu.test: Likewise. GnuPG-bug-id: 2393 Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
145910afc0
commit
e584d6468a
@ -1,4 +1,2 @@
|
||||
allow-preset-passphrase
|
||||
no-grab
|
||||
|
||||
|
||||
|
@ -19,7 +19,9 @@
|
||||
|
||||
(load (with-path "defs.scm"))
|
||||
|
||||
(define GPG `(,(tool 'gpg) --no-permission-warning)) ;; w/o --always-trust
|
||||
;; Redefine GPG without --always-trust and a fixed time.
|
||||
(define GPG `(,(tool 'gpg) --no-permission-warning
|
||||
--faked-system-time=1466684990))
|
||||
(define GNUPGHOME (getenv "GNUPGHOME"))
|
||||
(if (string=? "" GNUPGHOME)
|
||||
(error "GNUPGHOME not set"))
|
||||
|
@ -4,6 +4,9 @@
|
||||
|
||||
# set -x
|
||||
|
||||
# Redefine GPG with a fixed time.
|
||||
GPG="$GPG --faked-system-time=1466684990"
|
||||
|
||||
KEYS="2183839A BC15C85A EE37CF96"
|
||||
|
||||
# Make sure $srcdir is set.
|
||||
|
Loading…
x
Reference in New Issue
Block a user