1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
3 # Test suite for GNU tar.
4 # Copyright 2013-2022 Free Software Foundation, Inc.
6 # This file is part of GNU tar.
8 # GNU tar is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
13 # GNU tar is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21 # The --exclude-tag options interacted incorrectly with --listed-incremental
22 # since their very inception. The testcases exclude08 through exclude16
23 # verify that --exclude-tag operates consistently whether or not
24 # --listed-incremental option is given.
26 # This testcase verifies whether the --exclude-tag-all option alone works
27 # as expected, i.e. excludes entire directory containing the tag, including
28 # any files located under it.
30 # Reported-by: Nathan Stratton Treadway <nathanst+bugtar@ontko.com>
31 # Last-Affected-Version: 1.26
32 # References: <20120528140419.GT2654@shire.ontko.com>,
33 # <20130311210006.GA3732@shire.ontko.com>,
34 # http://lists.gnu.org/archive/html/bug-tar/2012-06/msg00013.html
36 AT_SETUP([--exclude-tag-all option])
37 AT_KEYWORDS([exclude exclude-tag exclude-tag-all exclude14])
42 tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
48 [tar: etest/subdir/: contains a cache directory tag excludeme; directory not dumped