source: trunk/essentials/app-arch/tar/tests/long01.at

Last change on this file was 3358, checked in by bird, 18 years ago

Skip this on OS/2.

File size: 1.8 KB
Line 
1# Process this file with autom4te to create testsuite. -*- Autotest -*-
2
3# Test suite for GNU tar.
4# Copyright (C) 2005, 2006 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 2, 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# In GNU format, when extracting or listing a file member with a name
22# whose length is divisible by block size (512) tar used to read an
23# extra block of data. In consequence the following file was not extracted.
24# Reported by Josef Bauer
25# References: <200501122145.j0CLjGhl006070@uhu.mchp.siemens.de>
26# http://lists.gnu.org/archive/html/bug-tar/2005-01/msg00038.html
27
28AT_SETUP([long file names divisible by block size])
29AT_KEYWORDS([longname long512])
30
31dnl Create a directory structure with maximum directory name length 512-16
32m4_define([NAME],[0123456789abcde])
33m4_define([FULLNAME],NAME)
34m4_for([N],0,29,,[m4_define([FULLNAME],FULLNAME/NAME)])
35
36AT_TAR_CHECK([
37if test "`uname -o`" = "OS/2"; then
38 # The path length limit on OS/2 is 260, so skip this test.
39 AT_SKIP_TEST
40fi
41AT_TAR_MKHIER(FULLNAME,NAME)
42echo test > endfile
43
44tar cf archive FULLNAME/NAME endfile
45tar tf archive],
46[0],
47[FULLNAME/NAME
48endfile
49],
50[],[],[],[gnu,oldgnu])
51
52AT_CLEANUP
53
Note: See TracBrowser for help on using the repository browser.