Skip to content

Commit cde7851

Browse files
anakryikoborkmann
authored andcommitted
selftests/bpf: Make align selftests more robust
Align subtest is very specific and finicky about expected verifier log output and format. This is often completely unnecessary as in a bunch of situations test actually cares about var_off part of register state. But given how exact it is right now, any tiny verifier log changes can lead to align tests failures, requiring constant adjustment. This patch tries to make this a bit more robust by making logic first search for specified register and then allowing to match only portion of register state, not everything exactly. This will come handly with follow up changes to SCALAR register output disambiguation. Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: John Fastabend <john.fastabend@gmail.com> Acked-by: Eduard Zingerman <eddyz87@gmail.com> Link: https://lore.kernel.org/bpf/20231011223728.3188086-4-andrii@kernel.org
1 parent 08a7078 commit cde7851

File tree

1 file changed

+121
-120
lines changed
  • tools/testing/selftests/bpf/prog_tests

1 file changed

+121
-120
lines changed

0 commit comments

Comments
 (0)