]> Dogcows Code - chaz/tar/blob - tests/exclude07.at
Fix the --exclude-backups option.
[chaz/tar] / tests / exclude07.at
1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
2 # Copyright (C) 2010 Free Software Foundation, Inc.
3
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)
7 # any later version.
8
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.
13
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/>.
16
17 AT_SETUP([exclude: --exclude-backups option])
18 AT_KEYWORDS([exclude exclude07])
19
20 AT_TAR_CHECK([
21 mkdir dir
22 genfile --file dir/file
23 genfile --file dir/file~
24 genfile --file "dir/.#file"
25 genfile --file "dir/#file#"
26
27 tar -v -c -f archive --exclude-backups dir
28 ],
29 [0],
30 [dir/
31 dir/file
32 ])
33
34 AT_CLEANUP
This page took 0.038062 seconds and 5 git commands to generate.