chiark / gitweb /
8f0b9cb0135780a9de29d4457f0636c613140a1a
[dgit.git] / tests / tests / gdr-diverge-nmu
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 t-dependencies git-buildpackage libfile-fnmatch-perl faketime
6
7 t-setup-import gdr-convert-gbp
8
9 cd $p
10
11 t-dgit setup-mergechangelogs
12
13 : 'non-dgit upload (but we prepare it with dgit anyway)'
14
15 t-git-next-date
16
17 v=2.0-2+nmu1
18 t-nmu-upload-1 nmu
19 gbp pq import
20 t-nmu-upload-2
21 t-nmu-commit-an-upstream-change
22 t-nmu-upload-3
23
24 : 'done the nmu, switching back to the maintainer hat'
25
26 t-git-next-date
27
28 v=2.0-3
29 t-maintainer-commit-some-changes
30
31 t-dgit fetch
32 t-git-next-date
33
34 t-nmu-causes-ff-fail
35
36 : 'ad hocery'
37
38 git cherry-pick 'dgit/dgit/sid^{/UPSTREAM NMU}'
39
40 t-expect-fail 'Automatic merge failed; fix conflicts' \
41 git merge --squash -m 'Incorporate NMU' dgit/dgit/sid
42
43 git rm -rf debian/patches
44 git commit -m 'Incorporate NMU'
45
46 git merge -s ours -m 'Declare incorporate NMU' dgit/dgit/sid
47
48 : 'right, how are we'
49
50 t-git-next-date
51
52 t-git-debrebase
53 t-gdr-good laundered
54
55 t-git-debrebase stitch
56 t-gdr-good stitched
57
58
59 t-nmu-reconciled-good patch-queue/nmu
60
61 t-ok