chiark / gitweb /
git-debrebase: test suite: gdr-diverge-nmu: new test, not complete yet
[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 v=2.0-2+nmu1
16 t-nmu-upload-1 nmu
17 gbp pq import
18 t-nmu-upload-2
19 echo >>newsrc.c "// more upstream"
20 git add newsrc.c
21 git commit -m 'UPSTREAM NMU'
22 t-nmu-upload-3
23
24 : 'done the nmu, switching back to the maintainer hat'
25
26 t-dch-commit -v2.0-3 -m 'start -3'
27
28 t-some-changes 'maintainer'
29 t-git-debrebase
30 t-git-debrebase stitch
31
32 t-dgit fetch
33 t-git-next-date
34
35 t-expect-fail E:'Not.*fast-forward' \
36 git merge --ff-only dgit/dgit/sid
37
38 : 'ad hocery'
39
40 git cherry-pick 'dgit/dgit/sid^{/UPSTREAM NMU}'
41
42 t-expect-fail 'Automatic merge failed; fix conflicts' \
43 git merge --squash -m 'Incorporate NMU' dgit/dgit/sid
44
45 git rm -rf debian/patches
46 git commit -m 'Incorporate NMU'
47
48 t-ok