1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
3 # Test suite for GNU tar.
4 # Copyright 2005-2007, 2013-2014, 2016-2017 Free Software Foundation,
7 # This file is part of GNU tar.
9 # GNU tar is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 3 of the License, or
12 # (at your option) any later version.
14 # GNU tar is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22 # In GNU format, when extracting or listing a file member with a name
23 # whose length is divisible by block size (512) tar used to read an
24 # extra block of data. In consequence the following file was not extracted.
25 # Reported by Josef Bauer
26 # References: <200501122145.j0CLjGhl006070@uhu.mchp.siemens.de>
27 # http://lists.gnu.org/archive/html/bug-tar/2005-01/msg00038.html
29 AT_SETUP([long file names divisible by block size])
30 AT_KEYWORDS([longname long512])
32 dnl Create a directory structure with maximum directory name length 512-16
33 m4_pushdef([NAME],[0123456789abcde])
34 m4_pushdef([FULLNAME],NAME)
35 m4_for([N],0,29,,[m4_define([FULLNAME],FULLNAME/NAME)])
38 AT_TAR_MKHIER(FULLNAME,NAME)
41 tar cf archive FULLNAME/NAME endfile
47 [],[],[],[gnu,oldgnu])