add valgrind tests support
@@ -6,7 +6,7 @@ machine:
## Customize dependencies
dependencies:
pre:
- - sudo apt-get update && sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php5 cmake libssl-dev python3 python3-setuptools ruby ninja-build lcov build-essential
+ - sudo apt-get update && sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php5 cmake libssl-dev python3 python3-setuptools ruby ninja-build lcov build-essential valgrind
- sudo ln -sf /usr/bin/gcov-4.9 /usr/bin/gcov
- cd $HOME && wget https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz && tar xf go1.6.2.linux-amd64.tar.gz
- gem install coveralls-lcov
@@ -36,6 +36,8 @@ test:
override:
- build/tests/soter_test
- build/tests/themis_test
+ - valgrind build/tests/soter_test 2>&1 | grep "ERROR SUMMARY\|definitely lost\|indirectly lost\|possibly lost" | awk '{sum += $4} END {exit sum}'
+ - valgrind build/tests/themis_test 2>&1 | grep "ERROR SUMMARY\|definitely lost\|indirectly lost\|possibly lost" | awk '{sum += $4} END {exit sum}'
- cover_build/tests/soter_test
- cover_build/tests/themis_test
- lcov --directory . --capture --output-file coverage.info
