]> Dogcows Code - chaz/tar/blob - tests/incr06.at
Update copyright years.
[chaz/tar] / tests / incr06.at
1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
2
3 # Test suite for GNU tar.
4 # Copyright 2009, 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 AT_SETUP([incremental dumps of nested directories])
22 AT_KEYWORDS([incremental incr06])
23
24 AT_TAR_CHECK([
25 mkdir dir
26 mkdir dir/sub
27 mkdir dir/sub/a
28 mkdir dir/sub/b
29 genfile --file dir/file1
30 genfile --file dir/sub/file2
31 genfile --file dir/sub/a/file3
32
33 echo Level 0 . sub
34 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
35 echo Level 0 sub .
36 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
37
38 mkdir dir/c
39 genfile --file dir/sub/b/file4
40
41 echo Level 1 . sub
42 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
43 echo Level 1 sub .
44 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
45 ],
46 [0],
47 [Level 0 . sub
48 ./
49 sub/
50 sub/a/
51 sub/b/
52 ./file1
53 sub/file2
54 sub/a/file3
55 Level 0 sub .
56 ./
57 sub/
58 sub/a/
59 sub/b/
60 ./file1
61 sub/file2
62 sub/a/file3
63 Level 1 . sub
64 ./
65 ./c/
66 sub/
67 sub/a/
68 sub/b/
69 sub/b/file4
70 Level 1 sub .
71 ./
72 ./c/
73 sub/
74 sub/a/
75 sub/b/
76 sub/b/file4
77 ],[],[],[],[gnu, oldgnu, posix])
78
79 AT_CLEANUP
This page took 0.034599 seconds and 4 git commands to generate.