bidirectional ip reflection for listener address discovery
This commit is contained in:
16
build.zig
16
build.zig
@@ -1278,6 +1278,22 @@ pub fn build(b: *std.Build) void {
|
||||
const test_serializer_extended_step = b.step("test-serializer", "Run serializer extended tests");
|
||||
test_serializer_extended_step.dependOn(&run_test_serializer_extended.step);
|
||||
|
||||
// Test IP Reflection (Bundled STUN) variable-length encoding
|
||||
const test_ip_reflection_module = b.createModule(.{
|
||||
.root_source_file = b.path("tests/protocol/test_ip_reflection.zig"),
|
||||
.target = target,
|
||||
.optimize = .Debug,
|
||||
});
|
||||
test_ip_reflection_module.addImport("protocol", protocol_module);
|
||||
test_ip_reflection_module.addImport("p2p", p2p_module);
|
||||
|
||||
const test_ip_reflection = b.addTest(.{
|
||||
.root_module = test_ip_reflection_module,
|
||||
});
|
||||
const run_test_ip_reflection = b.addRunArtifact(test_ip_reflection);
|
||||
const test_ip_reflection_step = b.step("test-ip-reflection", "Run IP Reflection variable-length encoding tests");
|
||||
test_ip_reflection_step.dependOn(&run_test_ip_reflection.step);
|
||||
|
||||
// Test Discovery Extended
|
||||
const test_discovery_extended_module = b.createModule(.{
|
||||
.root_source_file = b.path("tests/network/test_discovery_extended.zig"),
|
||||
|
||||
Reference in New Issue
Block a user