WIP refactor: add remote_poc_test
This commit is contained in:
parent
ddc06d67d6
commit
47f4202b94
6 changed files with 212 additions and 0 deletions
28
build.zig
28
build.zig
|
|
@ -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"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue