]> Dogcows Code - chaz/tar/blob - tests/incr06.at
Optimize searches for directory structures by keeping a pointer to struct directory...
[chaz/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 dbfile=`pwd`/db
32
33 echo Level 0 . sub
34 tar -c -f archive-0.1.tar -g $dbfile.1 -C dir -v --warning=no-new-dir . sub
35 echo Level 0 sub .
36 tar -c -f archive-0.2.tar -g $dbfile.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 $dbfile.1 -C dir -v --warning=no-new-dir . sub
43 echo Level 1 sub .
44 tar -c -f archive-1.2.tar -g $dbfile.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
80
81
This page took 0.043063 seconds and 5 git commands to generate.