chiark / gitweb /
git-debrebase: test suite: gdr-edits: do a push
[dgit.git] / tests / tests / gdr-edits
index f5ca2a434b986106f2d2a6f1dab7f2ac94a0706f..5388f0498bb5045a82ae638def762f65f24cd2c5 100755 (executable)
@@ -8,9 +8,47 @@ t-setup-import gbp2gdr
 
 cd $p
 
+v=2.0-3
+dch -v $v -m testing
+git commit -m changelog debian/changelog
+
 t-git-debrebase analyse |tee ../anal.1
 cat ../anal.1
 
-: xxx
+echo >>debian/zorkmid '// debian'
+git add debian/zorkmid
+git commit -m 'DEBIAN add zorkmid'
+
+echo >>src.c '// upstream'
+git commit -a -m 'UPSTREAM edit src.c'
+
+for f in debian/zorkmid src.c; do
+       echo '// both!' >>$f
+       git add $f
+done
+git commit -m 'MIXED add boths'
+
+dch -r sid
+git commit -m changelog debian/changelog
+
+git tag t.before
+
+t-git-debrebase
+
+git diff t.before -- ':.' ':!debian/patches'
+
+t-gdr-branch-structure laundered
+
+t-git-debrebase stitch --prose=wombat
+
+t-gdr-branch-structure stitched
+
+t-dgit push-source
+
+: todo 'more tests: convert dgit import new upstream version'
+: todo 'more tests: convert dgit import same upstream version'
+: todo 'more tests: other maint updated, we must fetch'
+: todo 'more tests: other maint updated, alert divergence'
+: todo 'more tests: nmu divergence'
 
 t-ok