chiark / gitweb /
test suite: lib-baredebian: Machinery for multiple origs
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Jun 2019 00:19:03 +0000 (01:19 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Jun 2019 20:11:18 +0000 (21:11 +0100)
No functional change with existing caller.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib-baredebian

index abec753af6c78f1ed8df7ddf12fc7b50518462ee..676ff21cf9d147e711cadf7981efaf9fdf6dbb84 100644 (file)
@@ -6,6 +6,7 @@ baredebian-test-vars () {
        suite=sid
        uv=${v%-*}
        uvtag=v$uv
+       xorigcomps=''
 }
 
 baredebian-tarball-mode () {
@@ -20,7 +21,14 @@ baredebian-test-core () {
 
        t-dgit -wn --dgit-view-save=split.f1 --$quiltmode quilt-fixup
 
-       tar --strip-components=1 -axf ../${p}_${uv}.orig.tar.*
+       local orig=${p}_${uv}.orig
+       tar --strip-components=1 -axf ../$orig.tar.*
+       for comp in $xorigcomps; do
+               mkdir $comp
+               cd $comp
+               tar --strip-components=1 -axf ../../$orig-$comp.tar.*
+               cd ..
+       done
 
        cd debian
        git clean -xdff