Files
python-bpf/tests/test_config.toml
2026-03-30 19:33:43 +05:30

34 lines
1.6 KiB
TOML

# test_config.toml
#
# [xfail] — tests expected to fail.
# key = path relative to tests/
# value = {reason = "...", level = "ir" | "llc"}
# level "ir" = fails during pythonbpf IR generation (exception or ERROR log)
# level "llc" = IR generates but llc rejects it
#
# Tests removed from this list because they now pass (fixed by compilation-context PR):
# failing_tests/assign/retype.py
# failing_tests/conditionals/helper_cond.py
# failing_tests/conditionals/oneline.py
# failing_tests/direct_assign.py
# failing_tests/globals.py
# failing_tests/if.py
# failing_tests/license.py
# failing_tests/named_arg.py
# failing_tests/xdp/xdp_test_1.py
# These files can be moved to passing_tests/ when convenient.
[xfail]
"failing_tests/conditionals/struct_ptr.py" = {reason = "Struct pointer used directly as boolean condition not supported", level = "ir"}
"failing_tests/license.py" = {reason = "Missing LICENSE global produces IR that llc rejects — should be caught earlier with a clear error message", level = "llc"}
"failing_tests/undeclared_values.py" = {reason = "Undeclared variable used in f-string — should raise SyntaxError (correct behaviour, test documents it)", level = "ir"}
"failing_tests/vmlinux/args_test.py" = {reason = "struct_trace_event_raw_sys_enter args field access not supported", level = "ir"}
"failing_tests/vmlinux/assignment_handling.py" = {reason = "Assigning vmlinux enum value (XDP_PASS) to a local variable not yet supported", level = "ir"}
"failing_tests/xdp_pass.py" = {reason = "XDP program using vmlinux structs (struct_xdp_md) and complex map/struct interaction not yet supported", level = "ir"}