File: test-double.sh

package info (click to toggle)
libhsync 0.5.7-1.2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,060 kB
  • ctags: 543
  • sloc: sh: 7,944; ansic: 5,413; makefile: 154
file content (27 lines) | stat: -rwxr-xr-x 720 bytes parent folder | download
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
#! /bin/sh -pe

# Regression test suite for libhsync.

# Copyright (C) 2000 by Martin Pool
# $Id: test-double.sh,v 1.1 2000/07/29 18:24:01 mbp Exp $

# This driver tests matching one file against a shorter prefix.  This
# should test handling of short blocks and so on.

old=$srcdir/COPYING
new=$tmpdir/new.tmp
lt=$tmpdir/lt.tmp
oldsig=$tmpdir/oldsig.tmp
newsig=$tmpdir/newsig.tmp
newout=$tmpdir/out.tmp
chksig=$tmpdir/chksig.tmp
chkout=$tmpdir/chkout.tmp

run_test cat $old $old >$new

run_test hsnad /dev/null <$old >$lt
run_test hsdecode /dev/null $oldsig /dev/null $lt
# run_test hsdumpsums <$oldsig
run_test hsnad $debug $stats $oldsig <$new >$lt
run_test hsdecode $old $newsig $newout $lt
run_test cmp $new $newout