chiark / gitweb /
Test suite: Make it possible to call t-policy more than once (moving t-dsd out of it)
[dgit.git] / tests / tests / trustingpolicy-replay
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 t-tstunt-parsechangelog
6
7 t-dsd
8 t-policy dgit-repos-policy-trusting
9 t-prep-newpackage example 1.0
10
11 cd $p
12 revision=1
13 git tag start
14
15 t-dgit build
16 t-dgit push --new
17
18 t-commit 'Prep v2 which will be rewound'
19 t-dgit build
20 t-dgit push
21
22 t-rm-dput-dropping
23 git checkout debian/1.0
24 t-dgit build
25 t-dgit push --deliberately-fresh-repo
26
27 remote="`git config dgit-distro.test-dummy.git-url`/$p.git"
28
29 t-expect-fail 'Replay of previously-rewound upload' \
30 git push "$remote" \
31         debian/1.1 \
32         debian/1.1~0:refs/dgit/sid
33
34 echo ok.
35 echo xxx want to check replay prevention insufficient proofs in tag