summaryrefslogtreecommitdiff
path: root/test/tests.zig
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2024-08-04 12:31:21 +0000
committerChris Boesch <chrboesch@noreply.codeberg.org>2024-08-04 12:31:21 +0000
commitd6887f21c8469f9d06d326b3b678b01d79a8de64 (patch)
tree65c5d7f87b7f8d1a2a804a957f083231579f9020 /test/tests.zig
parent28320b169f0db67e9a6f91a9dbba66fbfe67a8fe (diff)
parenta671def2cf4e5161f664581dea631e8541e3feea (diff)
Merge pull request 'Fix #127 and #129 by updating the build files to account for recent 0.14.0-dev updates' (#130) from bsubei/exercises:fix-0.14.0-build-changes into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/130
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/tests.zig b/test/tests.zig
index 126a1cd..5f64f8e 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -50,7 +50,7 @@ pub fn addCliTests(b: *std.Build, exercises: []const Exercise) *Step {
case_step.dependOn(&verify.step);
}
- const cleanup = b.addRemoveDirTree(tmp_path);
+ const cleanup = b.addRemoveDirTree(.{ .src_path = .{ .owner = b, .sub_path = tmp_path } });
cleanup.step.dependOn(case_step);
step.dependOn(&cleanup.step);
@@ -82,7 +82,7 @@ pub fn addCliTests(b: *std.Build, exercises: []const Exercise) *Step {
const verify = CheckStep.create(b, exercises, stderr);
verify.step.dependOn(&cmd.step);
- const cleanup = b.addRemoveDirTree(tmp_path);
+ const cleanup = b.addRemoveDirTree(.{ .src_path = .{ .owner = b, .sub_path = tmp_path } });
cleanup.step.dependOn(&verify.step);
step.dependOn(&cleanup.step);
@@ -150,7 +150,7 @@ const CheckNamedStep = struct {
return self;
}
- fn make(step: *Step, _: std.Progress.Node) !void {
+ fn make(step: *Step, _: Step.MakeOptions) !void {
const b = step.owner;
const self: *CheckNamedStep = @alignCast(@fieldParentPtr("step", step));
const ex = self.exercise;
@@ -202,7 +202,7 @@ const CheckStep = struct {
return self;
}
- fn make(step: *Step, _: std.Progress.Node) !void {
+ fn make(step: *Step, _: Step.MakeOptions) !void {
const b = step.owner;
const self: *CheckStep = @alignCast(@fieldParentPtr("step", step));
const exercises = self.exercises;
@@ -325,7 +325,7 @@ const FailStep = struct {
return self;
}
- fn make(step: *Step, _: std.Progress.Node) !void {
+ fn make(step: *Step, _: Step.MakeOptions) !void {
const b = step.owner;
const self: *FailStep = @alignCast(@fieldParentPtr("step", step));
@@ -368,7 +368,7 @@ const HealStep = struct {
return self;
}
- fn make(step: *Step, _: std.Progress.Node) !void {
+ fn make(step: *Step, _: Step.MakeOptions) !void {
const b = step.owner;
const self: *HealStep = @alignCast(@fieldParentPtr("step", step));