From e826d53173e14cd27beb42da93708a7c06c3f9c4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 14 Feb 2018 00:33:32 +0300 Subject: Save valgrind tests log into logs directory. --- tools/ci/scripts/init.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tools/ci/scripts') diff --git a/tools/ci/scripts/init.sh b/tools/ci/scripts/init.sh index f435eed99..4f95e4c23 100755 --- a/tools/ci/scripts/init.sh +++ b/tools/ci/scripts/init.sh @@ -214,22 +214,22 @@ 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) + 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>logs/valg.log + export DATA=$(grep "invalid" logs/valg.log) if [ "$DATA" != "" ]; then - cat valg.log + cat logs/valg.log echo "valgrind error" exit 1 fi - export DATA=$(grep -A 2 "uninitialised" valg.log|grep ".cpp") + export DATA=$(grep -A 2 "uninitialised" logs/valg.log|grep ".cpp") if [ "$DATA" != "" ]; then - cat valg.log + cat logs/valg.log echo "valgrind error" exit 1 fi - cat valg.log + cat logs/valg.log echo "valgrind check" } -- cgit v1.2.3-70-g09d2