]> Dogcows Code - chaz/tar/blob - tests/incr09.at
Update copyright years.
[chaz/tar] / tests / incr09.at
1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
2 # Test suite for GNU tar.
3 # Copyright 2013-2014 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: For some intermediate versions of tar 1.26.90,
19 # tar would fail to correctly cannonicalize archive member names
20 # in incremental mode if there was a -C options with an absolute path
21 # on the command line without any archive members specified within that
22 # directory. (In that case, the canonical name generated for
23 # members specified after later -C options wouldn't correctly reflect the
24 # previous absolute path.)
25
26 AT_SETUP([incremental with alternating -C])
27 AT_KEYWORDS([incremental create incr09])
28
29 AT_TAR_CHECK([
30 AT_SORT_PREREQ
31 mkdir foo bar middle
32 echo foo/foo_file > foo/foo_file
33 echo bar/bar_file > bar/bar_file
34 echo middle/file > middle/middle_file
35 decho A
36 tar -cvf foo.tar --incremental -C foo . -C `pwd` middle -C bar .
37
38 rm foo.tar
39 >toplevel_file
40 decho B
41 tar -cvf foo.tar --incremental -C foo . -C `pwd` toplevel_file -C bar .
42 ],
43 [0],
44 [A
45 ./
46 ./
47 middle/
48 ./bar_file
49 ./foo_file
50 middle/middle_file
51 B
52 ./
53 ./
54 toplevel_file
55 ./bar_file
56 ./foo_file
57 ],
58 [A
59 tar: .: Directory is new
60 tar: middle: Directory is new
61 tar: .: Directory is new
62 B
63 tar: .: Directory is new
64 tar: .: Directory is new
65 ],[],[],[gnu])
66
67 AT_CLEANUP
This page took 0.032493 seconds and 4 git commands to generate.