aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-08-20 18:09:23 +0100
committermlugg <mlugg@mlugg.co.uk>2024-10-05 20:52:25 +0100
commitf60c045cef7bafdd3eac285f82d5a310daadaec5 (patch)
treeb63da4d5dcf209b86350015efa0694a43c57c590 /build.zig
parentd23db9427b82d7dc798442accf34729c16e92f2d (diff)
downloadzig-f60c045cef7bafdd3eac285f82d5a310daadaec5.tar.gz
zig-f60c045cef7bafdd3eac285f82d5a310daadaec5.zip
tests: add `test-incremental` step
This is contained in the `test` step, so is tested by CI. This commit also includes some enhancements to the `incr-check` tool to make this work correctly.
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 731b825c07..a5f4cd5675 100644
--- a/build.zig
+++ b/build.zig
@@ -577,6 +577,10 @@ pub fn build(b: *std.Build) !void {
} else {
update_mingw_step.dependOn(&b.addFail("The -Dmingw-src=... option is required for this step").step);
}
+
+ const test_incremental_step = b.step("test-incremental", "Run the incremental compilation test cases");
+ try tests.addIncrementalTests(b, test_incremental_step);
+ test_step.dependOn(test_incremental_step);
}
fn addWasiUpdateStep(b: *std.Build, version: [:0]const u8) !void {