mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 06:17:49 +00:00
Make valgrind testing part of travis ci.
This commit is contained in:
+4
-2
@@ -9,7 +9,7 @@ matrix:
|
|||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources: ['ubuntu-toolchain-r-test']
|
sources: ['ubuntu-toolchain-r-test']
|
||||||
packages: ['g++-multilib']
|
packages: ['g++-multilib', 'valgrind']
|
||||||
env:
|
env:
|
||||||
- COMPILER=g++
|
- COMPILER=g++
|
||||||
- COMP=gcc
|
- COMP=gcc
|
||||||
@@ -19,7 +19,7 @@ matrix:
|
|||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources: ['ubuntu-toolchain-r-test']
|
sources: ['ubuntu-toolchain-r-test']
|
||||||
packages: ['clang', 'g++-multilib']
|
packages: ['clang', 'g++-multilib', 'valgrind']
|
||||||
env:
|
env:
|
||||||
- COMPILER=clang++
|
- COMPILER=clang++
|
||||||
- COMP=clang
|
- COMP=clang
|
||||||
@@ -49,3 +49,5 @@ script:
|
|||||||
- echo "Checking for same bench numbers..."
|
- echo "Checking for same bench numbers..."
|
||||||
- diff bench1 bench2 > result
|
- diff bench1 bench2 > result
|
||||||
- test ! -s result
|
- test ! -s result
|
||||||
|
# if valgrind is available check the build is without error, reduce depth to speedup testing, but not too shallow to catch more cases.
|
||||||
|
- if [ -x "$(command -v valgrind )" ] ; then make clean && make ARCH=x86-64 debug=yes build && valgrind --error-exitcode=42 ./stockfish bench 128 1 10 default depth 1>/dev/null ; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user