diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-09-14 05:33:34 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-09-14 06:17:04 +0200 |
commit | d5cc21475e473dd2ea3e2afdab5ad1a46533f1ea (patch) | |
tree | 8db2df227b9d47243259eaf8e21a3b5fcc6962c1 /runtests | |
download | arctica-keyring-d5cc21475e473dd2ea3e2afdab5ad1a46533f1ea.tar.gz arctica-keyring-d5cc21475e473dd2ea3e2afdab5ad1a46533f1ea.tar.bz2 arctica-keyring-d5cc21475e473dd2ea3e2afdab5ad1a46533f1ea.zip |
initial commit
Diffstat (limited to 'runtests')
-rwxr-xr-x | runtests | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/runtests b/runtests new file mode 100755 index 0000000..9deaee9 --- /dev/null +++ b/runtests @@ -0,0 +1,33 @@ +#!/bin/sh +set -e + +fail=0 +total=0 + +for keyring in arctica-maintainers.gpg arctica-keyring.gpg; do + if [ ! -e output/keyrings/$keyring ]; then + echo "** $keyring does not exist, cannot run test suite" >&2 + exit 1 + fi +done + +export GNUPGHOME=`pwd`/gpghomedir +mkdir "$GNUPGHOME" +chmod 700 "$GNUPGHOME" + +for t in t/*.t; do + total=`expr $total + 1` + if ! $t; then + echo "test $t failed" >&2 + fail=`expr $fail + 1` + fi +done + +rm -r "$GNUPGHOME" + +if [ "$fail" -gt 0 ]; then + echo "** failed $fail/$total tests" >&2 + exit 1 +else + echo "** all tests succeeded" +fi |