]> Dogcows Code - chaz/tar/blobdiff - tests/multiv01.sh
(sparse_diff_file): Bugfix. Thanks Martin Simmons for the patch.
[chaz/tar] / tests / multiv01.sh
index 3226f09775095532dc5c4f89ef542df13a42239b..6801b911be9d16e39d4a1e37bb0e39aef00165e0 100755 (executable)
@@ -4,6 +4,9 @@
 . ./preset
 . $srcdir/before
 
+# Fixme: should be configurable
+#  TRUSS=truss -o /tmp/tr
+#  TRUSS=strace
 set -e
 
 dd if=/dev/zero bs=1024 count=7 >file1
@@ -16,14 +19,15 @@ for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
   done
 done >file2
 
-tar -c --multi-volume --tape-length=10 \
+tar -c --format=gnu --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 <t2-pipe.tar |
-PATH=$PATH truss -o /tmp/tr tar -f t1-pipe.tar -f - -C extract-dir-pipe -x --multi-volume \
-  --tape-length=10 --read-full-records
+dd bs=4096 count=10 if=t2-pipe.tar |
+PATH=$PATH ${TRUSS} tar --format=gnu -f t1-pipe.tar -f - \
+      -C extract-dir-pipe -x --multi-volume \
+      --tape-length=10 --read-full-records
 
 cmp file1 extract-dir-pipe/file1
 cmp file2 extract-dir-pipe/file2
@@ -33,6 +37,8 @@ out="\
 err="\
 7+0 records in
 7+0 records out
+2+1 records in
+2+1 records out
 "
 
 . $srcdir/after
This page took 0.02304 seconds and 4 git commands to generate.