chiark / gitweb /
8655fb5d962feebbb9b039d3ca5e7883e878d1bc
[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
40 t-archive-process-incoming new
41
42 # : t-policy-periodic # maybe want test with this
43
44 : accept
45
46 mv -f $tmp/aq/package.{new,sid}.$p
47 t-aq-archive-updated sid $p
48
49 # : t-policy-periodic # maybe want test with this
50
51 t-git-dir-time-passes
52
53 : 3rd push, no deliberately
54
55 t-commit 'edit after accept'
56 t-dgit push-source
57
58 t-ok