]> Dogcows Code - chaz/tar/blob - tests/exclude06.at
Update copyright years.
[chaz/tar] / tests / exclude06.at
1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
2 # Copyright 2010, 2013-2014 Free Software Foundation, Inc.
3
4 # This file is part of GNU tar.
5
6 # GNU tar 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 3 of the License, or
9 # (at your option) any later version.
10
11 # GNU tar 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, see <http://www.gnu.org/licenses/>.
18
19 # Tar 1.23 would fail to exclude names longer that 100 characters from
20 # pax format archives.
21 #
22 # Reported-by: Matthew Peterson <mrpeterson2@gmail.com>
23 # References: <AANLkTin0teb1dcl0HCNquHxvN4HQnJmP6aK7CJCqy0sd@mail.gmail.com>
24 # http://lists.gnu.org/archive/html/help-tar/2010-06/msg00000.html
25
26 AT_SETUP([exclude: long files in pax archives])
27 AT_KEYWORDS([exclude exclude06])
28
29 m4_pushdef([test_base_dir],[one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen])
30
31 AT_TAR_CHECK([
32 AT_TAR_MKHIER(test_base_dir)
33 genfile --length 20 -f test_base_dir[/1.txt]
34 genfile --length 20 -f test_base_dir[/1.c]
35
36 tar cf archive.tar test_base_dir
37 mkdir out
38 tar -C out -xf archive.tar --exclude='*.txt' --warning=no-timestamp
39 find out -type f
40 ],
41 [0],
42 [[out/]test_base_dir[/1.c]
43 ],
44 [],
45 [],
46 [],
47 [pax])
48
49 m4_popdef([test_base_dir])
50 AT_CLEANUP
This page took 0.031314 seconds and 4 git commands to generate.