changed environment variable comparison to sh compatible

This commit is contained in:
Yann Collet 2016-12-06 12:02:56 -08:00
parent 6b9a983261
commit 94d1a93d28

View File

@ -31,10 +31,10 @@ case "$OS" in
;; ;;
esac esac
MD5SUM="md5sum" case "$OSTYPE" in
if [[ "$OSTYPE" == "darwin"* ]]; then darwin*) MD5SUM="md5 -r" ;;
MD5SUM="md5 -r" *) MD5SUM="md5sum" ;;
fi esac
$ECHO "\nStarting playTests.sh isWindows=$isWindows ZSTD='$ZSTD'" $ECHO "\nStarting playTests.sh isWindows=$isWindows ZSTD='$ZSTD'"
@ -228,11 +228,10 @@ 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
if [[ "$OSTYPE" == "darwin"* ]]; then case "$OSTYPE" in
$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
else *) $MD5SUM -c tmph1 ;;
$MD5SUM -c tmph1 esac
fi
rm -rf dirTestDict rm -rf dirTestDict
rm tmp* rm tmp*