]> Dogcows Code - chaz/tar/blob - tests/listed01.sh
Give credit to Andreas Schuldei.
[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 . $srcdir/before gnu oldgnu
26
27 mkdir directory
28 dd if=/dev/zero of=directory/file1 bs=1024 count=10 2>/dev/null
29 # Let the things settle
30 sleep 1
31
32 tar --create \
33 --file=archive.1 \
34 --listed-incremental=listing \
35 directory/file*
36
37 tar tf archive.1
38
39 dd if=/dev/zero of=directory/file2 bs=1024 count=20 2>/dev/null
40
41 echo "separator"
42
43 tar --create \
44 --file=archive.2 \
45 --listed-incremental=listing \
46 directory/file*
47
48 tar tf archive.2
49
50 out="\
51 directory/file1
52 separator
53 directory/file2
54 "
55
56 . $srcdir/after
This page took 0.039772 seconds and 5 git commands to generate.