chiark / gitweb /
git-debrebase: test suite: gdr nmu divergence: do maintainer first
[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 : 'maintainer'
14
15 v=2.0-3
16 t-maintainer-commit-some-changes
17
18 t-git-next-date
19
20 : 'non-dgit upload (but we prepare it with dgit anyway)'
21
22 t-git-next-date
23 git checkout origin/master
24
25 v=2.0-2+nmu1
26 t-nmu-upload-1 nmu
27 gbp pq import
28 t-nmu-upload-2
29 t-nmu-commit-an-upstream-change
30 t-nmu-upload-3
31
32 : 'ad hocery'
33
34 t-git-next-date
35 git checkout master
36 t-nmu-causes-ff-fail
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