chiark / gitweb /
test suite: lib-gdr: t-gdr-good: Handle MergedBreakwaters
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 11 Aug 2018 12:31:58 +0000 (13:31 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 11 Aug 2018 14:36:23 +0000 (15:36 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib-gdr

index 6c74465..9d9fcb4 100644 (file)
@@ -56,6 +56,7 @@ t-gdr-good-analyse () {
        stitched)       etypes=Pseudomerge-Upstream ;;
        pushed)         etypes=AddPatches-Pseudomerge-Upstream ;;
        pushed-interop) etypes=Pseudomerge-AddPatchesInterop-Upstream ;;
+       breakwater)     etypes=Packaging ;;
        esac
 
        anal=../anal$wsfx
@@ -77,6 +78,8 @@ t-gdr-good-analyse () {
                Pseudomerge/SAME)                       ;;
                Packaging/SAME)                         ;;
                Packaging/Upstream)                     ;;
+               MergedBreakwaters/Packaging)            ;;
+               MergedBreakwaters/Upstream)             ;;
                AddPatches/SAME)                        ;;
                AddPatches/AddPatchesInterop)           ;;
                Changelog/Packaging)                    ;;
@@ -141,6 +144,9 @@ t-gdr-good-analyse () {
                Upstream/SAME)
                        git diff --quiet $expect..$cid -- ':debian'
                        ;;
+               MergedBreakwaters)
+                       enparents=2
+                       ;;
                Anchor)
                        break
                        ;;
@@ -159,6 +165,19 @@ t-gdr-good-analyse () {
                *)              fail 'unexpected parent' ;;
                esac
 
+               case "$ctype" in
+               MergedBreakwaters)
+                       local f
+                       local parent_ix=0
+                       for f in $parents; do
+                               t-gdr-good-analyse $f breakwater \
+                                       $wsfx-mp$parent_ix
+                               parent_ix=$(( $parent_ix + 1 ))
+                       done
+                       return
+                       ;;
+               esac            
+
        done
 }