chiark / gitweb /
test suite: baredebian: Break out baredebian-test-minimum
[dgit.git] / tests / lib-baredebian
index 676ff21cf9d147e711cadf7981efaf9fdf6dbb84..3ef6569d9474dc0ed9f973cfe9dfdc845dfda04f 100644 (file)
@@ -6,6 +6,7 @@ baredebian-test-vars () {
        suite=sid
        uv=${v%-*}
        uvtag=v$uv
+       origbase=${p}_${uv}.orig
        xorigcomps=''
 }
 
@@ -15,18 +16,19 @@ baredebian-tarball-mode () {
        quiltmode=baredebian+tarball
 }
 
-baredebian-test-core () {
+baredebian-test-minimum () {
        t-expect-fail 'contradicts clean mode git-ff' \
        t-dgit -wgf --dgit-view-save=split.f1 --$quiltmode quilt-fixup
 
        t-dgit -wn --dgit-view-save=split.f1 --$quiltmode quilt-fixup
+}
 
-       local orig=${p}_${uv}.orig
-       tar --strip-components=1 -axf ../$orig.tar.*
+baredebian-test-core () {
+       tar --strip-components=1 -axf ../$origbase.tar.*
        for comp in $xorigcomps; do
                mkdir $comp
                cd $comp
-               tar --strip-components=1 -axf ../../$orig-$comp.tar.*
+               tar --strip-components=1 -axf ../../$origbase-$comp.tar.*
                cd ..
        done
 
@@ -86,5 +88,6 @@ baredebian-test-core () {
 
 baredebian-test () {
        baredebian-test-vars
+       baredebian-test-minimum
        baredebian-test-core
 }