]> Dogcows Code - chaz/tar/blob - tests/remfiles07.at
Improve tar_getcwd
[chaz/tar] / tests / remfiles07.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: <20130924185129.GO32256@shire.ontko.com>
21
22 AT_SETUP([incremental with -C to absolute path])
23 AT_KEYWORDS([incremental create remove-files remfiles07])
24
25 AT_TAR_CHECK([
26 AT_SORT_PREREQ
27 mkdir tartest
28 cd tartest
29 mkdir foo
30 echo foo/file > foo/file
31 mkdir bar
32 echo bar/file > bar/file
33 decho A
34 find|sort
35
36 DIR=`pwd`
37 decho B
38 tar -cvf ../foo.tar --remove-files -C foo file -C $DIR/bar file
39
40 decho C
41 find|sort
42 ],
43 [0],
44 [A
45 .
46 ./bar
47 ./bar/file
48 ./foo
49 ./foo/file
50 B
51 file
52 file
53 C
54 .
55 ./bar
56 ./foo
57 ],
58 [A
59 B
60 C
61 ],[],[],[gnu])
62
63 AT_CLEANUP
This page took 0.034261 seconds and 4 git commands to generate.