diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-02 18:17:37 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-10 09:17:07 -0300 |
| commit | 35cecf26b06cf50d9827056da99d883ca975c39b (patch) | |
| tree | 7b228b94313880f2d78fa5f0fb85a0115cfd0e88 /build.zig | |
| parent | 4f980de2c7a2ec29c561bca815c37879a18cc2b3 (diff) | |
| download | pardes-35cecf26b06cf50d9827056da99d883ca975c39b.tar.gz pardes-35cecf26b06cf50d9827056da99d883ca975c39b.zip | |
load builtin commands from the user config before rendering
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -743,6 +743,15 @@ pub fn build(b: *std.Build) void { }) }); const unit_step = b.step("unit-test", "run the modal.zig + crt.zig + deck replay + core unit tests"); unit_step.dependOn(&b.addRunArtifact(unit).step); + // Native config path/loading is std-only and has its own hermetic + // filesystem/environment tests. The core receives bytes through + // Options, so this IO module stays outside the core module graph. + const user_config_test = b.addTest(.{ .root_module = b.createModule(.{ + .target = target, + .optimize = optimize, + .root_source_file = b.path("src/user_config.zig"), + }) }); + unit_step.dependOn(&b.addRunArtifact(user_config_test).step); // crt.zig is pure std — the mouse-mapping-vs-shader-formula test const crt_test = b.addTest(.{ .root_module = b.createModule(.{ .target = target, |
