]> Dogcows Code - chaz/tar/blob - tests/append04.at
Fix interacton of --verbose and --append.
[chaz/tar] / tests / append04.at
1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
2 #
3 # Test suite for GNU tar.
4 # Copyright 2013 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 # When called with --append and --verify options, tar would rewrite the
22 # archive instead of appending to it.
23 #
24 # Last-Affected-Version: 1.26
25 # Reported-by: Jivko Angelov <jivko@siteground.com>
26 # References: <51D6983C.3060404@siteground.com>,
27 # http://lists.gnu.org/archive/html/bug-tar/2013-07/msg00003.html
28
29 AT_SETUP([append with verify])
30 AT_KEYWORDS([append append04 verify append-verify])
31
32 AT_TAR_CHECK([
33 # Create two empty files:
34 touch file1 file2
35
36 # Create an archive:
37 tar cpfW archive.tar file1 file2
38
39 # Verify created archive by listing its content:
40 tar -tf archive.tar
41 echo ==
42 # Create another empty file:
43 touch file3
44
45 # Append it to the already created archive:
46 tar rpfW archive.tar file3
47
48 # Verify content of the new archive:
49 tar -tf archive.tar
50 ],
51 [0],
52 [file1
53 file2
54 ==
55 file1
56 file2
57 file3
58 ])
59
60 AT_CLEANUP
This page took 0.036406 seconds and 5 git commands to generate.