chiark / gitweb /
git-debrebase: test: check branch structure
[dgit.git] / tests / tests / gdr-edits
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 t-dependencies git-buildpackage libfile-fnmatch-perl
6
7 t-setup-import gbp2gdr
8
9 cd $p
10
11 t-git-debrebase analyse |tee ../anal.1
12 cat ../anal.1
13
14 echo >>debian/zorkmid '// debian'
15 git add debian/zorkmid
16 git commit -m 'DEBIAN add zorkmid'
17
18 echo >>src.c '// upstream'
19 git commit -a -m 'UPSTREAM edit src.c'
20
21 for f in debian/zorkmid src.c; do
22         echo '// both!' >>$f
23         git add $f
24 done
25 git commit -m 'MIXED add boths'
26
27 git tag t.before
28
29 t-git-debrebase
30
31 git diff t.before -- ':.' ':!debian/patches'
32
33 t-gdr-branch-structure laundered
34
35 t-git-debrebase stitch --prose=wombat
36
37 : todo 'check that all is still well'
38
39 : todo 'more tests: convert dgit import new upstream version'
40 : todo 'more tests: convert dgit import same upstream version'
41 : todo 'more tests: other maint updated, we must fetch'
42 : todo 'more tests: other maint updated, alert divergence'
43 : todo 'more tests: nmu divergence'
44
45 t-ok