Ports that import from vmlinux need the same treatment as
tests/passing_tests/vmlinux/ -- skipped, not failed, when no vmlinux.py has been
generated for the running kernel. Without this they fail outright wherever one
is absent, CI included.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
- make test/test-cov/test-verifier now depend on a 'vmlinux' target that
regenerates vmlinux.py from the running kernel's BTF and symlinks it
into every directory under tests/, replacing the stale, duplicated
vmlinux.py fixtures that used to be committed there.
- collector.py now skips the 'vmlinux.py' filename when collecting BPF
test cases, since it's a fixture module, not a test program - it was
previously being mis-collected and compiled as a bogus test.
- functions_pass.py: llvmlite >=0.49 renamed the 'nocapture' argument
attribute to 'captures(none)'.
test_config.toml could only declare a failure at the "ir" or "llc" level, and
test_verifier.py dropped every declared-xfail case from the level-3 run
outright. A program that generates IR and compiles cleanly but that the kernel
verifier rejects therefore had no way to be declared: it was silently treated
as must-pass at all three levels.
Levels now form an ordered pipeline (ir < llc < verifier) and a declared level
marks that level and every later one xfail, which is what the old
ir-implies-llc special case was expressing. Level 3 runs every test file and
reports declared failures as expected ones rather than skipping them.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>