]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Enable full memory leak reporting in valgrind
authorJouni Malinen <jouni@codeaurora.org>
Wed, 8 May 2019 10:07:50 +0000 (13:07 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 8 May 2019 10:07:50 +0000 (13:07 +0300)
This has heavier CPU and memory requirements, but is needed to report
memory leaks in libraries.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/start.sh

index 648a54d84f79b505b4f2e1e33213aec966a3b6c4..a8e4da0e7f4a101e0b45f8141e100c7311719a9d 100755 (executable)
@@ -80,12 +80,12 @@ fi
 
 if [ "$1" = "valgrind" ]; then
     VALGRIND=y
-    VALGRIND_WPAS="valgrind --log-file=$LOGDIR/valgrind-wlan%d"
-    VALGRIND_HAPD="valgrind --log-file=$LOGDIR/valgrind-hostapd"
+    VALGRIND_WPAS="valgrind --log-file=$LOGDIR/valgrind-wlan%d --leak-check=full"
+    VALGRIND_HAPD="valgrind --log-file=$LOGDIR/valgrind-hostapd --leak-check=full"
     chmod -f a+rx $WPAS
     chmod -f a+rx $HAPD
     chmod -f a+rx $HAPD_AS
-    HAPD_AS="valgrind --log-file=$LOGDIR/valgrind-auth-serv $HAPD_AS"
+    HAPD_AS="valgrind --log-file=$LOGDIR/valgrind-auth-serv --leak-check=full $HAPD_AS"
     shift
 else
     unset VALGRIND