Skip to content

bpf/selftests: allow disabling tests

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2036656
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2032734
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2006315

Upstream status: RHEL-only

This is a forward-port of from RHEL8, with extension to disabling verifier tests.

Some BPF selftest programs do not compile or fail on RHEL (due to incorrect LLVM version or missing/disabled features). This allows to disable individual test programs to make all the tests passing.

The tests can be disabled by adding a file rhskip into prog_tests/, progs/, or verifier/ directories that contains a list of test source files from that directory to skip during compilation (each source on a separate line). Note that adding a file into "rhskip" disables all tests in that file.

Additionally, tests can be disabled per-architecture by adding the :arch suffix to a line in rhskip.

This MR also disables two tests (one verifier test for powerpc and one prog test for all arches) that require features not present in RHEL9.

Signed-off-by: Viktor Malik vmalik@redhat.com

Merge request reports