summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-20 16:12:55 -0300
committerGabriel Schneider <[email protected]>2026-11-20 16:38:40 -0300
commit06f6c72583faf8256190a0ae195a8085e7cd7f32 (patch)
tree4ceb3509121b23287f8f6e12b00726cb7535fca9 /build
parenta2c5ad9cbd458693599831867b509a12b90ef99d (diff)
downloadpardes-06f6c72583faf8256190a0ae195a8085e7cd7f32.tar.gz
pardes-06f6c72583faf8256190a0ae195a8085e7cd7f32.zip
build: syntax-test deleted, and a test whose grammar is not built skips: the step rooted the syntax module at core/syntax.zig, where dev/Host.zig's `pardes.Surface` does not resolve (it no longer compiled), and every test it ran (syntax.zig's, named "syntax ...") already runs in core-test (core's test program 904 tests with and without a reference added: the same), so the step and its line in docs/typ/building.typ go; under -Dgrammars=none core-test failed to compile (a handed-grammar test names zig's queries) and then 16 tests failed or crashed, under minimal one (a JSON file's paint): each now returns error.SkipZigTest when the set it needs is not built (syntax.zig's own `if (!full_grammars) return;` passed silently, now skips too; minimal_grammars and full_grammars made pub for Query, Stream and File's tests); core-test: full 874/1031 (157 skipped), minimal 861/1031 (170 skipped), none 835/1031 (196 skipped), none failing; `zig build syntax` (the snapshots) builds and runs
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'build')
-rw-r--r--build/tools.zig13
1 files changed, 2 insertions, 11 deletions
diff --git a/build/tools.zig b/build/tools.zig
index a4b41dd7..2ed0e57e 100644
--- a/build/tools.zig
+++ b/build/tools.zig
@@ -229,8 +229,8 @@ pub fn add(b: *std.Build, c: struct {
const fs_bench_step = b.step("fs-bench", "9P filesystem request cost and allocation count (-- [--json] [--reps N])");
fs_bench_step.dependOn(&run_fs_bench.step);
- // The syntax module's own tests and snapshots, on the core without
- // a terminal: its tests reach the editor's modes (modal.zig).
+ // The syntax module's snapshots, on the core without a terminal (its
+ // tests are core-test's, those named "syntax ...").
var syntax_cfg = c.lean;
syntax_cfg.root = "core/syntax.zig";
const syntax_module = core.module(b, c.parts, syntax_cfg).root;
@@ -239,15 +239,6 @@ pub fn add(b: *std.Build, c: struct {
run_syntax.addPassthruArgs();
run_syntax.has_side_effects = true;
b.step("syntax", "emit deterministic syntax snapshots (-- --bench: highlighting latency and allocations)").dependOn(&run_syntax.step);
- const syntax_test = b.addTest(.{
- .root_module = syntax_module,
- .filters = if (c.test_filters.len == 0) &.{"syntax "} else c.test_filters,
- });
- const run_syntax_test = b.addRunArtifact(syntax_test);
- run_syntax_test.has_side_effects = true;
- const syntax_test_step = b.step("syntax-test", "test syntax correctness without building the editor");
- syntax_test_step.dependOn(&run_syntax_test.step);
- if (testMatch(b, c.unit_profile, c.test_filters, syntax_test_step)) |check| check.addArtifactArg(syntax_test);
// The library as a package that depends on pardes is given it
// (`library`): test/consumer's own `zig build test`, over the packages