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