X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Ftests%2Fgdr-edits;h=d82c2383f1ab639a022bbb28deb7cfc7eb9c989f;hb=a04c715cb3760cdc51f952e199381297ce3e7d4f;hp=ddb354d8f870036425f70554a4a3fedf12a6372c;hpb=e16b3c810bb906b8a66ffdb41e96d3912704d3f4;p=dgit.git diff --git a/tests/tests/gdr-edits b/tests/tests/gdr-edits index ddb354d8..d82c2383 100755 --- a/tests/tests/gdr-edits +++ b/tests/tests/gdr-edits @@ -4,40 +4,32 @@ set -e t-dependencies git-buildpackage libfile-fnmatch-perl -t-setup-import gbp2gdr +t-setup-import gdr-convert-gbp cd $p +v=2.0-3 +t-dch-commit -v $v -m testing + t-git-debrebase analyse |tee ../anal.1 cat ../anal.1 -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' +t-some-changes edits -for f in debian/zorkmid src.c; do - echo '// both!' >>$f - git add $f -done -git commit -m 'MIXED add boths' +t-dch-commit -r sid git tag t.before t-git-debrebase - -git diff t.before -- ':.' ':!debian/patches' - -: todo 'check that the branch has the expected structure' +t-gdr-good laundered t-git-debrebase stitch --prose=wombat +t-gdr-good stitched -: todo 'check that all is still well' +t-dgit push-source +t-gdr-good pushed : 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'