]> 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)
commit9ecf5b60e52dd8f7051c4822e24c0b67b343cfaf
treea536357e238b2f9389f9d9c88100c10773102557
parent434def68699f5462800b76cfa9b5dbed689d564f
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