fix MWP hole punch for production use. bind to 0.0.0.0 instead of
published IP, resend packets every 500ms instead of single-shot, fix Docker iptables-legacy chains so miniupnpd port mapping fully works without warnings
This commit is contained in:
21
build.zig
21
build.zig
@@ -1886,6 +1886,26 @@ pub fn build(b: *std.Build) void {
|
||||
const test_security_fixes_step = b.step("test-security-fixes", "Run security fixes tests");
|
||||
test_security_fixes_step.dependOn(&run_test_security_fixes.step);
|
||||
|
||||
// Test MWP Connection - MWP hole punch integration test with two P2P nodes
|
||||
const test_mwp_connection_module = b.createModule(.{
|
||||
.root_source_file = b.path("tests/integration/test_mwp_connection.zig"),
|
||||
.target = target,
|
||||
.optimize = .Debug,
|
||||
});
|
||||
test_mwp_connection_module.addImport("p2p", p2p_module);
|
||||
test_mwp_connection_module.addImport("core", core_module);
|
||||
test_mwp_connection_module.addImport("network", network_module);
|
||||
test_mwp_connection_module.addImport("mwp", mwp_module);
|
||||
test_mwp_connection_module.addImport("mwp_lib", mwp_lib_module);
|
||||
test_mwp_connection_module.addImport("helpers", test_helpers_module);
|
||||
|
||||
const test_mwp_connection = b.addTest(.{
|
||||
.root_module = test_mwp_connection_module,
|
||||
});
|
||||
const run_test_mwp_connection = b.addRunArtifact(test_mwp_connection);
|
||||
const test_mwp_step = b.step("test-mwp", "Run MWP hole punch integration test");
|
||||
test_mwp_step.dependOn(&run_test_mwp_connection.step);
|
||||
|
||||
// All integration tests step
|
||||
const test_all_integration_step = b.step("test-integration", "Run all integration tests");
|
||||
test_all_integration_step.dependOn(test_network_manager_step);
|
||||
@@ -1921,6 +1941,7 @@ pub fn build(b: *std.Build) void {
|
||||
test_all_integration_step.dependOn(test_verification_pool_step);
|
||||
test_all_integration_step.dependOn(test_piece_pipeline_step);
|
||||
test_all_integration_step.dependOn(test_real_file_io_step);
|
||||
test_all_integration_step.dependOn(test_mwp_step);
|
||||
|
||||
// ============================================================
|
||||
// Main Test Target
|
||||
|
||||
Reference in New Issue
Block a user