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