Browse Source

tests: shunit2: run all tests under Valgrind by default

The more tests, the better.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
Petr Štetiar 4 years ago
parent
commit
1637d29186
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/shunit2/tests.sh

+ 2 - 0
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"