1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
3 # Test suite for GNU tar.
4 # Copyright (C) 2006, 2007 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 3, 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: Incremental archives should be able to handle directories
22 # moved between directory hierarchies.
24 AT_SETUP([move between hierarchies])
25 AT_KEYWORDS([incremental rename rename02])
30 genfile --file foo/file1
31 genfile --file foo/file2
33 genfile --file foo/bar/file.r
35 genfile --file foo/bar/baz/file.z
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 2>tmperr
50 echo "Begin directory listing 1"
52 echo "End directory listing 1"
54 tar xfgv arch.2 /dev/null
55 echo Begin directory listing 2
57 echo End directory listing 2
60 [Creating base archive
68 Creating incremental archive
72 Begin directory listing 1
80 End directory listing 1
84 Begin directory listing 2
92 End directory listing 2
94 [tar: foo/bar: Directory is new
95 tar: foo/bar/baz: Directory is new
96 tar: foo/baz: Directory has been renamed from `foo/bar/baz'
98 [],[],[gnu, oldgnu, posix])