coverage_more.sh 663 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. set -e
  3. if [ "$#" = "1" -a "$(echo $1 | grep 'gmp')" != "" ]; then
  4. ./test t gmp
  5. fi
  6. ./sizes
  7. ./constants
  8. for 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
  9. difftroubles=$(diff -i -w -B hashsum_tv.txt notes/hashsum_tv.txt | grep '^<') || true
  10. if [ -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
  15. else
  16. echo "hashsum okay"
  17. fi
  18. exit 0
  19. # ref: $Format:%D$
  20. # git commit: $Format:%H$
  21. # commit time: $Format:%ai$