From d4fdeab4db0d0e699c8fbbb07f12c4e1f64d0f94 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Mon, 16 May 2016 09:22:21 +0000 Subject: tar-1.29 --- tests/multiv04.at | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 tests/multiv04.at (limited to 'tests/multiv04.at') diff --git a/tests/multiv04.at b/tests/multiv04.at new file mode 100644 index 0000000..9c99c9e --- /dev/null +++ b/tests/multiv04.at @@ -0,0 +1,66 @@ +# Process this file with autom4te to create testsuite. -*- Autotest -*- + +# Test suite for GNU tar. +# Copyright 2005-2007, 2013-2014, 2016 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 . + +# 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); }'