Files
tar/tests/multiv04.at
Sergey Poznyakoff a40e565719 Fix interaction of various --exclude-tag options with --listed-incremental.
* src/incremen.c (procdir): Set directory->tagfile in
the exclusion_tag_contents case.
(makedumpdir): Mark all entries as ignored if directory->tagfile
is set.
Free new_dump before returning.
(maketagdumpdir): New function.
(scan_directory): If directory->children is set to
NO_CHILDREN and directory->tagfile is set, create a
dumpdir consisting of the tagfile only.

* tests/exclude08.at: New testcase.
* tests/exclude09.at: New testcase.
* tests/exclude10.at: New testcase.
* tests/exclude11.at: New testcase.
* tests/exclude12.at: New testcase.
* tests/exclude13.at: New testcase.
* tests/exclude14.at: New testcase.
* tests/exclude15.at: New testcase.
* tests/exclude16.at: New testcase.
* tests/Makefile.am: Add new tests.
* tests/testsuite.at: Include new tests.
* tests/atlocal.in (mkexcltest): New function.
* tests/chtype.at: Update keywords.
* tests/filerem01.at: Likewise.
* tests/filerem02.at: Likewise.
* tests/incremental.at: Likewise.
* tests/multiv04.at: Likewise.
2013-03-12 23:08:53 +02:00

67 lines
2.1 KiB
Plaintext

# Process this file with autom4te to create testsuite. -*- Autotest -*-
# Test suite for GNU tar.
# Copyright 2005-2007, 2013 Free Software Foundation, Inc.
# This file is part of GNU tar.
# GNU tar is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
# GNU tar is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Problem: Tar was not able to match directory name if the directory
# member was split between two volumes
# References: Jörg Schilling pretends to have reported this two
# years ago (<42551FF2.nail98011FRAT@burner>).
# Test idea:
# 1. Create a listed-incremental archive of a directory containing
# a cetrain number of zero-length files.
# 2. Using the same snapshot file, create a *multivolume* listed-incremental
# archive. Number of files created in the directory and volume size should
# be selected so that the first volume ends in the midst of the directory
# member. The files are zero-length so that their member records are
# sufficiently small, in order for the entire archive to fit in two volumes.
# 3. Test the created multi-volume archive.
AT_SETUP([split directory members in a MV archive])
AT_KEYWORDS([multivolume multiv incremental listed multiv04])
AT_TAR_CHECK([
mkdir directory
awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
exec <&-
sleep 2
tar --listed-incremental=list -c -f archive.a directory
sleep 2
tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
echo separator
tar -MRt -f arc.1 -f arc.2],
[0],
[directory/
separator
block 0: directory/
block 35: ** Block of NULs **
],
[],
[],[],[gnu, oldgnu])
AT_CLEANUP