a7e2bc39ef
Tests: Add a verifier level to the expected-failure tiers
...
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 >
2026-08-07 17:07:23 +05:30
edefe626d0
Tests: Use a real program section in return, var_rval and if
...
These three declared @section("sometag1"), which is not a section name libbpf
can map to a program type:
libbpf: failed to guess program type from ELF section 'sometag1'
so they were rejected before the kernel verifier ever saw them. They generate
IR and compile fine; only the section was wrong. Switch to
tracepoint/syscalls/sys_enter_execve, matching the other tracepoint tests.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-08-07 17:07:23 +05:30
01ddffb619
Tests: Enable vmlinux requirement for verifier tests
2026-04-25 22:47:44 +05:30
1670814261
Tests: Remove unnecessary context from test_config
2026-04-25 20:22:57 +05:30
9103e44711
Tests: Remove unnecessary stuff from README
2026-04-25 20:13:17 +05:30
35b492054c
Tests: Remove unnecessary _all_cases from conftest
2026-04-25 20:10:27 +05:30
48fa8aec3f
Tests: USe namedtuple to pass verifier output for asserts
2026-04-25 18:54:25 +05:30
145e930389
Tests: Fix prefix set naming in test collector
2026-04-25 18:21:42 +05:30
5ec86be7dd
Tests: Use full import path in test collector
2026-04-25 18:07:40 +05:30
56db0d3738
Tests: Remove unnecessary version check from test collector
2026-04-25 17:59:59 +05:30
1d555ddd47
Tests: Add tests/README.md
...
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-03-30 19:35:08 +05:30
ee444447b9
Tests: Add tests/__init__.py and pythonpath config
...
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-03-30 19:34:47 +05:30
da57911122
Tests: Add automated testing framework with coverage support
...
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-03-30 19:33:43 +05:30
77901accf2
fix xdp test c form test
...
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com >
2025-11-30 05:53:32 +05:30
0e50079d88
Add passing test struct_pylib.py
2025-11-28 21:02:27 +05:30
84edddb685
Fix passing test hash_map_struct to include char array test
2025-11-28 21:02:25 +05:30
5ba29db362
fix the c form of the xdp program
2025-11-27 23:44:44 +05:30
de8c486461
fix: remove deref_to_depth on single depth pointers
2025-11-27 22:59:34 +05:30
a8595ff1d2
feat: allocate tmp variable for pointer to vmlinux struct field access.
2025-11-27 14:02:00 +05:30
189526d5ca
format chore
2025-11-27 12:42:10 +05:30
1593b7bcfe
feat:user defined struct casting
2025-11-27 12:41:57 +05:30
4905649700
feat:non struct field values can be cast
2025-11-26 14:18:40 +05:30
7b7b00dbe7
add disksnoop ipynb
2025-11-25 22:51:24 +05:30
102e4ca78c
add disksnoop example
2025-11-24 22:50:39 +05:30
081ee5cb4c
move requests.py to passing tests
2025-11-22 13:19:55 +05:30
6f25c554a9
fix CO-RE read for cast structs
2025-11-22 01:47:25 +05:30
377fa4041d
add regular struct field access handling in vmlinux_registry.py
2025-11-22 00:36:59 +05:30
99321c7669
add a failing C test
2025-11-21 23:01:08 +05:30
25394059a6
allow casting
2025-11-21 21:47:10 +05:30
42b8865a56
Merge branch 'master' into request-struct
2025-11-21 02:10:52 +05:30
144d9b0ab4
change c-file test structure
2025-11-20 17:24:02 +05:30
740eed45e1
add placeholder debug info to shut llvmlite up about NoneType
2025-11-20 14:17:57 +05:30
c8801f4c3e
nonetype not parsed
2025-11-19 23:35:10 +05:30
7af54df7c0
Add passing test hash_map_struct.py for using structs as hashmap key/val types
2025-11-19 00:17:01 +05:30
49740598ea
format chore
2025-11-13 09:31:10 +05:30
73bbf00e7c
add tests
2025-11-13 09:29:53 +05:30
5031f90377
fix stacked vmlinux struct parsing issue
2025-11-10 20:06:04 +05:30
c5bef26b88
add multi imports to single import line.
2025-11-08 18:08:04 +05:30
5a8b64f1d9
Merge pull request #64 from pythonbpf/all_helpers
...
Add support for all eBPF helpers
2025-11-07 19:26:55 +05:30
5ad33b011e
move a test to passing
2025-11-05 18:02:28 +05:30
2f4785b796
add int type conversion for all vmlinux struct field int types.
2025-11-05 18:01:41 +05:30
c5fdd3bce2
move some tests to passing
2025-11-05 17:48:26 +05:30
b0d35693b9
format chore
2025-11-05 17:44:45 +05:30
44c6ceda27
fix context debug info repetition circular reference error
2025-11-05 17:44:29 +05:30
2685d0a0ee
add i32 support special case and find ctx repetition in multiple functions error.
2025-11-05 17:38:38 +05:30
4efd3223cd
Add passing uid_gid helper test
2025-11-02 03:47:26 +05:30
3489f45b63
Add failing XDP vmlinux tests
2025-11-01 18:57:07 +05:30
204ec26154
add i32 support and make it extensible
2025-11-01 14:44:39 +05:30
f9ee43e7ef
Add passing test smp_processor_id.py for helpers
2025-11-01 14:13:52 +05:30
70a04f54d1
Add passing test for bpf_probe_read helper
2025-11-01 13:51:08 +05:30