diff options
Diffstat (limited to 'tests/openpgp/detachm.scm')
-rwxr-xr-x | tests/openpgp/detachm.scm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/openpgp/detachm.scm b/tests/openpgp/detachm.scm new file mode 100755 index 000000000..1b75f510c --- /dev/null +++ b/tests/openpgp/detachm.scm @@ -0,0 +1,18 @@ +#!/usr/bin/env gpgscm + +(load (with-path "defs.scm")) + +(define files (append plain-files data-files)) + +(info "Checking detached signatures of multiple files") +(lettmp (tmp) + (call-popen `(,@GPG --yes --passphrase-fd "0" -sb + --output ,tmp ,@files) usrpass1) + (pipe:do + (pipe:defer (lambda (sink) + (for-each (lambda (file) + (pipe:do + (pipe:open file (logior O_RDONLY O_BINARY)) + (pipe:splice sink))) + files))) + (pipe:spawn `(,@GPG --yes ,tmp)))) |