1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
3 # Test suite for GNU tar.
4 # Copyright (C) 2007 Free Software Foundation, Inc.
6 # This program 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 2, or (at your option)
11 # This program 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, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 # Test the functioning of --exclude-caches and --exclude-tag option families
24 AT_KEYWORDS([exclude])
30 echo blues > dir/blues
33 echo tagfile > dir/folk/tagfile
34 echo sanjuan > dir/folk/sanjuan
36 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
37 echo "test" > dir/rock/file
39 for option in exclude-caches exclude-caches-under exclude-caches-all
42 tar -cf archive.tar --$option -v dir 2>err | sort
45 tar tf archive.tar | sort
48 for option in exclude-tag exclude-tag-under exclude-tag-all
51 tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
54 tar tf archive.tar | sort
58 [OPTION exclude-caches
67 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
77 OPTION exclude-caches-under
85 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
94 OPTION exclude-caches-all
101 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; directory not dumped
116 dir/rock/CACHEDIR.TAG
118 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
126 dir/rock/CACHEDIR.TAG
128 OPTION exclude-tag-under
134 dir/rock/CACHEDIR.TAG
136 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
143 dir/rock/CACHEDIR.TAG
145 OPTION exclude-tag-all
150 dir/rock/CACHEDIR.TAG
152 tar: dir/folk/: contains a cache directory tag tagfile; directory not dumped
158 dir/rock/CACHEDIR.TAG