chiark / gitweb /
git-debrebase: test suite: gdr-edits: check branch structure after last push
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 16 Feb 2018 15:01:03 +0000 (15:01 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jun 2018 11:25:49 +0000 (12:25 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib-gdr
tests/tests/gdr-edits

index fb58bf9..f633307 100644 (file)
@@ -19,10 +19,12 @@ t-gdr-branch-structure () {
        #   stitched
        #   patches
 
+       local etype netype
+
        case $state in
        laundered)      etype=Upstream  ;;
        stitched)       etype=Pseudomerge ;;
-       patches)        etype=XXX-TODO ;;
+       pushed)         etype=AddPatches; netype=Pseudomerge ;;
        esac
 
        t-git-debrebase analyse >../anal.check
@@ -52,6 +54,12 @@ t-gdr-branch-structure () {
                        git diff --quiet $expect..$cid -- ':debian/patches'
                        etype=Packaging
                        ;;
+               AddPatches/SAME)
+                       git diff --quiet $expect..$cid -- \
+                               ':.' ':!debian/patches'
+                       etype=$netype
+                       netype=Upstream
+                       ;;
                Changelog/Packaging|\
                Changelog/Upstream)
                        git diff --quiet $expect..$cid -- \
index 5388f04..30786fe 100755 (executable)
@@ -45,6 +45,8 @@ t-gdr-branch-structure stitched
 
 t-dgit push-source
 
+t-gdr-branch-structure 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'