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 git reset --hard start
75 t-commit 'should require --deliberately..not-ff'
78 t-expect-fail "HEAD is not a descendant of the archive's version" \
81 t-expect-fail "Package is in NEW and has not been accepted or rejected yet" \
82 t-dgit --deliberately-TEST-not-fast-forward-dgit-only push
85 echo xxx want to test database lock retry thing on push-and-taint
86 echo xxx want to test forbidden objects not present
87 echo xxx want to check expect fail did not push
88 echo xxx want to check replay prevention '(delete tag)'