blob: abddb5c7c783c2ba6d1fd2c976f4ede3a3abf00d (
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
|
#!/bin/sh
set -e
changeset="$1"
if [ -z "$changeset" ]; then
echo "Usage: checkchangeset changeset" >&2
exit 1
fi
TMPRING=./keyring.tmp
trap cleanup EXIT
cleanup () {
rm -f $TMPRING*
}
make
echo ""
echo "Running test suite on keyring, with this changeset included:"
cp debian-maintainers.gpg $TMPRING
jetring-apply $TMPRING "$changeset"
DM_KEYRING="$TMPRING"
export DM_KEYRING
if ! ./runtests; then
testfailed=1
fi
echo ""
echo "jetring-review of the changes in the changeset:"
jetring-review -d debian-maintainers.gpg $changeset
if [ "$testfailed" ]; then
exit 1
fi
|