chiark / gitweb /
3efd063d408fac83f685809aa3209156e1ca9c18
[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 v=2.0-3
12 t-dch-commit -v $v -m testing
13
14 t-git-debrebase analyse |tee ../anal.1
15 cat ../anal.1
16
17 echo >>debian/zorkmid '// debian'
18 git add debian/zorkmid
19 git commit -m 'DEBIAN add zorkmid'
20
21 echo >>src.c '// upstream'
22 git commit -a -m 'UPSTREAM edit src.c'
23
24 for f in debian/zorkmid src.c; do
25         echo '// both!' >>$f
26         git add $f
27 done
28 git commit -m 'MIXED add boths'
29
30 t-dch-commit -r sid
31
32 git tag t.before
33
34 t-git-debrebase
35
36 git diff t.before -- ':.' ':!debian/patches'
37
38 t-gdr-branch-structure laundered
39
40 t-git-debrebase stitch --prose=wombat
41
42 t-gdr-branch-structure stitched
43
44 t-dgit push-source
45
46 t-gdr-branch-structure pushed
47
48 : todo 'more tests: convert dgit import new upstream version'
49 : todo 'more tests: convert dgit import same upstream version'
50 : todo 'more tests: other maint updated, we must fetch'
51 : todo 'more tests: other maint updated, alert divergence'
52 : todo 'more tests: nmu divergence'
53
54 t-ok