summaryrefslogtreecommitdiffstats
path: root/tests/openpgp/armencryptp.test
blob: d18c56b7e22c1f2979f08d39aa01c0256556eda4 (plain)
1
2
3
4
5
6
7
8
9
10
11
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