summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2024-07-11 22:07:03 -0500
committerNic Gaffney <gaffney_nic@protonmail.com>2024-07-11 22:07:03 -0500
commit3c531d4bbc754cc1dac6a050b30c3851eb7a2223 (patch)
tree0e478f375ba76e17b50c44a78cd33dd4415ca406 /build.zig
parentb3a865de6358bafc6f62e12565b4e1f452105977 (diff)
downloadcalico-3c531d4bbc754cc1dac6a050b30c3851eb7a2223.tar.gz
chore(everything): Changed up some small stuff, comments and the like.
totally not me forgetting what i put in this commit noooo...
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 052d68b..5627e43 100644
--- a/build.zig
+++ b/build.zig
@@ -31,8 +31,16 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
});
+ const token_unit_tests = b.addTest(.{
+ .root_source_file = b.path("src/tokenize.zig"),
+ .target = target,
+ .optimize = optimize,
+ });
+
const run_exe_unit_tests = b.addRunArtifact(exe_unit_tests);
+ const run_token_unit_tests = b.addRunArtifact(token_unit_tests);
const test_step = b.step("test", "Run unit tests");
test_step.dependOn(&run_exe_unit_tests.step);
+ test_step.dependOn(&run_token_unit_tests.step);
}