selftests/bpf: Convert test_global_funcs test to test_loader framework
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 16 Feb 2023 04:59:53 +0000 (20:59 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 17 Feb 2023 20:20:44 +0000 (21:20 +0100)
commit95ebb376176c52382293e05e63f142114a5e40ef
tree17b8bedca1f8aa7ab08816ef2f6fede6108a38fe
parentd384dce281ed1b504fae2e279507827638d56fa3
selftests/bpf: Convert test_global_funcs test to test_loader framework

Convert 17 test_global_funcs subtests into test_loader framework for
easier maintenance and more declarative way to define expected
failures/successes.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/20230216045954.3002473-3-andrii@kernel.org
18 files changed:
tools/testing/selftests/bpf/prog_tests/test_global_funcs.c
tools/testing/selftests/bpf/progs/test_global_func1.c
tools/testing/selftests/bpf/progs/test_global_func10.c
tools/testing/selftests/bpf/progs/test_global_func11.c
tools/testing/selftests/bpf/progs/test_global_func12.c
tools/testing/selftests/bpf/progs/test_global_func13.c
tools/testing/selftests/bpf/progs/test_global_func14.c
tools/testing/selftests/bpf/progs/test_global_func15.c
tools/testing/selftests/bpf/progs/test_global_func16.c
tools/testing/selftests/bpf/progs/test_global_func17.c
tools/testing/selftests/bpf/progs/test_global_func2.c
tools/testing/selftests/bpf/progs/test_global_func3.c
tools/testing/selftests/bpf/progs/test_global_func4.c
tools/testing/selftests/bpf/progs/test_global_func5.c
tools/testing/selftests/bpf/progs/test_global_func6.c
tools/testing/selftests/bpf/progs/test_global_func7.c
tools/testing/selftests/bpf/progs/test_global_func8.c
tools/testing/selftests/bpf/progs/test_global_func9.c