mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Improve signature script
Catch case of missing bench, indicative of a crash or assert. No functional change
This commit is contained in:
parent
cb4bda0f49
commit
155d5417d9
1 changed files with 5 additions and 1 deletions
|
@ -16,7 +16,11 @@ 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"
|
||||
|
|
Loading…
Add table
Reference in a new issue