WIP: refactor: add remote_roundtrip_test

This commit is contained in:
CJ van den Berg 2026-03-06 21:32:14 +01:00
parent 47f4202b94
commit b580d9da36
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 152 additions and 0 deletions

View file

@ -110,6 +110,19 @@ pub fn build(b: *std.Build) void {
}),
});
const remote_child_roundtrip = b.addExecutable(.{
.name = "remote_child_roundtrip",
.root_module = b.createModule(.{
.root_source_file = b.path("test/remote_child_roundtrip.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 = &.{
@ -128,6 +141,7 @@ pub fn build(b: *std.Build) void {
});
options.addOptionPath("remote_child_path", remote_child.getEmittedBin());
options.addOptionPath("remote_child_roundtrip_path", remote_child_roundtrip.getEmittedBin());
tests.root_module.addImport("build_options", options_mod);
tests.root_module.addImport("cbor", cbor_mod);