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)
commit10f18e0ba1ea7eb004bbaecb4748b1eb28802d24
treea536357e238b2f9389f9d9c88100c10773102557
parent04caa489301c5e01ac4e5d1c13abcecb2041300b
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