summaryrefslogtreecommitdiff
path: root/tools/ci/scripts/init.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-10 22:21:42 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-10 22:21:42 +0300
commit538c310c622ffc232188177faf6425c39e6e1545 (patch)
tree42f2627fef7a518c8f41242a32ccaa60a0bbb8f6 /tools/ci/scripts/init.sh
parent6524f86be0e1d05ac27a3cb64b163713304d30d8 (diff)
downloadmanaplus-538c310c622ffc232188177faf6425c39e6e1545.tar.gz
manaplus-538c310c622ffc232188177faf6425c39e6e1545.tar.bz2
manaplus-538c310c622ffc232188177faf6425c39e6e1545.tar.xz
manaplus-538c310c622ffc232188177faf6425c39e6e1545.zip
Add valgrind into ci test scripts.
Diffstat (limited to 'tools/ci/scripts/init.sh')
-rwxr-xr-xtools/ci/scripts/init.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/ci/scripts/init.sh b/tools/ci/scripts/init.sh
index ad086d705..fa407371b 100755
--- a/tools/ci/scripts/init.sh
+++ b/tools/ci/scripts/init.sh
@@ -156,6 +156,16 @@ function run_make_check {
cat src/manaplustests.log
exit ${ERR}
fi
+ valgrind -q --read-var-info=yes --track-origins=yes --malloc-fill=11 --free-fill=55 --show-reachable=yes --leak-check=full --leak-resolution=high --partial-loads-ok=yes --error-limit=no ./src/manaplustests 2>valg.log
+ export DATA=$(grep "invalid" valg.log)
+ if [ "$DATA" != "" ];
+ then
+ cat valg.log
+ echo "valgrind error"
+ exit 1
+ fi
+ cat valg.log
+ echo "valgrind check"
}
function run_check_warnings {