summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/l4lb_all.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2020-09-03 13:35:40 -0700
committerAlexei Starovoitov <ast@kernel.org>2020-09-03 17:14:40 -0700
commitfab45be1d26e8c3cee62e09bcc39c149b175f848 (patch)
treea2103758f982c28fe19134282041fd95ae5568de /tools/testing/selftests/bpf/prog_tests/l4lb_all.c
parentd86687ae6b759a3ac3e2db63390cef6006144681 (diff)
downloadlinux-fab45be1d26e8c3cee62e09bcc39c149b175f848.tar.bz2
selftests/bpf: Add subprogs to pyperf, strobemeta, and l4lb_noinline tests
Add use of non-inlined subprogs to few bigger selftests to excercise libbpf's bpf2bpf handling logic. Also split l4lb_all selftest into two sub-tests. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200903203542.15944-13-andriin@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/l4lb_all.c')
-rw-r--r--tools/testing/selftests/bpf/prog_tests/l4lb_all.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/l4lb_all.c b/tools/testing/selftests/bpf/prog_tests/l4lb_all.c
index c2d373e294bb..8073105548ff 100644
--- a/tools/testing/selftests/bpf/prog_tests/l4lb_all.c
+++ b/tools/testing/selftests/bpf/prog_tests/l4lb_all.c
@@ -80,9 +80,8 @@ out:
void test_l4lb_all(void)
{
- const char *file1 = "./test_l4lb.o";
- const char *file2 = "./test_l4lb_noinline.o";
-
- test_l4lb(file1);
- test_l4lb(file2);
+ if (test__start_subtest("l4lb_inline"))
+ test_l4lb("test_l4lb.o");
+ if (test__start_subtest("l4lb_noinline"))
+ test_l4lb("test_l4lb_noinline.o");
}