1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
3 # Test suite for GNU tar.
4 # Copyright 2009, 2013-2014 Free Software Foundation, Inc.
6 # This file is part of GNU tar.
8 # GNU tar is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
13 # GNU tar is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21 # Description: see filerem01.at
22 # This test case checks if the tar exit code is still 2 if a
23 # file or directory disappears that is explicitly mentioned
24 # in the command line.
26 AT_SETUP([toplevel file removed (ca. 24 seconds)])
27 AT_KEYWORDS([create incremental listed filechange filerem filerem02])
32 genfile --file dir/file1
33 genfile --file dir/sub/file2
35 genfile --file dir2/file1
37 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
38 tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
39 --checkpoint-action='echo' -c -f archive.tar \
40 --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
44 [ignore],[],[],[gnu, posix])
46 # Ignore stdout and stderr because their contents depend on
47 # the file system implementation.
49 # Timing information: see filerem01.at