From: Andrew Engelbrecht Date: Mon, 20 Jul 2015 19:12:45 +0000 (-0400) Subject: ./run-tests is part of the testing suite. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=341bb4d595df6123ec46fa24b12660348cd817f2;p=edward.git ./run-tests is part of the testing suite. --- diff --git a/run-tests b/run-tests new file mode 100755 index 0000000..5cbdb27 --- /dev/null +++ b/run-tests @@ -0,0 +1,29 @@ +#! /bin/bash + +#************************************************************************* +# "run-tests" is free software: you can redistribute it and/or modify * +# it under the terms of the GNU Affero Public License as published by * +# the Free Software Foundation, either version 3 of the License, or * +# (at your option) any later version. * +# * +# "run-tests" is distributed in the hope that it will be useful, * +# but WITHOUT ANY WARRANTY; without even the implied warranty of * +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +# GNU Affero Public License for more details. * +# * +# You should have received a copy of the GNU Affero Public License * +# along with Edward. If not, see . * +# * +# Copyright (C) 2015 Andrew Engelbrecht (AGPLv3+) * +#************************************************************************* + +G_HOME=./tests/testgnupghome + +OUT_DIFF_1="$(./edward < ./tests/test1.eml | GNUPGHOME="$G_HOME" gpg 2> /dev/null | diff -Z -u ./tests/out1.txt - )" + +if [ -n "$OUT_DIFF_1" ] ; then + echo "*** test 1 failed! difference:" >&2 + echo "$OUT_DIFF_1" >&2 +fi + +