From 1637d29186923bf75c015a9c27e3bbfc951a488c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0tetiar?= Date: Mon, 4 Nov 2019 18:18:36 +0100 Subject: [PATCH] tests: shunit2: run all tests under Valgrind by default MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The more tests, the better. Signed-off-by: Petr Å tetiar --- tests/shunit2/tests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/shunit2/tests.sh b/tests/shunit2/tests.sh index 72c4874..00f56c5 100755 --- a/tests/shunit2/tests.sh +++ b/tests/shunit2/tests.sh @@ -11,6 +11,8 @@ UCI_BIN=${UCI_BIN:-"../uci"} echo "uci is not present." >&2 return 1 } +VALGRIND="valgrind --quiet --show-leak-kinds=all --leak-check=full --track-origins=yes" +UCI_BIN="${VALGRIND} ${UCI_BIN}" UCI="${UCI_BIN} -c ${CONFIG_DIR} -p ${CHANGES_DIR}" UCI_Q="${UCI_BIN} -c ${CONFIG_DIR} -p ${CHANGES_DIR} -q" -- 2.25.1