1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
2 # Copyright 2009-2010, 2013-2014 Free Software Foundation, Inc.
4 # This file is part of GNU tar.
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.
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.
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/>.
19 # Test the functioning of many items in an exclude list (should run quickly)
21 AT_SETUP([exclude: lots of excludes])
22 AT_KEYWORDS([exclude exclude05])
27 rm -rf testdir exclfile
29 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
35 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
37 tar cf archive --anchored --exclude-from=exclfile \
42 tar cf archive --exclude-from=exclfile \
46 rm -rf testdir exclfile