]> git.baikalelectronics.ru Git - kernel.git/commit
net: filter: improve test case framework
authorDaniel Borkmann <dborkman@redhat.com>
Fri, 23 May 2014 16:44:00 +0000 (18:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 May 2014 20:48:06 +0000 (16:48 -0400)
commit11ad90a878bedf50beb27f1cf89fbba5825432ae
treea536357e238b2f9389f9d9c88100c10773102557
parent6c2bcb83709e273a5bfd86f866a428a32892c69e
net: filter: improve test case framework

This patch simplifies and refactors the test case code a
bit and also adds a summary of all test that passed or
failed in the kernel log, so that it's easier to spot if
something has failed.

Future work could further extend the test framework to also
support different input 'stimuli' i.e. related structures
to seccomp.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_bpf.c