Commit Graph
2 Commits
Author SHA1 Message Date
BFE EngineeringandClaude Haiku 5.5 748979611e test-hang: refuse a wrong-vermagic module behaviourally [skip ci]
The collected-module gate moves to build/lib-module-gate.sh, which
build-kernel.sh sources. Every WARDEN_MODULES_COLLECT module must carry
this kernel's vermagic before it is copied, and the test-only directory
needs CONFIG_WARDEN_TEST_HANG=m after olddefconfig. The grep-only checks
of run-test-hang-tests.sh never ran either refusal path.

run-module-gate-tests.sh runs them on fixtures, with no kernel tree and no
compiler: a stale module is refused and not copied, in the test-only list
and in the aic8800 release list, and a symbol that is not =m is refused.
Accepting every vermagic fails five of its checks (mutation check).

run-missing-tools-tests.sh lists find and cp among its base tools: the
collection step and the fixtures use them.

Refs blueflare/bfe-core1106-sdk#56
Refs flare-edge sp/m4a-e-f5-kernel-hang-module (F5, AT-M4-01, AT-M4-12)

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B1W6qGNpGNtFT7nhShpH56
2026-11-15 03:34:17 -06:00
BFE EngineeringandClaude Haiku 5.5 45d8dbc59c test-hang: SKIP the configuration checks without flex and bison [skip ci]
tests/test-hang/run-test-hang-tests.sh needs flex and bison for its kernel
configuration expansions, but it checked only for python and the cross
compiler. On farm host 0056 (no flex or bison) both expansions FAILed with
"flex: not found", and the failure named a log under the script's temp
directory that the EXIT trap deletes, so the cause was not visible.

The configuration checks now SKIP with a notice when flex or bison is not on
PATH, as they already do for a missing python or cross compiler. The tool
checks run before the tarball fetch, so a host without them fetches nothing.
A failed fetch or expansion prints the last 40 lines of its log before the
script exits.

tests/test-hang/run-missing-tools-tests.sh covers both: with flex or with
bison missing the checks SKIP and the script passes, and a failed fetch FAILs
and prints its log tail. Each case is hermetic (a PATH with only the base
tools and fakes; nothing is compiled or downloaded).

Fixes #54

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B1W6qGNpGNtFT7nhShpH56
2026-11-15 02:30:22 -06:00