]> git.scottworley.com Git - overonion/blob - overonion_test
1f654cc9beebbeb8d8f33d580eafe1f2abeef968
[overonion] / overonion_test
1 #!/bin/bash
2
3 set -e
4
5 d=$(mktemp -d)
6 test_data=$0
7
8 ./overonion-make-key --make_INSECURE_key "$d/key"
9 ./overonion e "$d/key" < "$test_data" > "$d/encrypted"
10 cmp --verbose <(./overonion d "$d/key" < "$d/encrypted") "$test_data"
11 rm -r "$d"
12 echo PASS