]> git.ipfire.org Git - thirdparty/tar.git/blame - tests/incr11.at
Update copyright years
[thirdparty/tar.git] / tests / incr11.at
CommitLineData
d02c81df
SP
1# Process this file with autom4te to create testsuite. -*- Autotest -*-
2# Test suite for GNU tar.
c6f0ad51 3# Copyright 2015-2024 Free Software Foundation, Inc.
d02c81df
SP
4#
5# GNU tar is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 3 of the License, or
8# (at your option) any later version.
9#
10# GNU tar is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18# Description: Extraction from concatenated incremental archives
19# produced spurious error messages when trying to set file ownership
20# and permissions on renamed directories
21# Reported by: Alex Efros <powerman@powerman.name>
22# References: <20151129094003.GD18347@home.power>
23# http://lists.gnu.org/archive/html/bug-tar/2015-11/msg00033.html
24
25AT_SETUP([concatenated incremental archives (renames)])
1d2674ba 26AT_KEYWORDS([incremental concat cat incr11 chdir])
d02c81df
SP
27
28AT_TAR_CHECK([
143dc63f 29AT_CHECK_TIMESTAMP
d02c81df
SP
30AT_SORT_PREREQ
31AT_TAR_MKHIER([data/dir],[file])
32decho Level 0
33tar -cvf full.tar -g snap -C data .
34decho Level 1
35mv data/dir data/dir2
36tar -cvf incr.tar -g snap -C data .
37decho Concat
38cp full.tar full2.tar
39tar -A -f full2.tar incr.tar
40decho Extract
41mkdir out
42tar -xvf full2.tar -g /dev/null -C out
43decho List
44find out | sort
45],
46[0],
47[Level 0
48./
49./dir/
50./dir/file
51Level 1
52./
53./dir2/
54Concat
55Extract
56./
57./dir/
58./dir/file
59./
60./dir2/
61List
62out
63out/dir2
64out/dir2/file
65],
66[Level 0
67tar: .: Directory is new
68tar: ./dir: Directory is new
69Level 1
70tar: ./dir2: Directory has been renamed from './dir'
71Concat
72Extract
73List
74],[],[],[gnu])
75
76AT_CLEANUP