]> Dogcows Code - chaz/tar/blob - tests/rename05.at
Fix incremental archiving of renamed directories.
[chaz/tar] / tests / rename05.at
1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
2
3 # Test suite for GNU tar.
4 # Copyright (C) 2008 Free Software Foundation, Inc.
5
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)
9 # any later version.
10
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.
15
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
19 # 02110-1301, USA.
20
21 # Description: A continuation of rename04.at, that checks additionally if
22 # renamed subdirectories are restored correctly.
23
24 AT_SETUP([renamed subdirectories])
25 AT_KEYWORDS([incremental rename05 rename])
26
27 AT_TAR_CHECK([
28 AT_SORT_PREREQ
29
30 decho Creating directory structure
31 mkdir directory
32 mkdir directory/subdir
33 genfile --file=directory/file
34
35 decho Creating initial archive
36 tar -cf archive.1 -g db.1 directory
37
38 decho Renaming
39 mv directory/subdir directory/subdir.0
40 mv directory dir
41
42 decho Creating incremental archive
43 cp db.1 db.2
44 tar -cf archive.2 -g db.2 dir
45
46 mv dir orig
47
48 decho First restore
49 tar -xf archive.1 -g db.1
50 find directory | sort
51
52 decho Second restore
53 tar -xf archive.2 -g db.2
54 find dir | sort
55 ],
56 [0],
57 [Creating directory structure
58 Creating initial archive
59 Renaming
60 Creating incremental archive
61 First restore
62 directory
63 directory/file
64 directory/subdir
65 Second restore
66 dir
67 dir/subdir.0
68 ],
69 [Creating directory structure
70 Creating initial archive
71 Renaming
72 Creating incremental archive
73 First restore
74 Second restore
75 ],[],[],[gnu, oldgnu, posix])
76
77 AT_CLEANUP
78
79 # End of rename05.at
80
81
This page took 0.041706 seconds and 5 git commands to generate.