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

# Copyright (C) 2000 by Martin Pool
# $Id: test-md4sizes.sh,v 1.4 2000/06/12 06:56:42 mbp Exp $

# Test running the mdfour algorithm with different buffer sizes.  We
# should get the same result in every case.

files=`echo $srcdir/INSTALL`

sizes="1 2 3 4 7 8 9 10 33 63 64 65 100 200 2000 10000"

rm -f old.tmp

for from in $files
do
    for size in $sizes
    do
	run_test hsmdfour -b $size <$from >new.tmp
	[ -f old.tmp ] && run_test cmp old.tmp new.tmp
	mv new.tmp old.tmp
    done
done