Fail the build step if a file does not match certain checks. TODO: make this more flexible, supporting more kinds of checks. TODO: generalize the code in std.testing.expectEqualStrings and make this CheckFile step produce those helpful diagnostics when there is not a match.

Fields

step: Step,
expected_matches: []const []const u8,
expected_exact: ?[]const u8,
source: std.Build.LazyPath,
max_bytes: usize = (20 * 1024) * 1024,

Types

Functions

fn create(owner: *std.Build, source: std.Build.LazyPath, options: Options) *CheckFile

No documentation provided.

fn setName(self: *CheckFile, name: []const u8) void

No documentation provided.

Values

base_id
(enum literal)