diff options
| author | Nic Gaffney <gaffney_nic@protonmail.com> | 2025-10-12 19:18:04 -0500 |
|---|---|---|
| committer | Nic Gaffney <gaffney_nic@protonmail.com> | 2025-10-12 19:18:04 -0500 |
| commit | a22bf34ccdb9ba063438f27a8f9bdb6d5bffb28c (patch) | |
| tree | 23b9eab54d787553a4df8f7a4bc410fef41cdc50 /build.zig | |
| parent | ae555d16a0a355563c7da3d95c8ebbd192f52cf2 (diff) | |
| download | particle-sim-a22bf34ccdb9ba063438f27a8f9bdb6d5bffb28c.tar.gz | |
Quadtree optimization complete
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -53,4 +53,15 @@ pub fn build(b: *std.Build) !void { } const run_step = b.step("run", "Run the app"); run_step.dependOn(&run_cmd.step); + + const exe_unit_tests = b.addTest(.{ + .root_source_file = b.path("src/quad.zig"), + .target = target, + .optimize = optimize, + }); + + const run_exe_unit_tests = b.addRunArtifact(exe_unit_tests); + + const test_step = b.step("test", "Run unit tests"); + test_step.dependOn(&run_exe_unit_tests.step); } |
