WIP refactor: add remote_poc_test

This commit is contained in:
CJ van den Berg 2026-03-06 21:24:08 +01:00
parent ddc06d67d6
commit 47f4202b94
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
6 changed files with 212 additions and 0 deletions

View file

@ -86,6 +86,30 @@ pub fn build(b: *std.Build) void {
});
const cbor_mod = cbor_dep.module("cbor");
const framing_mod = b.createModule(.{
.root_source_file = b.path("src/remote/framing.zig"),
});
const protocol_mod = b.createModule(.{
.root_source_file = b.path("src/remote/protocol.zig"),
.imports = &.{
.{ .name = "cbor", .module = cbor_mod },
},
});
const remote_child = b.addExecutable(.{
.name = "remote_child_send",
.root_module = b.createModule(.{
.root_source_file = b.path("test/remote_child_send.zig"),
.target = target,
.optimize = optimize,
.imports = &.{
.{ .name = "cbor", .module = cbor_mod },
.{ .name = "framing", .module = framing_mod },
},
}),
});
const thespian_mod = b.addModule("thespian", .{
.root_source_file = b.path("src/thespian.zig"),
.imports = &.{
@ -103,9 +127,13 @@ pub fn build(b: *std.Build) void {
}),
});
options.addOptionPath("remote_child_path", remote_child.getEmittedBin());
tests.root_module.addImport("build_options", options_mod);
tests.root_module.addImport("cbor", cbor_mod);
tests.root_module.addImport("thespian", thespian_mod);
tests.root_module.addImport("framing", framing_mod);
tests.root_module.addImport("protocol", protocol_mod);
tests.addIncludePath(b.path("test"));
tests.addIncludePath(b.path("src"));
tests.addIncludePath(b.path("include"));