X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=tests%2Fmultiv01.sh;h=9f3bf6c9a721a4148f28d5accd26bafd35ead001;hb=7fb546943ef0bd07a1bc65164e6e752b9fa4126f;hp=6801b911be9d16e39d4a1e37bb0e39aef00165e0;hpb=c506c33ad333f80fa59a669e3bd371cbfeda1eb3;p=chaz%2Ftar diff --git a/tests/multiv01.sh b/tests/multiv01.sh index 6801b91..9f3bf6c 100755 --- a/tests/multiv01.sh +++ b/tests/multiv01.sh @@ -2,6 +2,7 @@ # Test multivolume dumps from pipes. . ./preset +TAR_ARCHIVE_FORMATS="gnu oldgnu" . $srcdir/before # Fixme: should be configurable @@ -9,7 +10,7 @@ # TRUSS=strace set -e -dd if=/dev/zero bs=1024 count=7 >file1 +dd if=/dev/zero bs=1024 count=7 2>/dev/null >file1 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \ " 9" "10" "11" "12" "13" "14" "15" "16" ; do \ @@ -19,13 +20,13 @@ for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \ done done >file2 -tar -c --format=gnu --multi-volume --tape-length=10 \ +tar -c --multi-volume --tape-length=10 \ --listed-incremental=t.snar \ -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 mkdir extract-dir-pipe -dd bs=4096 count=10 if=t2-pipe.tar | -PATH=$PATH ${TRUSS} tar --format=gnu -f t1-pipe.tar -f - \ +dd bs=4096 count=10 if=t2-pipe.tar 2>/dev/null | +PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \ -C extract-dir-pipe -x --multi-volume \ --tape-length=10 --read-full-records @@ -34,11 +35,5 @@ cmp file2 extract-dir-pipe/file2 out="\ " -err="\ -7+0 records in -7+0 records out -2+1 records in -2+1 records out -" . $srcdir/after