diff options
Diffstat (limited to 'gui/build.zig')
| -rw-r--r-- | gui/build.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/build.zig b/gui/build.zig index 98d9c44..3e09631 100644 --- a/gui/build.zig +++ b/gui/build.zig @@ -50,10 +50,18 @@ pub fn build(b: *std.Build) void { tests.dependOn(&test_run.step); const navigation = b.addTest(.{ .root_module = b.createModule(.{ .root_source_file = b.path("src/Navigation.zig"), .target = target, .optimize = optimize }) }); tests.dependOn(&b.addRunArtifact(navigation).step); + const geometry = b.addTest(.{ .root_module = b.createModule(.{ .root_source_file = b.path("src/Geometry.zig"), .target = target, .optimize = optimize, .imports = &.{.{ .name = "sketch", .module = sb.modules.sketch }} }) }); + tests.dependOn(&b.addRunArtifact(geometry).step); const inspection = b.addSystemCommand(&.{"python3"}); inspection.addFileArg(b.path("test/inspection.py")); inspection.addArg("--ztrace"); inspection.addFileArg(b.graph.path(.install_bin, "ztrace")); inspection.step.dependOn(b.getInstallStep()); tests.dependOn(&inspection.step); + const adaptive = b.addSystemCommand(&.{"python3"}); + adaptive.addFileArg(b.path("test/adaptive.py")); + adaptive.addArg("--gui"); + adaptive.addFileArg(b.graph.path(.install_bin, "ztrace-gui")); + adaptive.step.dependOn(b.getInstallStep()); + tests.dependOn(&adaptive.step); } |
