From: Dimitry Andric Date: Mon, 12 Dec 2016 18:22:47 +0000 (+0100) Subject: Fix running test suite on FreeBSD X-Git-Tag: v1.1.2~8^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12df6da83b9837f30e1591cc15064a1d289ca554;p=thirdparty%2Fzstd.git Fix running test suite on FreeBSD * Remove last bashism from tests/playTests.sh * Use gmd5sum from the sysutils/coreutils port --- diff --git a/tests/playTests.sh b/tests/playTests.sh index 6179265e7..abde72c80 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -31,8 +31,10 @@ case "$OS" in ;; esac -case "$OSTYPE" in - darwin*) MD5SUM="md5 -r" ;; +UNAME=$(uname) +case "$UNAME" in + Darwin) MD5SUM="md5 -r" ;; + FreeBSD) MD5SUM="gmd5sum" ;; *) MD5SUM="md5sum" ;; esac @@ -228,8 +230,8 @@ cp ../programs/*.h dirTestDict $MD5SUM dirTestDict/* > tmph1 $ZSTD -f --rm dirTestDict/* -D tmpDictC $ZSTD -d --rm dirTestDict/*.zst -D tmpDictC # note : use internal checksum by default -case "$OSTYPE" in - darwin*) $ECHO "md5sum -c not supported on OS-X : test skipped" ;; # not compatible with OS-X's md5 +case "$UNAME" in + Darwin) $ECHO "md5sum -c not supported on OS-X : test skipped" ;; # not compatible with OS-X's md5 *) $MD5SUM -c tmph1 ;; esac rm -rf dirTestDict