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