Commit de50ed59 authored by Niels Möller's avatar Niels Möller
Browse files

New file, testing lsh-make-seed.

Rev: src/testsuite/seed-test:1.1
parent 3711b088
#! /bin/sh
# Tests the randomness seeding
echo Testing lsh-make-seed
if [ -z "$srcdir" ] ; then
srcdir=`pwd`
fi
. $srcdir/functions.sh
for f in test-seed-1 test-seed-2 ; do
rm -f "$f"
../lsh-make-seed -o "$f" && [ -s "$f" ] || test_fail
done
# Seeds should be different, so that cmp returns the exit code 1.
cmp test-seed-1 test-seed-2 || [ $? == 1 ]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment