Skip to content

fix(gcu-c): host_test target + regression for #72 - #75

Merged
tig merged 1 commit into
mainfrom
fix/72-gcu-c-host-test-target
Jul 23, 2026
Merged

tig merged 1 commit into
mainfrom
fix/72-gcu-c-host-test-target

Conversation

@tig

@tig tig commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

Test plan

  • Static asserts on gcu-c plate CMakeLists.txt + silico.toml
  • pytest tests/test_scaffold_and_cli.py -q on a host with Python
  • With CMake installed: configure test runs and does not report reserved test target
  • On a GCU previously scaffolded with --target test, set gate = \"cmake --build build/host --target host_test\" or re-scaffold host plate files

Related

CMake reserves the name test when CTest is enabled. Plate already uses
host_test; add regression tests so reserved-name configure failures
cannot return unnoticed.
@tig
tig merged commit 2ca7d1b into main Jul 23, 2026
1 check passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4db331e205

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +57 to +60
if shutil.which("cmake") is None:
import pytest

pytest.skip("cmake not on PATH")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Skip the configure test when a C compiler is unavailable

The gcu-c host CMakeLists.txt calls project(gcu_c_host C), so cmake -S/-B requires a usable C compiler in addition to the cmake executable. On developer or CI environments that have CMake installed but no compiler/toolchain configured (for example, CMake on PATH without Visual Studio Build Tools), this test fails the package's otherwise Python-only test suite rather than taking the documented skip path. Detect a usable compiler (or treat CMake's compiler-not-found outcome as a skip) before asserting configure success.

Useful? React with 👍 / 👎.

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.

gcu-c plate: CMake target name test is reserved when CTest is enabled

1 participant