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])
28 echo blues > dir/blues
31 echo tagfile > dir/folk/tagfile
32 echo sanjuan > dir/folk/sanjuan
34 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
35 echo "test" > dir/rock/file
37 for option in exclude-caches exclude-caches-under exclude-caches-all
40 tar -cf archive.tar --$option -v dir 2>err
46 for option in exclude-tag exclude-tag-under exclude-tag-all
49 tar -cf archive.tar --${option}=tagfile -v dir 2>err
56 [OPTION exclude-caches
65 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
75 OPTION exclude-caches-under
83 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
92 OPTION exclude-caches-all
99 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; directory not dumped
114 dir/rock/CACHEDIR.TAG
116 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
124 dir/rock/CACHEDIR.TAG
126 OPTION exclude-tag-under
132 dir/rock/CACHEDIR.TAG
134 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
141 dir/rock/CACHEDIR.TAG
143 OPTION exclude-tag-all
148 dir/rock/CACHEDIR.TAG
150 tar: dir/folk/: contains a cache directory tag tagfile; directory not dumped
156 dir/rock/CACHEDIR.TAG