Commit | Line | Data |
---|---|---|
341bb4d5 AE |
1 | #! /bin/bash |
2 | ||
3 | #************************************************************************* | |
4 | # "run-tests" is free software: you can redistribute it and/or modify * | |
5 | # it under the terms of the GNU Affero Public License as published by * | |
6 | # the Free Software Foundation, either version 3 of the License, or * | |
7 | # (at your option) any later version. * | |
8 | # * | |
9 | # "run-tests" is distributed in the hope that it will be useful, * | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of * | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | |
12 | # GNU Affero Public License for more details. * | |
13 | # * | |
14 | # You should have received a copy of the GNU Affero Public License * | |
15 | # along with Edward. If not, see <http://www.gnu.org/licenses/>. * | |
16 | # * | |
17 | # Copyright (C) 2015 Andrew Engelbrecht (AGPLv3+) * | |
18 | #************************************************************************* | |
19 | ||
20 | G_HOME=./tests/testgnupghome | |
21 | ||
50b0bbd7 | 22 | OUT_DIFF_1="$(time ./edward < ./tests/test1.eml | GNUPGHOME="$G_HOME" gpg 2> /dev/null | ./tests/flatten-mime | diff -Z -u ./tests/out1.txt - )" |
341bb4d5 AE |
23 | |
24 | if [ -n "$OUT_DIFF_1" ] ; then | |
25 | echo "*** test 1 failed! difference:" >&2 | |
26 | echo "$OUT_DIFF_1" >&2 | |
27 | fi | |
28 |