summaryrefslogtreecommitdiffstats
path: root/dm-packaging/review
diff options
context:
space:
mode:
Diffstat (limited to 'dm-packaging/review')
-rwxr-xr-xdm-packaging/review32
1 files changed, 32 insertions, 0 deletions
diff --git a/dm-packaging/review b/dm-packaging/review
new file mode 100755
index 0000000..abddb5c
--- /dev/null
+++ b/dm-packaging/review
@@ -0,0 +1,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