From 893a24eeb3e2a18ba9fe2c6c779ca2eb82e2f200 Mon Sep 17 00:00:00 2001 From: Timerix22 Date: Mon, 20 Jun 2022 19:54:06 +0300 Subject: [PATCH] valgrind logfile --- build_scripts/default.config.sh | 10 +++++----- build_scripts/test_valgrind.sh | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/build_scripts/default.config.sh b/build_scripts/default.config.sh index eb32916..fdc6b2e 100644 --- a/build_scripts/default.config.sh +++ b/build_scripts/default.config.sh @@ -8,11 +8,11 @@ STD_C=c11 STD_CPP=c++17 WARN_C="-Wall -Wno-discarded-qualifiers" #-Wextra WARN_CPP="-Wall -Wno-unused-variable -Wno-return-type" #-Wextra -SRC_C="$( find src -name *.c)" -SRC_CPP="$( find src -name *.cpp)" -TESTS_C="$( find tests -name *.c)" -TESTS_CPP="$(find tests -name *.cpp)" -VALGRIND_ARGS="-s --read-var-info=yes --track-origins=yes --fullpath-after=kerep/ --leak-check=full --show-leak-kinds=all" +SRC_C="$( find src -name '*.c')" +SRC_CPP="$( find src -name '*.cpp')" +TESTS_C="$( find tests -name '*.c')" +TESTS_CPP="$(find tests -name '*.cpp')" +VALGRIND_ARGS="-s --log-file=valgrind.log --read-var-info=yes --track-origins=yes --fullpath-after=kerep/ --leak-check=full --show-leak-kinds=all" # build_lib LIB_FILE=kerep.so diff --git a/build_scripts/test_valgrind.sh b/build_scripts/test_valgrind.sh index 0413a82..a92df20 100644 --- a/build_scripts/test_valgrind.sh +++ b/build_scripts/test_valgrind.sh @@ -5,4 +5,5 @@ source build_scripts/init.sh print "${CYAN}===========[test_valgrind]============\n" cd $OUTDIR valgrind $VALGRIND_ARGS ./$TEST_DBG_FILE +cat "valgrind.log" cd ..