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