add internpool to test steps

This commit is contained in:
Techatrix 2023-01-20 17:04:59 +01:00
parent 4a8fe90d23
commit 06fcfcb3db
2 changed files with 11 additions and 1 deletions

View File

@ -49,7 +49,7 @@ pub fn build(b: *std.build.Builder) !void {
"enable_tracy_callstack", "enable_tracy_callstack",
b.option(bool, "enable_tracy_callstack", "Enable callstack graphs.") orelse false, b.option(bool, "enable_tracy_callstack", "Enable callstack graphs.") orelse false,
); );
exe_options.addOption( exe_options.addOption(
bool, bool,
"enable_failing_allocator", "enable_failing_allocator",
@ -171,4 +171,9 @@ pub fn build(b: *std.build.Builder) !void {
tests.setBuildMode(.Debug); tests.setBuildMode(.Debug);
tests.setTarget(target); tests.setTarget(target);
test_step.dependOn(&tests.step); test_step.dependOn(&tests.step);
var src_tests = b.addTest("src/zls.zig");
src_tests.setBuildMode(.Debug);
src_tests.setTarget(target);
test_step.dependOn(&src_tests.step);
} }

View File

@ -13,3 +13,8 @@ pub const URI = @import("uri.zig");
pub const DocumentStore = @import("DocumentStore.zig"); pub const DocumentStore = @import("DocumentStore.zig");
pub const ComptimeInterpreter = @import("ComptimeInterpreter.zig"); pub const ComptimeInterpreter = @import("ComptimeInterpreter.zig");
pub const InternPool = @import("InternPool.zig"); pub const InternPool = @import("InternPool.zig");
comptime {
const std = @import("std");
std.testing.refAllDecls(@This());
}