]> Dogcows Code - chaz/tar/blob - tests/multiv02.sh
(gnulib_modules): Add getpagesize.
[chaz/tar] / tests / multiv02.sh
1 #! /bin/sh
2
3 # Previous versions of tar were not able to skip a member straddling
4 # the multivolume archive boundary. Reported by Mads Martin Joergensen
5 # <mmj@suse.de>
6
7 # This file is part of GNU tar testsuite.
8 # Copyright (C) 2004 Free Software Foundation, Inc.
9 #
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; either version 2, or (at your option)
13 # any later version.
14 #
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
19 #
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
23 # 02111-1307, USA.
24
25 . ./preset
26 TAR_ARCHIVE_FORMATS="gnu oldgnu"
27 . $srcdir/before
28
29 genfile --length 10240 > en
30 genfile --length 20000 > to
31 genfile --length 20000 > tre
32 genfile --length 10240 > fire
33
34 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire
35 echo separator
36 tar -v -x -f A.tar -f B.tar -f C.tar -M en
37
38 out="\
39 separator
40 en
41 "
42
43 . $srcdir/after
This page took 0.036317 seconds and 4 git commands to generate.