Skip to content

Collect the src/chart.zig tests again - #77

Merged
beetlebugorg merged 1 commit into
mainfrom
fix/chart-test-link-2
Sep 9, 2026
Merged

beetlebugorg merged 1 commit into
mainfrom
fix/chart-test-link-2

Conversation

@beetlebugorg

Copy link
Copy Markdown
Owner

The seven tests in src/chart.zig have not run since their test module left build.zig over a link failure on x86_64-linux. lua_shim.c is compiled into every binary that links the portray module, and it references 30 symbols exported from portray.zig, s101/catalogue.zig and portray/rules_embed.zig. Zig emits an export only after analyzing the declaration, and these tests reach none of the three files, so the link had 30 undefined symbols.

src/chart.zig references portray and the s101 catalogue in a comptime block, so Zig analyzes both files and emits their exports. rules_embed follows from portray. The test module goes back into build.zig.

zig build install test reports 443 tests, up from 436, and all seven recovered tests pass. zig build test -Dtarget=x86_64-linux-gnu compiles every test binary. zig fmt --check src/ tools/ build.zig passes.

The seven tests in src/chart.zig have not run since their test module
left build.zig over a link failure on x86_64-linux. lua_shim.c is
compiled into every binary that links the portray module, and it
references 30 symbols exported from portray.zig, s101/catalogue.zig and
portray/rules_embed.zig. Zig emits an export only after analyzing the
declaration, and these tests reach none of the three files, so the link
had 30 undefined symbols.

src/chart.zig references portray and the s101 catalogue in a comptime
block, so Zig analyzes both files and emits their exports. rules_embed
follows from portray. The test module goes back into build.zig.

zig build install test reports 443 tests, up from 436. zig build test
-Dtarget=x86_64-linux-gnu compiles every test binary.
@beetlebugorg
beetlebugorg merged commit 3f93498 into main Sep 9, 2026
5 checks passed
@beetlebugorg
beetlebugorg deleted the fix/chart-test-link-2 branch September 9, 2026 17:29
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