Projects : keksum : keksum_genesis

test-sponge.sh

Dir - Raw

1# Self-generated, but at least provides a smoke test.
2
3a=`yes hello world | dd bs=1 count=65537 2>/dev/null | ./keksum`
4b='b232e58c04350243b312d2ecc4e4d58180c116812cff76cf20b632303ebc11d705f3f2c0b9034db6ec2e821b9b46ea28efd10f11366db06ef09d74efdab876ec'
5
6if [ "$a" = "$b" ]; then
7 printf 'PASS\n'
8else
9 printf 'FAIL:\n%s\n%s\n' "$a" "$b"
10 false
11fi