1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
3 # Test suite for GNU tar.
4 # Copyright (C) 2006 Free Software Foundation, Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 # Description: Test basic handling of renamed directory in the incremental
24 AT_SETUP([renamed dirs in incrementals])
25 AT_KEYWORDS([incremental rename rename01])
29 genfile --file foo/file1
30 genfile --file foo/file2
32 genfile --file foo/bar/file
34 echo "Creating base archive"
35 tar -g incr -cf arch.1 -v foo
39 echo "Creating incremental archive"
40 tar -g incr -cf arch.2 -v foo
44 tar xfg arch.1 /dev/null
46 echo "Begin directory listing 1"
48 echo "End directory listing 1"
50 tar xfg arch.2 /dev/null
51 echo Begin directory listing 2
53 echo End directory listing 2
56 [Creating base archive
62 Creating incremental archive
65 Begin directory listing 1
71 End directory listing 1
72 Begin directory listing 2
78 End directory listing 2
80 [tar: foo/bar: Directory is new
81 tar: foo/baz: Directory has been renamed from `foo/bar'
83 [],[],[gnu, oldgnu, posix])