diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-04-19 22:51:33 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-05-31 11:54:06 +0100 |
commit | 8c6bf5e74ef133792ac87ccfa2a57041b7dbfe49 (patch) | |
tree | 91dbfad5613d617cb815248f739a16cb3f32252e /tests/tests | |
parent | a90a93dc51850eef80e50f95b44f3e3aa09a613c (diff) |
Test suite: start work on test of policy machinery
Diffstat (limited to 'tests/tests')
-rwxr-xr-x | tests/tests/debpolicy-newreject | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/tests/debpolicy-newreject b/tests/tests/debpolicy-newreject new file mode 100755 index 0000000..de01a53 --- /dev/null +++ b/tests/tests/debpolicy-newreject @@ -0,0 +1,24 @@ +#!/bin/bash +set -e +. tests/lib + +export DGIT_DRS_DEBUG=1 + +t-debpolicy +t-prep-newpackage pari-extra 3.1 + +cd $p + + +echo FORBIDDEN >debian/some-file +git add debian/some-file +git commit -m 'Commit a forbidden thing' + +bad=`git rev-parse HEAD:debian/some-file` +t-policy-admin taint --global "$bad" "forbidden for testing" + +t-dgit build +t-expect-fail 'forbidden for testing' \ +t-dgit push --new + +echo xxx up to here |