chiark / gitweb /
git-debrebase: test suite: gdr-subcommands: honour new $xopts
[dgit.git] / tests / tests / gdr-edits
index 30786fee76f8d2245a630538d0b0faeceb5be8fd..45a3f20c25e4fe670730a09b0fbeb0a6847adcdb 100755 (executable)
@@ -2,55 +2,42 @@
 set -e
 . tests/lib
 
-t-dependencies git-buildpackage libfile-fnmatch-perl
+t-dependencies git-buildpackage libfile-fnmatch-perl faketime
 
-t-setup-import gbp2gdr
+t-setup-import gdr-convert-gbp
 
 cd $p
 
 v=2.0-3
-dch -v $v -m testing
-git commit -m changelog debian/changelog
+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'
+t-some-changes edits
 
-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
+t-dch-commit -r sid
 
 git tag t.before
 
 t-git-debrebase
-
-git diff t.before -- ':.' ':!debian/patches'
-
-t-gdr-branch-structure laundered
+t-gdr-good laundered
 
 t-git-debrebase stitch --prose=wombat
-
-t-gdr-branch-structure stitched
+t-gdr-good stitched
 
 t-dgit push-source
+t-gdr-good pushed
+
+git branch before-noop
 
-t-gdr-branch-structure pushed
+t-git-next-date
+t-git-debrebase
+t-git-debrebase stitch
+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'
+t-refs-same-start
+t-ref-same refs/heads/before-noop
+t-ref-head
 
 t-ok