]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: shell: auto-run kmemleak if its available
authorFlorian Westphal <fw@strlen.de>
Thu, 20 Jul 2023 12:33:34 +0000 (14:33 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 20 Jul 2023 16:26:12 +0000 (18:26 +0200)
commit11bc7d9b9ee310ce5829fc149f43d73d4f443abe
treee897acb8132e64f76317a02585cbab73cd197530
parentc2b28dcebd058b978692b8e1899e79b96c025396
tests: shell: auto-run kmemleak if its available

On my test vm a full scan takes almost 5s. As this would slowdown
the test runs too much, only run them every couple of tests.

This allows to detect when there is a leak reported at the
end of the script, and it allows to narrow down the test
case/group that triggers the issue.

Add new -K flag to force kmemleak runs after each test if its
available, this can then be used to find the exact test case.

Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/run-tests.sh