mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
tests: New test for --delete-[secret-]keys.
* tests/openpgp/Makefile.am (XTESTS): Add new test. * tests/openpgp/defs.scm (keys): New variable. (have-public-key?): New function. (have-secret-key?): Likewise. (have-secret-key-file?): Likewise. * tests/openpgp/delete-keys.scm: New file. * tests/openpgp/quick-key-manipulation.scm: Move the accessors to 'defs.scm'. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
a45dc0849d
commit
a1afc450e1
4 changed files with 153 additions and 7 deletions
|
@ -27,13 +27,6 @@
|
|||
(define (exact id)
|
||||
(string-append "=" id))
|
||||
|
||||
;; Convenient accessors for the colon output.
|
||||
(define (:length x) (string->number (list-ref x 2)))
|
||||
(define (:alg x) (string->number (list-ref x 3)))
|
||||
(define (:expire x) (list-ref x 6))
|
||||
(define (:fpr x) (list-ref x 9))
|
||||
(define (:cap x) (list-ref x 11))
|
||||
|
||||
(define (count-uids-of-secret-key id)
|
||||
(length (filter (lambda (x) (and (string=? "uid" (car x))
|
||||
(not (string=? "r" (cadr x)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue