5 t-tstunt-parsechangelog
8 t-prep-newpackage example 1.0
14 echo FORBIDDEN >debian/some-file
15 git add debian/some-file
16 t-commit 'Commit a forbidden thing'
18 bad=`git rev-parse HEAD:debian/some-file`
19 t-policy-admin taint --global "$bad" "forbidden for testing"
22 t-expect-fail 'forbidden for testing' \
24 t-git-dir-check enoent
26 git reset --hard start
27 t-commit 'will vanish from NEW'
31 t-git-dir-check secret
34 t-git-dir-check secret
36 # pretend it vanished from new:
38 t-archive-none example
43 t-git-dir-check enoent
45 t-commit 'should require --deliberately...questionable'
48 t-expect-fail "tag debian/$vanished referred to this object.*all previously pushed versions were found to have been removed" \
50 t-git-dir-check enoent
52 t-dgit push --new --deliberately-include-questionable-history
53 t-git-dir-check secret
56 t-git-dir-check secret
58 t-archive-process-incoming new
62 t-git-dir-check secret
64 oldobj=`git rev-parse HEAD`
65 git reset --hard start
66 t-commit 'should require --deliberately..not-ff'
69 t-expect-fail "HEAD is not a descendant of the archive's version" \
72 t-expect-fail "Package is in NEW and has not been accepted or rejected yet" \
73 t-dgit --deliberately-TEST-dgit-only-not-fast-forward push
75 t-dgit --deliberately-not-fast-forward push
78 t-expect-fail "Not a valid object name" \
79 git cat-file -p $oldobj
83 echo xxx want to test database lock retry thing on push-and-taint
84 echo xxx want to test forbidden objects not present
85 echo xxx want to check expect fail did not push "(everywhere)"