blob: c2cc1235f516e9676ea40d2a21b5b3eb88f96de8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#! /bin/sh -ex
# librsync -- the library for network deltas
# Copyright (C) 1999, 2000, 2001, 2014 by Martin Pool <mbp@sourcefrog.net>
# Copyright (C) 1999 by Andrew Tridgell <tridge@samba.org>
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
. $srcdir/testcommon.sh
new=$tmpdir/delta.tmp
inputdir=$srcdir/delta.input
for delta in $inputdir/*.delta
do
for inbuf in $bufsizes
do
cmd="../rdiff -I$inbuf patch /dev/null $delta $new"
run_test $cmd
expect=$inputdir/`basename $delta .delta`.expect
check_compare $expect $new
done
done
|