]> git.cworth.org Git - tar/blob - tests/multiv07.at
upstream: Fix extraction of device nodes.
[tar] / tests / multiv07.at
1 # Test suite for GNU tar.                             -*- Autotest -*-
2 # Copyright (C) 2010 Free Software Foundation, Inc.
3
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3, or (at your option)
7 # any later version.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
17 # Description: When creating POSIX multivolume archives, tar may in
18 # some cases write an extended header at the end of one volume, and
19 # the corresponding ustar header at the beginning of the next volume.
20 # Such archives do not fully comply with the POSIX specs, but tar must
21 # be able to read them anyway. This is what this script tests.
22 #
23 # See function try_new_volume, in file src/buffer.c near line 1227
24 # for additional details.
25
26 AT_SETUP([volumes split at an extended header])
27 AT_KEYWORDS([multivolume multiv multiv07 xsplit])
28
29 AT_CHECK([
30 AT_XFAIL_IF(test -f $[]XFAILFILE)
31 AT_TARBALL_PREREQ([xsplit-1.tar],[0e008c84c517e48fbf23ca6a7033cde6])
32 AT_TARBALL_PREREQ([xsplit-2.tar],[03150b9852d285458f43734e9e0b9a45])
33
34 exec <&-
35
36 cd $TEST_DATA_DIR
37 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
38 ],
39 [0],
40 [Archive volumes split at an extended header Volume 1
41 foo
42 bar
43 ])
44
45 AT_CLEANUP