]> Dogcows Code - chaz/tar/blob - tests/remfiles08.at
Bugfix
[chaz/tar] / tests / remfiles08.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: See remfiles06.at
19 # Reported by: Nathan Stratton Treadway <nathanst@ontko.com>
20 # References: <20130926050634.GW32256@shire.ontko.com>
21
22 AT_SETUP([remove with -C to absolute and relative paths])
23 AT_KEYWORDS([incremental create remove-files remfiles08])
24
25 AT_TAR_CHECK([
26 mkdir foo
27 mkdir bar
28 echo foo/foo_file > foo/foo_file
29 echo bar/bar_file > bar/bar_file
30 decho A
31 tar -cvf foo.tar --remove-files -C `pwd`/foo . -C ../bar .
32 decho B
33 find
34 ],
35 [0],
36 [A
37 ./
38 ./foo_file
39 ./
40 ./bar_file
41 B
42 .
43 ./foo.tar
44 ],
45 [A
46 B
47 ],[],[],[gnu])
48
49 AT_CLEANUP
This page took 0.030462 seconds and 4 git commands to generate.