]> Dogcows Code - chaz/tar/blob - tests/listed01.sh
9929cf50237efd73dfe130c8f49299cf992b6e1c
[chaz/tar] / tests / listed01.sh
1 #! /bin/sh
2 # This file is part of GNU tar testsuite.
3 # Copyright (C) 2004 Free Software Foundation, Inc.
4 #
5 # This program 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 2, or (at your option)
8 # any later version.
9 #
10 # This program 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, write to the Free Software
17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18 # 02111-1307, USA.
19
20 # Check if listed-incremental backups work for individual files.
21 # Script proposed by Andreas Schuldei <andreas@schuldei.org>
22 # References: <20040215014223.GA9699@lukas.schuldei.com>
23 # http://lists.gnu.org/archive/html/bug-tar/2004-02/msg00011.html
24
25 . ./preset
26 TAR_ARCHIVE_FORMATS="gnu oldgnu"
27 . $srcdir/before
28
29 mkdir directory
30 genfile --length 10240 --pattern zeros > directory/file1
31 # Let the things settle
32 sleep 1
33
34 tar --create \
35 --file=archive.1 \
36 --listed-incremental=listing \
37 directory/file*
38
39 tar tf archive.1
40
41 genfile --length 10240 --pattern zeros > directory/file2
42
43 echo "separator"
44
45 tar --create \
46 --file=archive.2 \
47 --listed-incremental=listing \
48 directory/file*
49
50 tar tf archive.2
51
52 out="\
53 directory/file1
54 separator
55 directory/file2
56 "
57
58 . $srcdir/after
This page took 0.037023 seconds and 3 git commands to generate.