mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 15:37:47 +00:00
Reduce bench depth for testing with valgrind to prevent timeouts in CI.
This commit is contained in:
+15
-3
@@ -16,6 +16,9 @@ case $1 in
|
|||||||
exeprefix='valgrind --error-exitcode=42'
|
exeprefix='valgrind --error-exitcode=42'
|
||||||
postfix='1>/dev/null'
|
postfix='1>/dev/null'
|
||||||
threads="1"
|
threads="1"
|
||||||
|
bench_depth=5
|
||||||
|
go_depth=10
|
||||||
|
tt_size=16
|
||||||
;;
|
;;
|
||||||
--valgrind-thread)
|
--valgrind-thread)
|
||||||
echo "valgrind-thread testing started"
|
echo "valgrind-thread testing started"
|
||||||
@@ -23,6 +26,9 @@ case $1 in
|
|||||||
exeprefix='valgrind --fair-sched=try --error-exitcode=42'
|
exeprefix='valgrind --fair-sched=try --error-exitcode=42'
|
||||||
postfix='1>/dev/null'
|
postfix='1>/dev/null'
|
||||||
threads="2"
|
threads="2"
|
||||||
|
bench_depth=5
|
||||||
|
go_depth=10
|
||||||
|
tt_size=16
|
||||||
;;
|
;;
|
||||||
--sanitizer-undefined)
|
--sanitizer-undefined)
|
||||||
echo "sanitizer-undefined testing started"
|
echo "sanitizer-undefined testing started"
|
||||||
@@ -30,6 +36,9 @@ case $1 in
|
|||||||
exeprefix=''
|
exeprefix=''
|
||||||
postfix='2>&1 | grep -A50 "runtime error:"'
|
postfix='2>&1 | grep -A50 "runtime error:"'
|
||||||
threads="1"
|
threads="1"
|
||||||
|
bench_depth=8
|
||||||
|
go_depth=20
|
||||||
|
tt_size=128
|
||||||
;;
|
;;
|
||||||
--sanitizer-thread)
|
--sanitizer-thread)
|
||||||
echo "sanitizer-thread testing started"
|
echo "sanitizer-thread testing started"
|
||||||
@@ -37,6 +46,9 @@ case $1 in
|
|||||||
exeprefix=''
|
exeprefix=''
|
||||||
postfix='2>&1 | grep -A50 "WARNING: ThreadSanitizer:"'
|
postfix='2>&1 | grep -A50 "WARNING: ThreadSanitizer:"'
|
||||||
threads="2"
|
threads="2"
|
||||||
|
bench_depth=8
|
||||||
|
go_depth=20
|
||||||
|
tt_size=128
|
||||||
|
|
||||||
cat << EOF > tsan.supp
|
cat << EOF > tsan.supp
|
||||||
race:TTEntry::move
|
race:TTEntry::move
|
||||||
@@ -70,7 +82,7 @@ for args in "eval" \
|
|||||||
"go depth 10" \
|
"go depth 10" \
|
||||||
"go movetime 1000" \
|
"go movetime 1000" \
|
||||||
"go wtime 8000 btime 8000 winc 500 binc 500" \
|
"go wtime 8000 btime 8000 winc 500 binc 500" \
|
||||||
"bench 128 $threads 8 default depth"
|
"bench $tt_size $threads $bench_depth default depth"
|
||||||
do
|
do
|
||||||
|
|
||||||
echo "$prefix $exeprefix ./stockfish $args $postfix"
|
echo "$prefix $exeprefix ./stockfish $args $postfix"
|
||||||
@@ -98,7 +110,7 @@ cat << EOF > game.exp
|
|||||||
expect "bestmove"
|
expect "bestmove"
|
||||||
|
|
||||||
send "position fen 5rk1/1K4p1/8/8/3B4/8/8/8 b - - 0 1\n"
|
send "position fen 5rk1/1K4p1/8/8/3B4/8/8/8 b - - 0 1\n"
|
||||||
send "go depth 20\n"
|
send "go depth $go_depth\n"
|
||||||
expect "bestmove"
|
expect "bestmove"
|
||||||
|
|
||||||
send "quit\n"
|
send "quit\n"
|
||||||
@@ -121,7 +133,7 @@ cat << EOF > syzygy.exp
|
|||||||
send "uci\n"
|
send "uci\n"
|
||||||
send "setoption name SyzygyPath value ../tests/syzygy/\n"
|
send "setoption name SyzygyPath value ../tests/syzygy/\n"
|
||||||
expect "info string Found 35 tablebases" {} timeout {exit 1}
|
expect "info string Found 35 tablebases" {} timeout {exit 1}
|
||||||
send "bench 128 1 8 default depth\n"
|
send "bench $tt_size 1 $bench_depth default depth\n"
|
||||||
send "quit\n"
|
send "quit\n"
|
||||||
expect eof
|
expect eof
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user