chiark / gitweb /
git-debrebase: test suite: gdr-diverge-nmu: more work, still need to check
[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 echo >>newsrc.c "// more upstream"
22 git add newsrc.c
23 git commit -m 'UPSTREAM NMU'
24 t-nmu-upload-3
25
26 : 'done the nmu, switching back to the maintainer hat'
27
28 t-git-next-date
29
30 t-dch-commit -v2.0-3 -m 'start -3'
31
32 t-some-changes 'maintainer'
33 t-git-debrebase
34 t-git-debrebase stitch
35
36 t-git-next-date
37
38 t-dgit fetch
39 t-git-next-date
40
41 t-expect-fail E:'Not.*fast-forward' \
42 git merge --ff-only dgit/dgit/sid
43
44 : 'ad hocery'
45
46 git cherry-pick 'dgit/dgit/sid^{/UPSTREAM NMU}'
47
48 t-expect-fail 'Automatic merge failed; fix conflicts' \
49 git merge --squash -m 'Incorporate NMU' dgit/dgit/sid
50
51 git rm -rf debian/patches
52 git commit -m 'Incorporate NMU'
53
54 git merge -s ours -m 'Declare incorporate NMU' dgit/dgit/sid
55
56 : 'right, how are we'
57
58 t-git-next-date
59
60 t-git-debrebase
61 t-gdr-good laundered
62
63 t-git-debrebase stitch
64 t-gdr-good stitched
65
66 t-ok