1#!/bin/bash 2 3set -e 4 5./sizes 6./constants 7 8for i in $(for j in $(echo $(./hashsum -h | awk '/Algorithms/,EOF' | tail -n +2)); do echo $j; done | sort); do echo -n "$i: " && ./hashsum -a $i tests/test.key ; done > hashsum_tv.txt 9difftroubles=$(diff -i -w -B hashsum_tv.txt notes/hashsum_tv.txt | grep '^<') || true 10if [ -n "$difftroubles" ]; then 11 echo "FAILURE: hashsum_tv.tx" 12 diff -i -w -B hashsum_tv.txt notes/hashsum_tv.txt 13 echo "hashsum failed" 14 exit 1 15else 16 echo "hashsum okay" 17fi 18 19 20exit 0 21 22# ref: HEAD -> master, tag: v1.18.2 23# git commit: 7e7eb695d581782f04b24dc444cbfde86af59853 24# commit time: 2018-07-01 22:49:01 +0200 25