]> Dogcows Code - chaz/tar/blob - tests/remfiles05.at
Tiny changes.
[chaz/tar] / tests / remfiles05.at
1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
2 # Test suite for GNU tar.
3 # Copyright 2013 Free Software Foundation, Inc.
4 #
5 # GNU tar is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # GNU tar is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 # Description: Tar 1.26 would remove wrong files when invoked with
19 # --listed-incremental and -C
20 # Reported by: Nathan Stratton Treadway <nathanst@ontko.com>
21 # References: <20130921171234.GG32256@shire.ontko.com>,
22 # http://lists.gnu.org/archive/html/bug-tar/2013-09/msg00028.html
23
24 AT_SETUP([incremental and -C])
25 AT_KEYWORDS([incremental create remove-files remfiles05])
26
27 AT_TAR_CHECK([
28 AT_SORT_PREREQ
29 mkdir foo
30 echo bar > bar
31 echo foo/bar > foo/bar
32 decho A
33 find . | sort
34
35 decho B
36 tar -cvf foo.tar --listed-incremental=foo.snar --remove-files -C foo bar
37 decho C
38 find . | sort
39 ],
40 [0],
41 [A
42 .
43 ./bar
44 ./foo
45 ./foo/bar
46 B
47 bar
48 C
49 .
50 ./bar
51 ./foo
52 ./foo.snar
53 ./foo.tar
54 ],
55 [A
56 B
57 C
58 ],[],[],[gnu])
59
60 AT_CLEANUP
This page took 0.03035 seconds and 4 git commands to generate.