]> Dogcows Code - chaz/tar/blob - tests/rename05.at
Update copyright years.
[chaz/tar] / tests / rename05.at
1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
2
3 # Test suite for GNU tar.
4 # Copyright 2008, 2013-2014 Free Software Foundation, Inc.
5
6 # This file is part of GNU tar.
7
8 # GNU tar is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
12
13 # GNU tar is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
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 --warning=no-timestamp
50 find directory | sort
51
52 decho Second restore
53 tar -xf archive.2 -g db.2 --warning=no-timestamp
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
This page took 0.032409 seconds and 4 git commands to generate.