1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
3 # Test suite for GNU tar.
4 # Copyright 2006-2007, 2009, 2013-2014, 2016 Free Software Foundation,
7 # This file is part of GNU tar.
9 # GNU tar is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 3 of the License, or
12 # (at your option) any later version.
14 # GNU tar is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22 # Description: Test basic handling of renamed directory in the incremental
25 AT_SETUP([renamed dirs in incrementals])
26 AT_KEYWORDS([incremental rename rename01])
32 genfile --file foo/file1
33 genfile --file foo/file2
35 genfile --file foo/bar/file
37 echo "Creating base archive"
38 tar -g incr -cf arch.1 -v foo
42 echo "Creating incremental archive"
43 tar -g incr -cf arch.2 -v foo
47 tar xfg arch.1 /dev/null
49 echo "Begin directory listing 1"
51 echo "End directory listing 1"
53 tar xfg arch.2 /dev/null
54 echo Begin directory listing 2
56 echo End directory listing 2
59 [Creating base archive
65 Creating incremental archive
68 Begin directory listing 1
74 End directory listing 1
75 Begin directory listing 2
81 End directory listing 2
83 [tar: foo: Directory is new
84 tar: foo/bar: Directory is new
85 tar: foo/baz: Directory has been renamed from 'foo/bar'
87 [],[],[gnu, oldgnu, posix])