]> Dogcows Code - chaz/tar/blob - tests/extrac19.at
Fix --keep-old-files option.
[chaz/tar] / tests / extrac19.at
1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
2 #
3 # Test suite for GNU tar.
4 # Copyright (C) 2011 Free Software Foundation, Inc.
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
9 # any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19 AT_SETUP([skip-old-files])
20 AT_KEYWORDS([extract extrac19 old-files skip-old-files])
21
22 AT_TAR_CHECK([
23 mkdir dir
24 cd dir
25 echo 'Old file a' > a
26 echo 'Old file b' > b
27
28 tar cf ../archive .
29
30 rm b
31 echo 'File a' > a
32
33 tar -x --skip-old-files -f ../archive
34 echo status=$?
35
36 cat a
37 ],
38 [0],
39 [status=0
40 File a
41 ])
42
43 AT_CLEANUP
44
This page took 0.045198 seconds and 5 git commands to generate.