diff mbox series

[OpenWrt-Devel,uci,08/18] tests: shunit2: run all tests under Valgrind by default

Message ID 20191105003657.16540-9-ynezz@true.cz
State Accepted
Delegated to: Petr Štetiar
Headers show
Series fixes and improvements | expand

Commit Message

Petr Štetiar Nov. 5, 2019, 12:36 a.m. UTC
The more tests, the better.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
---
 tests/shunit2/tests.sh | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/tests/shunit2/tests.sh b/tests/shunit2/tests.sh
index 72c48749feb6..00f56c5e3195 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"