X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=tests%2Fsignature.sh;h=06bd1892e6c90ea73a626224a90f384871085b17;hb=HEAD;hp=6f5957a4b0402b3732108d1d1c0b93ee45a1d48b;hpb=155d5417d91603f3cfb669da4eaa5eeba0f44273;p=stockfish diff --git a/tests/signature.sh b/tests/signature.sh index 6f5957a4..06bd1892 100755 --- a/tests/signature.sh +++ b/tests/signature.sh @@ -11,12 +11,12 @@ trap 'error ${LINENO}' ERR # obtain -signature=`./stockfish bench 2>&1 | grep "Nodes searched : " | awk '{print $4}'` +signature=`eval "$WINE_PATH ./stockfish bench 2>&1" | grep "Nodes searched : " | awk '{print $4}'` if [ $# -gt 0 ]; then # compare to given reference if [ "$1" != "$signature" ]; then - if [ "x$1" == "x" ]; then + if [ -z "$signature" ]; then echo "No signature obtained from bench. Code crashed or assert triggered ?" else echo "signature mismatch: reference $1 obtained: $signature ."