X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=tests%2Finstrumented.sh;h=2cae793cdf2d957b2d41f390c3cec4a67029fca1;hp=7eaa2160c9cd443fb4e4e7cc51614814a2ce6196;hb=c3af52c43bc91ef15fea6c0bedd556754412f737;hpb=272e4d1ac7f99a45e1635c37c052f75d560c749d diff --git a/tests/instrumented.sh b/tests/instrumented.sh index 7eaa2160..2cae793c 100755 --- a/tests/instrumented.sh +++ b/tests/instrumented.sh @@ -17,15 +17,22 @@ case $1 in postfix='1>/dev/null' threads="1" ;; + --valgrind-thread) + echo "valgrind-thread testing started" + prefix='' + exeprefix='valgrind --error-exitcode=42' + postfix='1>/dev/null' + threads="2" + ;; --sanitizer-undefined) - echo "sanitizer testing started" + echo "sanitizer-undefined testing started" prefix='!' exeprefix='' postfix='2>&1 | grep "runtime error:"' threads="1" ;; --sanitizer-thread) - echo "sanitizer testing started" + echo "sanitizer-thread testing started" prefix='!' exeprefix='' postfix='2>&1 | grep "WARNING: ThreadSanitizer:"' @@ -62,7 +69,7 @@ for args in "eval" \ "go depth 10" \ "go movetime 1000" \ "go wtime 8000 btime 8000 winc 500 binc 500" \ - "bench 128 $threads 9 default depth" + "bench 128 $threads 10 default depth" do echo "$prefix $exeprefix ./stockfish $args $postfix"