mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
tests: Add function to dump packets.
* tests/openpgp/defs.scm (gpg-dump-packets): New function. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
d378cc34a8
commit
eab0138e31
@ -299,6 +299,12 @@
|
||||
(pipe:spawn `(,@GPG --dearmor))
|
||||
(pipe:write-to sink-name (logior O_WRONLY O_CREAT O_BINARY) #o600)))
|
||||
|
||||
(define (gpg-dump-packets source-name sink-name)
|
||||
(pipe:do
|
||||
(pipe:open source-name (logior O_RDONLY O_BINARY))
|
||||
(pipe:spawn `(,@GPG --list-packets))
|
||||
(pipe:write-to sink-name (logior O_WRONLY O_CREAT O_BINARY) #o600)))
|
||||
|
||||
;;
|
||||
;; Support for test environment creation and teardown.
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user