blob: c9c6a6aa147610339506a33d65d16085b6585e12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/sh
set -e
fail=0
total=0
for keyring in debian-keyring.gpg debian-maintainers.gpg debian-nonupload.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
|