]> Dogcows Code - chaz/tar/blob - tests/exclude06.at
tar: remove trailing white space from source files
[chaz/tar] / tests / exclude06.at
1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
2 # Copyright (C) 2010 Free Software Foundation, Inc.
3
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3, or (at your option)
7 # any later version.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17 # Tar 1.23 would fail to exclude names longer that 100 characters from
18 # pax format archives.
19 #
20 # Reported-by: Matthew Peterson <mrpeterson2@gmail.com>
21 # References: <AANLkTin0teb1dcl0HCNquHxvN4HQnJmP6aK7CJCqy0sd@mail.gmail.com>
22 # http://lists.gnu.org/archive/html/help-tar/2010-06/msg00000.html
23
24 AT_SETUP([exclude: long files in pax archives])
25 AT_KEYWORDS([exclude exclude06])
26
27 m4_define([test_base_dir],[one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen])
28
29 AT_TAR_CHECK([
30 AT_TAR_MKHIER(test_base_dir)
31 genfile --length 20 -f test_base_dir[/1.txt]
32 genfile --length 20 -f test_base_dir[/1.c]
33
34 tar cf archive.tar test_base_dir
35 mkdir out
36 tar -C out -xf archive.tar --exclude='*.txt'
37 find out -type f
38 ],
39 [0],
40 [[out/]test_base_dir[/1.c]
41 ],
42 [],
43 [],
44 [],
45 [pax])
46
47 AT_CLEANUP
This page took 0.039205 seconds and 5 git commands to generate.