1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
3 # Test suite for GNU tar.
4 # Copyright 2016-2019 Free Software Foundation, Inc.
6 # This file is part of GNU tar.
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.
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.
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/>.
21 # Adding files to an archive with a blocking factor different from the one
22 # used when creating it would produce a malformed archive.
24 # Last-Affected-Version: 1.28.90 (da7845c6563e7337bf3e8364046a7989091f190e)
25 # Reported-by: Initial report by Renate Pyhel <rpyhel@google.com>. Explained
26 # in detail by Tim Kientzle. This test case is based on his posting.
27 # References: <CALyyU7QJRQEQWMqZ=J=ppu-nwOH6R58Ci2ZkV32+CeZKsWsz7Q@mail.gmail.com>,
28 # <50202013-27F2-4EFF-98C8-2DD112C5B956@kientzle.com>,
29 # http://lists.gnu.org/archive/html/bug-tar/2016-03/msg00002.html,
30 # http://lists.gnu.org/archive/html/bug-tar/2016-03/msg00004.html
32 AT_SETUP([append after changed blocking])
33 AT_KEYWORDS([append append05 blocking])
36 for f in a b c d e f g h i
41 decho 'creating archive'
42 tar -cf archive -b1 a b c
47 tar -vrf archive -b3 d e f
52 tar -vrf archive -b5 g h i
54 decho 'resulting archive'