1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
3 # Test suite for GNU tar.
4 # Copyright (C) 2009 Free Software Foundation, Inc.
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)
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.
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
21 AT_SETUP([file removed as we read it (ca. 22 seconds)])
22 AT_KEYWORDS([create incremental filechange filerem filerem01])
27 genfile --file dir/file1
28 genfile --file dir/sub/file2
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
37 [tar: dir: Directory is new
38 tar: dir/sub: Directory is new
39 tar: dir/file1: File removed before we read it
44 # For -Hgnu the above command line takes about 8 seconds to execute and
47 # tar: dir: Directory is new
48 # tar: dir/sub: Directory is new
50 # tar: Write checkpoint 1
51 # tar: Write checkpoint 2
53 # tar: Write checkpoint 3
54 # tar: Write checkpoint 4
56 # tar: Write checkpoint 5
58 # tar: Write checkpoint 6
59 # tar: Write checkpoint 7
60 # tar: Write checkpoint 8
62 # For -Hposix the above command line takes about 14 seconds to execute and
65 # ./tar: dir: Directory is new
66 # ./tar: dir/sub: Directory is new
68 # ./tar: Write checkpoint 1
69 # ./tar: Write checkpoint 2
70 # ./tar: Write checkpoint 3
72 # ./tar: Write checkpoint 4
73 # ./tar: Write checkpoint 5
74 # ./tar: Write checkpoint 6
76 # ./tar: Write checkpoint 7
77 # ./tar: Write checkpoint 8
78 # ./tar: Write checkpoint 9
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