The rules are AGENTS.md, "Tests" (shape, dmesg marking, cleanup in a trap, host independence, the coverage matrix, proving the test discriminates, the docs and run.sh wiring) plus the exit-0 blind spot under "Running a script". This skill is the mechanics:
- Source
tests/lib.shand userun_script/run_testinstead of open-coding the run; they fail on any output, which is what catches a script that never loaded.tests/bpf/run.shis the reference shape. bash tools/checks/test-harness.sh <file>flags a harness blind to a failed load.- Tests are installed by
sudo make installonly (scripts_installdoes not install them); run the installed suite withsudo lunatik test <suite>(see the lunatik-cycle skill).