diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-02-14 00:33:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-02-14 00:33:32 +0300 |
commit | e826d53173e14cd27beb42da93708a7c06c3f9c4 (patch) | |
tree | 3e0645c514af95fc49389e547c552b710d754168 /tools | |
parent | a1b58df1880b4d854b139360fc028b534fdcad1a (diff) | |
download | manaverse-e826d53173e14cd27beb42da93708a7c06c3f9c4.tar.gz manaverse-e826d53173e14cd27beb42da93708a7c06c3f9c4.tar.bz2 manaverse-e826d53173e14cd27beb42da93708a7c06c3f9c4.tar.xz manaverse-e826d53173e14cd27beb42da93708a7c06c3f9c4.zip |
Save valgrind tests log into logs directory.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/ci/scripts/init.sh | 12 |
1 files changed, 6 insertions, 6 deletions
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" } |