]> git.cworth.org Git - tar/blob - tests/incr05.at
upstream: Fix extraction of device nodes.
[tar] / tests / incr05.at
1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
2
3 # Test suite for GNU tar.
4 # Copyright (C) 2009 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([incremental dumps with -C])
20 AT_KEYWORDS([incremental incr05])
21
22 AT_TAR_CHECK([
23 mkdir dir
24 mkdir dir/sub
25 genfile --file dir/file1
26 genfile --file dir/sub/file2
27
28 echo Level 0
29 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
30
31 genfile --file dir/file3
32 echo Level 1
33 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
34 ],
35 [0],
36 [Level 0
37 ./
38 ./sub/
39 ./file1
40 ./sub/file2
41 Level 1
42 ./
43 ./sub/
44 ./file3
45 ],[],[],[],[gnu, oldgnu, posix])
46
47 AT_CLEANUP