]> git.ipfire.org Git - thirdparty/iptables.git/commit
tests: shell: Implement --valgrind mode
authorPhil Sutter <phil@nwl.cc>
Tue, 5 May 2020 16:37:49 +0000 (18:37 +0200)
committerPhil Sutter <phil@nwl.cc>
Mon, 11 May 2020 12:28:29 +0000 (14:28 +0200)
commit7b3558f16035eb13bdbb481bea1e4672f3679236
treed1d2ed5131fc4ecd49fbdd689f42d929e4396ad9
parent5bd3ab5c778033877d44a0c619ef6f98f34516af
tests: shell: Implement --valgrind mode

Wrap every call to $XT_MULTI with valgrind, or actually a wrapper script
which does the valgrind wrap and stores the log if it contains something
relevant.

Carefully name the wrapper script(s) so that test cases' checks on
$XT_MULTI name stay intact.

This mode slows down testsuite execution horribly. Luckily, it's not
meant for constant use, though.

For now, ignore commands with non-zero exit status - error paths
typically hit direct exit() calls and therefore leave reachable memory
in place.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/tests/shell/run-tests.sh