/[tar]/tar/tests/multiv01.sh
ViewVC logotype

Diff of /tar/tests/multiv01.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by eggert, Sat Jul 5 20:13:29 2003 UTC revision 1.2 by gray, Thu Jul 24 14:48:44 2003 UTC
# Line 4  Line 4 
4  . ./preset  . ./preset
5  . $srcdir/before  . $srcdir/before
6    
7    # Fixme: should be configurable
8    #  TRUSS=truss -o /tmp/tr
9    #  TRUSS=strace
10  set -e  set -e
11    
12  dd if=/dev/zero bs=1024 count=7 >file1  dd if=/dev/zero bs=1024 count=7 >file1
# Line 21  tar -c --multi-volume --tape-length=10 \ Line 24  tar -c --multi-volume --tape-length=10 \
24    -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2    -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2
25    
26  mkdir extract-dir-pipe  mkdir extract-dir-pipe
27  dd bs=4096 count=10 <t2-pipe.tar |  dd bs=4096 count=10 if=t2-pipe.tar |
28  PATH=$PATH truss -o /tmp/tr tar -f t1-pipe.tar -f - -C extract-dir-pipe -x --multi-volume \  PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
29    --tape-length=10 --read-full-records        -C extract-dir-pipe -x --multi-volume \
30          --tape-length=10 --read-full-records
31    
32  cmp file1 extract-dir-pipe/file1  cmp file1 extract-dir-pipe/file1
33  cmp file2 extract-dir-pipe/file2  cmp file2 extract-dir-pipe/file2
# Line 33  out="\ Line 37  out="\
37  err="\  err="\
38  7+0 records in  7+0 records in
39  7+0 records out  7+0 records out
40    2+1 records in
41    2+1 records out
42  "  "
43    
44  . $srcdir/after  . $srcdir/after

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26