X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=tests%2Fsignature.sh;h=6f5957a4b0402b3732108d1d1c0b93ee45a1d48b;hp=2eb52c89be24c5a3e15e27c6faf996e5881b4d93;hb=528507b303650ff57460d3c38289a40fc4be8637;hpb=ba15781be8f80746b6daed6588191297f38737fa diff --git a/tests/signature.sh b/tests/signature.sh index 2eb52c89..6f5957a4 100755 --- a/tests/signature.sh +++ b/tests/signature.sh @@ -16,7 +16,12 @@ signature=`./stockfish bench 2>&1 | grep "Nodes searched : " | awk '{print $4}' if [ $# -gt 0 ]; then # compare to given reference if [ "$1" != "$signature" ]; then - echo "signature mismatch: reference $1 obtained $signature" + if [ "x$1" == "x" ]; then + echo "No signature obtained from bench. Code crashed or assert triggered ?" + else + echo "signature mismatch: reference $1 obtained: $signature ." + fi + exit 1 else echo "signature OK: $signature" fi