File: test-exact.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 (23 lines) | stat: -rwxr-xr-x 646 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
#! /bin/sh -pe

# Regression test suite for libhsync.

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

# This driver generates a signature, and then checks it against the
# same file.  This ought to generate an exact match, including for the
# short block at the end.

old=$srcdir/COPYING
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 hsnad /dev/null <$old >$lt
run_test hsdecode /dev/null $oldsig /dev/null $lt
# run_test hsdumpsums <$oldsig
run_test hsnad $debug $stats $oldsig <$old >$lt