aboutsummaryrefslogtreecommitdiffstats
path: root/checks/armencrypt.test
blob: 5ab80fe9e27bbec5503fce9bf62bdf2fa3813708 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

. defs.inc || exit 3

#info Checking armored encryption
for i in $plain_files $data_files ; do
    run_gpg -ea -o x --yes -r "$usrname2" $i
    run_gpg -o y --yes x
    cmp $i y || error "$i: mismatch"
done