chiark / gitweb /
test suite: gdr-edits: Rely on dgit interop, and test that it DTRT
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 17 Jun 2018 11:21:55 +0000 (12:21 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 17 Jun 2018 11:21:55 +0000 (12:21 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib-gdr
tests/tests/gdr-edits

index 08717dd..9eb7537 100644 (file)
@@ -47,6 +47,7 @@ t-gdr-good () {
                ;;
        stitched)       etypes=Pseudomerge-Upstream ;;
        pushed)         etypes=AddPatches-Pseudomerge-Upstream ;;
+       pushed-interop) etypes=Pseudomerge-AddPatchesInterop-Upstream ;;
        esac
 
        t-git-debrebase analyse >../anal.check
@@ -68,6 +69,7 @@ t-gdr-good () {
                Packaging/SAME)                         ;;
                Packaging/Upstream)                     ;;
                AddPatches/SAME)                        ;;
+               AddPatches/AddPatchesInterop)           ;;
                Changelog/Packaging)                    ;;
                Changelog/Upstream)                     ;;
                Upstream/SAME)                          ;;
@@ -87,6 +89,13 @@ t-gdr-good () {
                        fi
                esac
 
+               case "$cetype" in
+               AddPatchesInterop)
+                       git log -n1 --pretty=format:%B \
+                       | grep '^\[git-debrebase[ :]'
+                       ;;
+               esac
+
                case "$ctype" in
                Pseudomerge)
                        expect=${info#Contributor=}
index 45a3f20..a23c2f0 100755 (executable)
@@ -23,18 +23,15 @@ git tag t.before
 t-git-debrebase
 t-gdr-good laundered
 
-t-git-debrebase stitch --prose=wombat
-t-gdr-good stitched
-
 t-dgit push-source
-t-gdr-good pushed
+t-gdr-good pushed-interop
 
 git branch before-noop
 
 t-git-next-date
 t-git-debrebase
 t-git-debrebase stitch
-t-gdr-good pushed
+t-gdr-good pushed-interop
 
 t-refs-same-start
 t-ref-same refs/heads/before-noop