chiark / gitweb /
test suite: Add --force-reusing-version to many tests
[dgit.git] / tests / tests / debpolicy-taintrm
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 t-tstunt-parsechangelog
6
7 t-debpolicy
8 t-prep-newpackage example 1.0
9
10 cd $p
11 revision=1
12 git tag start
13 t-dgit setup-mergechangelogs
14
15
16 : upload
17
18 t-dgit push-source --new
19
20 : cut
21
22 rm $tmp/incoming/*
23 t-archive-none example
24
25 touch -d 'now -1 day' $tmp/git/example*
26
27 t-policy-periodic # xxx maybe want test both with and without this
28
29 : edit
30 t-commit 'edit after cut'
31
32 : push, needs --deliberately
33
34 t-expect-push-fail \
35  'all previously pushed versions were found to have been removed from NEW' \
36 t-dgit push-source --new
37
38 t-dgit push-source --new --deliberately-include-questionable-history \
39         --force-reusing-version
40
41 t-archive-process-incoming new
42
43 # : t-policy-periodic # maybe want test with this
44
45 : accept
46
47 mv -f $tmp/aq/package.{new,sid}.$p
48 t-aq-archive-updated sid $p
49
50 # : t-policy-periodic # maybe want test with this
51
52 t-git-dir-time-passes
53
54 : 3rd push, no deliberately
55
56 t-commit 'edit after accept'
57 t-dgit push-source
58
59 t-ok