summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-02-14 00:33:32 +0300
committerAndrei Karas <akaras@inbox.ru>2018-02-14 00:33:32 +0300
commite826d53173e14cd27beb42da93708a7c06c3f9c4 (patch)
tree3e0645c514af95fc49389e547c552b710d754168
parenta1b58df1880b4d854b139360fc028b534fdcad1a (diff)
downloadmanaplus-e826d53173e14cd27beb42da93708a7c06c3f9c4.tar.gz
manaplus-e826d53173e14cd27beb42da93708a7c06c3f9c4.tar.bz2
manaplus-e826d53173e14cd27beb42da93708a7c06c3f9c4.tar.xz
manaplus-e826d53173e14cd27beb42da93708a7c06c3f9c4.zip
Save valgrind tests log into logs directory.
-rwxr-xr-xtools/ci/scripts/init.sh12
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"
}