bpf: Selftests, add whitelist option to test_sockmap
authorJohn Fastabend <john.fastabend@gmail.com>
Wed, 13 May 2020 19:15:24 +0000 (12:15 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Sat, 16 May 2020 00:56:49 +0000 (02:56 +0200)
commit065a74cbd0d0bd7115846d630e141a95a95e1ce1
tree6d79d0efd87ad3653c26b51b62770584a369b1b0
parentb98ca90c56ee498c751ff5c20b9db8cb64c13fc5
bpf: Selftests, add whitelist option to test_sockmap

Allow running specific tests with a comma deliminated whitelist. For example
to run all apply and cork tests.

 $ ./test_sockmap --whitelist="cork,apply"

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Link: https://lore.kernel.org/bpf/158939732464.15176.1959113294944564542.stgit@john-Precision-5820-Tower
tools/testing/selftests/bpf/test_sockmap.c