]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Support checks against a regular expression
authorCupertino Miranda <cupertino.miranda@oracle.com>
Mon, 17 Jun 2024 14:14:57 +0000 (15:14 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 21 Jun 2024 20:54:23 +0000 (13:54 -0700)
commitf06ae6194f278444201e0b041a00192d794f83b6
tree3dfc649391aa0021a8e07a73225564436c139c0c
parentcc5083d1f3881624ad2de1f3cbb3a07e152cb254
selftests/bpf: Support checks against a regular expression

Add support for __regex and __regex_unpriv macros to check the test
execution output against a regular expression. This is similar to __msg
and __msg_unpriv, however those expect do substring matching.

Signed-off-by: Cupertino Miranda <cupertino.miranda@oracle.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/bpf/20240617141458.471620-2-cupertino.miranda@oracle.com
tools/testing/selftests/bpf/progs/bpf_misc.h
tools/testing/selftests/bpf/test_loader.c