diff --git a/cov_tests/hash_tests.sh b/cov_tests/hash_tests.sh index f1cacc7d..8dfa65ed 100755 --- a/cov_tests/hash_tests.sh +++ b/cov_tests/hash_tests.sh @@ -4,7 +4,11 @@ source kcov_blkar_fun.sh exit_code=0 -HASHES=("sha1" "sha256" "sha512" "blake2b-256" "blake2b-512") +HASHES=("sha1" "sha256" "sha512") +if [[ $(command -v b2sum) != "" ]]; then + HASHES[3]="blake2b-256" + HASHES[4]="blake2b-512" +fi # Record the hashes a[0]=$(sha1sum dummy | awk '{print $1}')