5 t-tstunt-parsechangelog
8 t-prep-newpackage example 1.0
16 dch -v$v --distribution unstable "$1"
17 git add debian/changelog
19 revision=$(( $revision + 1 ))
24 echo FORBIDDEN >debian/some-file
25 git add debian/some-file
26 t-commit 'Commit a forbidden thing'
28 bad=`git rev-parse HEAD:debian/some-file`
29 t-policy-admin taint --global "$bad" "forbidden for testing"
32 t-expect-fail 'forbidden for testing' \
34 t-git-dir-check enoent
36 git reset --hard start
37 t-commit 'will vanish from NEW'
41 t-git-dir-check secret
44 t-git-dir-check secret
46 # pretend it vanished from new:
48 t-archive-none example
53 t-git-dir-check enoent
55 t-commit 'should require --deliberately...questionable'
58 t-expect-fail "tag debian/$vanished referred to this object.*all previously pushed versions were found to have been removed" \
60 t-git-dir-check enoent
62 t-dgit push --new --deliberately-include-questionable-history
63 t-git-dir-check secret
66 t-git-dir-check secret
68 t-archive-process-incoming new
72 t-git-dir-check secret
74 oldobj=`git rev-parse HEAD`
75 git reset --hard start
76 t-commit 'should require --deliberately..not-ff'
79 t-expect-fail "HEAD is not a descendant of the archive's version" \
82 t-expect-fail "Package is in NEW and has not been accepted or rejected yet" \
83 t-dgit --deliberately-TEST-not-fast-forward-dgit-only push
85 t-dgit --deliberately-not-fast-forward push
88 t-expect-fail "Not a valid object name" \
89 git cat-file -p $oldobj
93 echo xxx want to test database lock retry thing on push-and-taint
94 echo xxx want to test forbidden objects not present
95 echo xxx want to check expect fail did not push
96 echo xxx want to check replay prevention insufficient proofs in tag
97 echo xxx want to check replay prevention removed tags file