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