]> Dogcows Code - chaz/tar/blob - tests/multiv04.at
Update copyright years.
[chaz/tar] / tests / multiv04.at
1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
2
3 # Test suite for GNU tar.
4 # Copyright 2005-2007, 2013-2014 Free Software Foundation, Inc.
5
6 # This file is part of GNU tar.
7
8 # GNU tar is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
12
13 # GNU tar is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21 # Problem: Tar was not able to match directory name if the directory
22 # member was split between two volumes
23 # References: Jörg Schilling pretends to have reported this two
24 # years ago (<42551FF2.nail98011FRAT@burner>).
25
26 # Test idea:
27 # 1. Create a listed-incremental archive of a directory containing
28 # a cetrain number of zero-length files.
29 # 2. Using the same snapshot file, create a *multivolume* listed-incremental
30 # archive. Number of files created in the directory and volume size should
31 # be selected so that the first volume ends in the midst of the directory
32 # member. The files are zero-length so that their member records are
33 # sufficiently small, in order for the entire archive to fit in two volumes.
34 # 3. Test the created multi-volume archive.
35
36 AT_SETUP([split directory members in a MV archive])
37 AT_KEYWORDS([multivolume multiv incremental listed multiv04])
38
39 AT_TAR_CHECK([
40
41 mkdir directory
42 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
43
44 exec <&-
45
46 sleep 2
47
48 tar --listed-incremental=list -c -f archive.a directory
49
50 sleep 2
51
52 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
53
54 echo separator
55
56 tar -MRt -f arc.1 -f arc.2],
57 [0],
58 [directory/
59 separator
60 block 0: directory/
61 block 35: ** Block of NULs **
62 ],
63 [],
64 [],[],[gnu, oldgnu])
65
66 AT_CLEANUP
This page took 0.039965 seconds and 4 git commands to generate.