chiark / gitweb /
bab3a3dce67477eae5dd5f580c6c6ae199a70e40
[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-ok