]> Dogcows Code - chaz/tar/blob - tests/filerem01.at
Fix handling of files removed during incremental dumps.
[chaz/tar] / tests / filerem01.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, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 # 02110-1301, USA.
20
21 AT_SETUP([file removed as we read it (ca. 22 seconds)])
22 AT_KEYWORDS([create incremental filechange filerem filerem01])
23
24 AT_TAR_CHECK([
25 mkdir dir
26 mkdir dir/sub
27 genfile --file dir/file1
28 genfile --file dir/sub/file2
29
30 genfile --run --checkpoint=3 --unlink dir/file1 -- \
31 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
32 --checkpoint-action='echo' -c -f archive.tar \
33 --listed-incremental db -v dir >/dev/null
34 ],
35 [0],
36 [ignore],
37 [tar: dir: Directory is new
38 tar: dir/sub: Directory is new
39 tar: dir/file1: File removed before we read it
40 ],[],[],[gnu, posix])
41
42 # Timing information:
43 #
44 # For -Hgnu the above command line takes about 8 seconds to execute and
45 # produces:
46 #
47 # tar: dir: Directory is new
48 # tar: dir/sub: Directory is new
49 # dir/
50 # tar: Write checkpoint 1
51 # tar: Write checkpoint 2
52 # dir/sub/
53 # tar: Write checkpoint 3
54 # tar: Write checkpoint 4
55 # dir/file1
56 # tar: Write checkpoint 5
57 # dir/sub/file2
58 # tar: Write checkpoint 6
59 # tar: Write checkpoint 7
60 # tar: Write checkpoint 8
61 #
62 # For -Hposix the above command line takes about 14 seconds to execute and
63 # produces:
64 #
65 # ./tar: dir: Directory is new
66 # ./tar: dir/sub: Directory is new
67 # dir/
68 # ./tar: Write checkpoint 1
69 # ./tar: Write checkpoint 2
70 # ./tar: Write checkpoint 3
71 # dir/sub/
72 # ./tar: Write checkpoint 4
73 # ./tar: Write checkpoint 5
74 # ./tar: Write checkpoint 6
75 # dir/file1
76 # ./tar: Write checkpoint 7
77 # ./tar: Write checkpoint 8
78 # ./tar: Write checkpoint 9
79 # dir/sub/file2
80 # ./tar: Write checkpoint 10
81 # ./tar: Write checkpoint 11
82 # ./tar: Write checkpoint 12
83 # ./tar: Write checkpoint 13
84 # ./tar: Write checkpoint 14
85
86
87 AT_CLEANUP
88
This page took 0.047132 seconds and 5 git commands to generate.