6 t-prep-newpackage example 1.0
14 dch -v$v --distribution unstable "$1"
15 git add debian/changelog
17 revision=$(( $revision + 1 ))
22 echo FORBIDDEN >debian/some-file
23 git add debian/some-file
24 t-commit 'Commit a forbidden thing'
26 bad=`git rev-parse HEAD:debian/some-file`
27 t-policy-admin taint --global "$bad" "forbidden for testing"
30 t-expect-fail 'forbidden for testing' \
32 t-git-dir-check enoent
34 git reset --hard start
35 t-commit 'will vanish from NEW'
39 t-git-dir-check secret
42 t-git-dir-check secret
44 # pretend it vanished from new:
46 t-archive-none example
51 t-git-dir-check enoent
53 t-commit 'should require --deliberately...questionable'
56 t-expect-fail "tag debian/$vanished referred to this object.*all previously pushed versions were found to have been removed" \
58 t-git-dir-check enoent
60 t-dgit push --new --deliberately-include-questionable-history
61 t-git-dir-check secret
64 t-git-dir-check secret
66 t-archive-process-incoming new
70 t-git-dir-check secret
72 git reset --hard start
73 t-commit 'should require --deliberately..not-ff'
76 t-expect-fail "HEAD is not a descendant of the archive's version" \
79 t-expect-fail "Package is in NEW and has not been accepted or rejected yet" \
80 t-dgit --deliberately-TEST-not-fast-forward-dgit-only push
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
86 echo xxx want to check replay prevention '(delete tag)'