chiark / gitweb /
test suite: lib-baredebian: Machinery for multiple origs
[dgit.git] / 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