Add basic suuport for extended attributes.
[tar.git] / tests / extrac19.at
blob43c4c507ffe289a573e5d858f48d3da562e8efb0
1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
3 # Test suite for GNU tar.
4 # Copyright (C) 2011 Free Software Foundation, Inc.
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.
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.
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/>.
19 AT_SETUP([skip-old-files])
20 AT_KEYWORDS([extract extrac19 old-files skip-old-files])
22 AT_TAR_CHECK([
23 mkdir dir
24 cd dir
25 echo 'Old file a' > a
26 echo 'Old file b' > b
28 tar cf ../archive .
30 rm b
31 echo 'File a' > a
33 tar -x --skip-old-files -f ../archive
34 echo status=$?
36 cat a
38 [0],
39 [status=0
40 File a
43 AT_CLEANUP