]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Make sure that make check runs on OpenBSD. (#1091)
authorbket <bjorn.ketelaars@hydroxide.nl>
Mon, 2 Apr 2018 21:12:18 +0000 (23:12 +0200)
committerNick Terrell <nickrterrell@gmail.com>
Mon, 2 Apr 2018 21:12:18 +0000 (14:12 -0700)
OpenBSD uses md5 instead of md5sum, and has no device called full.

With this patch, make check runs until #1088. With the assumption made
in the issue make check runs succesfully.

tests/playTests.sh

index 494480226ab91ce9920207adc36eb08f72576cdd..32190daaa66f17f13ab48033dca04914744d7f32 100755 (executable)
@@ -69,6 +69,7 @@ UNAME=$(uname)
 case "$UNAME" in
   Darwin) MD5SUM="md5 -r" ;;
   FreeBSD) MD5SUM="gmd5sum" ;;
+  OpenBSD) MD5SUM="md5" ;;
   *) MD5SUM="md5sum" ;;
 esac
 
@@ -258,7 +259,7 @@ rm ./*.tmp ./*.zstd
 $ECHO "frame concatenation tests completed"
 
 
-if [ "$isWindows" = false ] && [ "$UNAME" != 'SunOS' ] ; then
+if [ "$isWindows" = false ] && [ "$UNAME" != 'SunOS' ] && [ "$UNAME" != "OpenBSD" ] ; then
 $ECHO "\n**** flush write error test **** "
 
 $ECHO "$ECHO foo | $ZSTD > /dev/full"