Skip to content

Run tests for kernel build - #24

Merged
xiaoxiang781216 merged 4 commits into
apache:mainfrom
raiden00pl:kernel-mode-support-pr6
Sep 1, 2026
Merged

Run tests for kernel build#24
xiaoxiang781216 merged 4 commits into
apache:mainfrom
raiden00pl:kernel-mode-support-pr6

Conversation

@raiden00pl

Copy link
Copy Markdown
Member
  • coreconfig.py: dispatch cmd_check to application binaries
  • core.py: route runtime check_cmd through config on kernel builds
  • device: resolve image paths before spawning with a custom exec_cwd
  • core.py: runtime command discovery fallback via target PATH listing

With app_bindir configured, cmd_check resolves commands against the
application binary directory first and falls back to symbol lookups
over bin_debug for names that are not applications (NSH builtins like
cmd_df, cmocka entries). Flat-mode behavior is unchanged.

Signed-off-by: raiden00pl <raiden00@railab.me>
Assisted-by: Claude Code
Runtime checks searched the core ELF or the NSH help output, neither of
which lists kernel-mode applications. Route check_cmd through
CoreConfig.cmd_check when the core is a kernel build with a known
application directory, so runtime checks agree with collection-time
filtering.

Signed-off-by: raiden00pl <raiden00@railab.me>
Assisted-by: Claude Code
With exec_cwd set, QEMU resolved a relative '-kernel' path against the
spawn directory instead of the NTFC working directory it is expressed
in, so boot timed out. Absolutize the image path in the qemu and sim
start paths when a custom spawn directory is configured.

Signed-off-by: raiden00pl <raiden00@railab.me>
Assisted-by: Claude Code
Prebuilt kernel-mode images have no host application directory, so
check_cmd could not resolve commands. List CONFIG_PATH_INITIAL (default
/system/bin) once on the running target, cache it, and match cmd_check
patterns against it with the matcher shared with AppBinDir. A failed
listing is not cached and is retried.

Signed-off-by: raiden00pl <raiden00@railab.me>
Assisted-by: Claude Code
@xiaoxiang781216
xiaoxiang781216 merged commit 8601689 into apache:main Sep 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants