Fix running test suite on FreeBSD

* Remove last bashism from tests/playTests.sh
* Use gmd5sum from the sysutils/coreutils port
This commit is contained in:
Dimitry Andric 2016-12-12 19:22:47 +01:00
parent 4c6ce5a57e
commit 12df6da83b

View File

@ -31,8 +31,10 @@ case "$OS" in
;; ;;
esac esac
case "$OSTYPE" in UNAME=$(uname)
darwin*) MD5SUM="md5 -r" ;; case "$UNAME" in
Darwin) MD5SUM="md5 -r" ;;
FreeBSD) MD5SUM="gmd5sum" ;;
*) MD5SUM="md5sum" ;; *) MD5SUM="md5sum" ;;
esac esac
@ -228,8 +230,8 @@ cp ../programs/*.h dirTestDict
$MD5SUM dirTestDict/* > tmph1 $MD5SUM dirTestDict/* > tmph1
$ZSTD -f --rm dirTestDict/* -D tmpDictC $ZSTD -f --rm dirTestDict/* -D tmpDictC
$ZSTD -d --rm dirTestDict/*.zst -D tmpDictC # note : use internal checksum by default $ZSTD -d --rm dirTestDict/*.zst -D tmpDictC # note : use internal checksum by default
case "$OSTYPE" in case "$UNAME" in
darwin*) $ECHO "md5sum -c not supported on OS-X : test skipped" ;; # not compatible with OS-X's md5 Darwin) $ECHO "md5sum -c not supported on OS-X : test skipped" ;; # not compatible with OS-X's md5
*) $MD5SUM -c tmph1 ;; *) $MD5SUM -c tmph1 ;;
esac esac
rm -rf dirTestDict rm -rf dirTestDict