Re: [PATCH bpf-next 1/4] bpf/selftests: move assert macros into a dedicated header
From: Quentin Monnet
Date: Thu Jan 15 2026 - 06:42:42 EST
2026-01-14 09:59 UTC+0100 ~ "Alexis Lothoré (eBPF Foundation)"
<alexis.lothore@xxxxxxxxxxx>
> The test_progs runner defines a large set of convenient assert macros to
> perform all the tests. Writing a new runner involves rewriting some
> macros if we want some basic testing features like standardized failure
> log.
>
> Export those assert macros from test_progs into a dedicated header so
> that we can use those in any test_runner. The sole requirement to be
> able to use those macros is to define a test__fail function in the
> runner that will be called whenever an assert fails.
>
> Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@xxxxxxxxxxx>
Acked-by: Quentin Monnet <qmo@xxxxxxxxxx>