Skip to content

tests: fix CORE-V CLI host tests - #64

Open
divyanshisingh987456321 wants to merge 1 commit into
eclipse-threadx:mainfrom
divyanshisingh987456321:agents/run-tests-suite
Open

tests: fix CORE-V CLI host tests#64
divyanshisingh987456321 wants to merge 1 commit into
eclipse-threadx:mainfrom
divyanshisingh987456321:agents/run-tests-suite

Conversation

@divyanshisingh987456321

Copy link
Copy Markdown

Description

The CLI unit-test target currently fails to build on Windows because app/app_commands.c depends on the hardware-specific uart_driver.h, which is not available in the host test environment.

This PR adds the required host-side mocks and updates the test configuration so that the CLI unit tests can be compiled and run on Windows.

Changes

  • Updated tests/CMakeLists.txt
  • Updated test_cli_commands.c
  • Added host mocks under tests/mock/

Testing

Before these changes, the CLI test target was reproduced from a clean HEAD worktree on Windows and failed with:

fatal error: uart_driver.h: No such file or directory

After the changes:

  • CLI test suite builds successfully on Windows
  • All CLI tests pass
  • Generated build output was cleaned up

No production application code was modified.

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.

1 participant