diff options
| -rw-r--r-- | build.zig | 2 | ||||
| -rw-r--r-- | build/tests.zig | 2 | ||||
| -rw-r--r-- | build/tools.zig | 16 | ||||
| -rw-r--r-- | core/CHANGELOG.md | 6 | ||||
| -rw-r--r-- | docs/typ/building.typ | 4 | ||||
| -rw-r--r-- | test/consumer/build.zig | 2 |
6 files changed, 16 insertions, 16 deletions
@@ -33,7 +33,7 @@ //! such a package fetches what it asked for and nothing else. //! `pardes-editor` has `pardes-syntax` in it as `.syntax`: a file belongs //! to one module, so a package imports one of the two. `test/consumer` is -//! such a package, with both shapes; `lib-test`, which `unit-test` runs, +//! such a package, with both shapes; `consumer-test`, which `unit-test` runs, //! builds and runs it. const std = @import("std"); const builtin = @import("builtin"); diff --git a/build/tests.zig b/build/tests.zig index 741eb24a..e0b33911 100644 --- a/build/tests.zig +++ b/build/tests.zig @@ -62,7 +62,7 @@ pub fn add(b: *std.Build, c: struct { // The perf gate runs with every unit-test (a regression like a // contrast search per grapheme costs 100x, far past the gate). unit_step.dependOn(c.tools.perf_gate_step); - unit_step.dependOn(c.tools.lib_test_step); + unit_step.dependOn(c.tools.consumer_test_step); const units: Units = .{ .nonce = c.test_nonce, .build = c.test_build, .unit = unit_step, .match = testMatch(b, c.unit_profile, c.test_filters, unit_step), .profiler = c.unit_profile, .filters = c.test_filters, .target = c.target, .optimize = c.optimize }; // The perf and fs bench programs' own tests: they compile no editor. _ = units.add(b, units.root(b, "test/perf.zig", true, &.{.{ .name = "perf_options", .module = c.tools.perf_options.createModule() }}), null); diff --git a/build/tools.zig b/build/tools.zig index a4b41dd7..da77958a 100644 --- a/build/tools.zig +++ b/build/tools.zig @@ -16,7 +16,7 @@ pub const Tools = struct { perf_gate_step: *std.Build.Step, /// The perf program's build identity, which its own tests read too. perf_options: *std.Build.Step.Options, - lib_test_step: *std.Build.Step, + consumer_test_step: *std.Build.Step, }; /// The harnesses, the helix comparisons, the benches and the perf gate, the @@ -252,12 +252,12 @@ pub fn add(b: *std.Build, c: struct { // The library as a package that depends on pardes is given it // (`library`): test/consumer's own `zig build test`, over the packages // this checkout has fetched. - const lib_test = b.addSystemCommand(&.{ b.graph.zig_exe, "build", "test", "--pkg-dir", "../../zig-pkg" }); - lib_test.setName("zig build test in test/consumer, a package that depends on pardes"); - lib_test.setCwd(b.path("test/consumer")); - lib_test.has_side_effects = true; - const lib_test_step = b.step("lib-test", "build and test the library from a package that depends on pardes (test/consumer)"); - lib_test_step.dependOn(&lib_test.step); + const consumer_test = b.addSystemCommand(&.{ b.graph.zig_exe, "build", "test", "--pkg-dir", "../../zig-pkg" }); + consumer_test.setName("zig build test in test/consumer, a package that depends on pardes"); + consumer_test.setCwd(b.path("test/consumer")); + consumer_test.has_side_effects = true; + const consumer_test_step = b.step("consumer-test", "build and test the library from a package that depends on pardes (test/consumer)"); + consumer_test_step.dependOn(&consumer_test.step); const history = b.addExecutable(.{ .name = "pardes-history", @@ -271,7 +271,7 @@ pub fn add(b: *std.Build, c: struct { run_history.addPassthruArgs(); run_history.has_side_effects = true; b.step("history", "compare command output and test/build runtime across jj revisions").dependOn(&run_history.step); - return .{ .perf_gate_step = perf_gate_step, .perf_options = perf_options, .lib_test_step = lib_test_step }; + return .{ .perf_gate_step = perf_gate_step, .perf_options = perf_options, .consumer_test_step = consumer_test_step }; } /// The PDF benches: the core over the pdf addon, a pane of it. diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md index faa02ade..b12d6988 100644 --- a/core/CHANGELOG.md +++ b/core/CHANGELOG.md @@ -238,9 +238,9 @@ editor has them, for a program that draws source text itself. Every dependency but tree-sitter's runtime is lazy in the manifest, so such a package fetches the runtime and the grammars of its `grammars` set - and nothing else; `zig build lib-test`, which `unit-test` runs, builds - one (`test/consumer`). The markdown grammar is pinned by its commit: its - branch has moved, and a fresh checkout could not fetch it. + and nothing else; `zig build consumer-test`, which `unit-test` runs, + builds one (`test/consumer`). The markdown grammar is pinned by its + commit: its branch has moved, and a fresh checkout could not fetch it. - Enter, `o` and `O` give the new line helix's indent where the file's grammar has an indent query (bash, C, C#, C++, Clojure, CSS, Elixir, diff --git a/docs/typ/building.typ b/docs/typ/building.typ index d4732fa9..6ef27ef8 100644 --- a/docs/typ/building.typ +++ b/docs/typ/building.typ @@ -129,7 +129,7 @@ Every dependency but tree-sitter's runtime is lazy in the manifest, so such a package fetches what it asked for and nothing else. `pardes-editor` has `pardes-syntax` in it as `.syntax`: a file belongs to one module, so a package imports one of the two. `test/consumer` is -such a package, with both shapes; `lib-test`, which `unit-test` runs, +such a package, with both shapes; `consumer-test`, which `unit-test` runs, builds and runs it. `build.zig.zon` names pardes by its path: `.pardes = .{ .path = "../pardes" }`. @@ -199,7 +199,7 @@ zig build kitty-harness kitty graphics through a pane end to end (a fake kitt kitten icat and chafa too when installed) zig build syntax-test tree-sitter tests without building the editor zig build syntax deterministic per-byte highlighting snapshots -zig build lib-test the library, from a package that depends on pardes (test/consumer); +zig build consumer-test the library, from a package that depends on pardes (test/consumer); unit-test runs it too zig build hxlib helix's cases on the library's editor (-- --parity: against the file pane) zig build behaviour-test behaviour through the 9P tree, in process (test/behaviour/), diff --git a/test/consumer/build.zig b/test/consumer/build.zig index ca63bb6e..c643bfb3 100644 --- a/test/consumer/build.zig +++ b/test/consumer/build.zig @@ -1,5 +1,5 @@ //! A package that depends on pardes, as a program would (build.zig's head -//! comment has its lines): pardes's `lib-test`, which `unit-test` runs, +//! comment has its lines): pardes's `consumer-test`, which `unit-test` runs, //! runs `zig build test` here. `pardes-syntax` with the minimal grammars, //! as a program that draws source text itself takes it; and //! `pardes-editor` with no grammar of pardes's and one of its own, C's, |
