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

Petr Štetiar ynezz at true.cz
Mon Nov 4 19:36:47 EST 2019


The more tests, the better.

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

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"
 

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list