aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGrace Yoder <grace_yoder@outlook.com>2026-06-24 17:48:16 -0600
committerGrace Yoder <grace_yoder@outlook.com>2026-06-25 16:42:38 -0600
commitecdcf0c0b89e478e8bf65cbd76655411c341c156 (patch)
treefeec34c70902ba0a6da8862fd0b649174cc18b2c /build.zig
parent47f2491ae0688637d82900dfe8d92b8b4e774e8e (diff)
tests(Clip): added explicit interface checking
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig13
1 files changed, 13 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 4e2fbe0..242a70c 100644
--- a/build.zig
+++ b/build.zig
@@ -14,6 +14,19 @@ pub fn build(b: *std.Build) void {
b.installArtifact(exe);
+ const tests = b.addTest(.{
+ .name = "tpb",
+ .root_module = b.createModule(.{
+ .root_source_file = b.path("src/main.zig"),
+ .target = target,
+ .optimize = optimize,
+ }),
+ });
+
+ const test_step = b.step("test", "Run tests");
+ const run_tests = b.addRunArtifact(tests);
+ test_step.dependOn(&run_tests.step);
+
const run_step = b.step("run", "Run the app");
const run_cmd = b.addRunArtifact(exe);