diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2024-08-20 18:09:23 +0100 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2024-10-05 20:52:25 +0100 |
| commit | f60c045cef7bafdd3eac285f82d5a310daadaec5 (patch) | |
| tree | b63da4d5dcf209b86350015efa0694a43c57c590 /build.zig | |
| parent | d23db9427b82d7dc798442accf34729c16e92f2d (diff) | |
| download | zig-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.zig | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 { |
