summaryrefslogtreecommitdiff
path: root/gui/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'gui/build.zig')
-rw-r--r--gui/build.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/build.zig b/gui/build.zig
index 3e09631..bedba3d 100644
--- a/gui/build.zig
+++ b/gui/build.zig
@@ -64,4 +64,10 @@ pub fn build(b: *std.Build) void {
adaptive.addFileArg(b.graph.path(.install_bin, "ztrace-gui"));
adaptive.step.dependOn(b.getInstallStep());
tests.dependOn(&adaptive.step);
+ const restart = b.addSystemCommand(&.{"python3"});
+ restart.addFileArg(b.path("test/restart.py"));
+ restart.addArg("--gui");
+ restart.addFileArg(b.graph.path(.install_bin, "ztrace-gui"));
+ restart.step.dependOn(b.getInstallStep());
+ tests.dependOn(&restart.step);
}