re-integrate stack trace tests with the new std.Build API

* RunStep: ability to set stdin
 * RunStep: ability to capture stdout and stderr as a FileSource
 * RunStep: add setName method
 * RunStep: hash the stdio checks
This commit is contained in:
Andrew Kelley
2023-03-06 19:10:37 -07:00
parent 7bad695865
commit a24af8e400
7 changed files with 637 additions and 727 deletions

View File

@@ -189,10 +189,9 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void {
if (try step.cacheHit(&man)) {
const digest = man.final();
for (wf.files.items) |file| {
file.generated_file.path = try b.cache_root.join(
b.allocator,
&.{ "o", &digest, file.sub_path },
);
file.generated_file.path = try b.cache_root.join(b.allocator, &.{
"o", &digest, file.sub_path,
});
}
return;
}
@@ -249,10 +248,9 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void {
},
}
file.generated_file.path = try b.cache_root.join(
b.allocator,
&.{ cache_path, file.sub_path },
);
file.generated_file.path = try b.cache_root.join(b.allocator, &.{
cache_path, file.sub_path,
});
}
try man.writeManifest();