]> Dogcows Code - chaz/tar/blob - tests/listed01.sh
Remove addext.c, malloc.c, realloc.c.
[chaz/tar] / tests / listed01.sh
1 #! /bin/sh
2
3 # Check if listed-incremental backups work for individual files.
4 # Script proposed by Andreas Schuldei <andreas@schuldei.org>
5
6 # This file is part of GNU tar testsuite.
7 # Copyright (C) 2004 Free Software Foundation, Inc.
8 #
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
12 # any later version.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22 # 02111-1307, USA.
23
24 . ./preset
25 TAR_ARCHIVE_FORMATS="gnu oldgnu"
26 . $srcdir/before
27
28 mkdir directory
29 genfile --length 10240 --pattern zeros > directory/file1
30 # Let the things settle
31 sleep 1
32
33 tar --create \
34 --file=archive.1 \
35 --listed-incremental=listing \
36 directory/file*
37
38 tar tf archive.1
39
40 dd if=/dev/zero of=directory/file2 bs=1024 count=20 2>/dev/null
41
42 echo "separator"
43
44 tar --create \
45 --file=archive.2 \
46 --listed-incremental=listing \
47 directory/file*
48
49 tar tf archive.2
50
51 out="\
52 directory/file1
53 separator
54 directory/file2
55 "
56
57 . $srcdir/after
This page took 0.044855 seconds and 4 git commands to generate.