diff options
Diffstat (limited to 'tests/openpgp/armencryptp.test')
-rwxr-xr-x | tests/openpgp/armencryptp.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/openpgp/armencryptp.test b/tests/openpgp/armencryptp.test new file mode 100755 index 000000000..d18c56b7e --- /dev/null +++ b/tests/openpgp/armencryptp.test @@ -0,0 +1,12 @@ +#!/bin/sh + +. $srcdir/defs.inc || exit 3 + +#info Checking armored encryption with a pipe +for i in $plain_files $data_files ; do + $GPG --always-trust -ea --yes -r "$usrname2" < $i | tee x | $GPG -o y --yes + cmp $i y || error "$i: mismatch" + $GPG --yes < x > y + cmp $i y || error "$i: mismatch" +done + |