Skip to content

tests: add KTAP shell framework#473

Merged
lneto merged 4 commits intomasterfrom
claude_tests
Mar 11, 2026
Merged

tests: add KTAP shell framework#473
lneto merged 4 commits intomasterfrom
claude_tests

Conversation

@lneto
Copy link
Copy Markdown
Contributor

@lneto lneto commented Mar 9, 2026

No description provided.

@lneto lneto changed the title Claude tests tests: add netfilter test suite with KTAP output Mar 9, 2026
@lneto lneto marked this pull request as draft March 9, 2026 11:23
@lneto lneto changed the base branch from claude_data to master March 10, 2026 00:52
@lneto lneto marked this pull request as ready for review March 10, 2026 00:57
@lneto lneto requested a review from sneaky-potato March 10, 2026 01:11
@lneto lneto changed the title tests: add netfilter test suite with KTAP output @lneto @claude tests: add KTAP shell framework Mar 10, 2026
@lneto lneto force-pushed the claude_tests branch 2 times, most recently from f17e21a to c2e341f Compare March 10, 2026 11:36
@lneto lneto changed the title @lneto @claude tests: add KTAP shell framework tests: add KTAP shell framework Mar 10, 2026
Comment thread tests/lib.sh Outdated
mark_dmesg() { DMESG_LINE=$(dmesg | wc -l); }
check_dmesg() {
local errs
errs=$(dmesg | tail -n +$((DMESG_LINE+1)) | grep -E "(luanetfilter|lunatik).*\.lua:[0-9]+:" || true)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for having luanetfilter separately in this regex here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a leftover of another branch.. good catch.. thanks!

@lneto lneto force-pushed the claude_tests branch 3 times, most recently from 6f727f2 to aec39e4 Compare March 10, 2026 22:30
Comment thread tests/monitor/gc.sh
lneto and others added 4 commits March 11, 2026 10:17
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Two cases: shouldstop() returns false in run (non-kthread) context without
crashing, and returns true when stop is requested in spawn (kthread) context.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Exercises the scenario where runner.spawn() is called from a script's
top-level code (during module load), which used to hang the kernel via
kthread_run() blocking in wait_for_completion(). Test verifies the call
errors with "not allowed during module load" within a timeout instead.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lneto lneto merged commit 9b62c2a into master Mar 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants