fix protocol+tests: replay protection rework, wire envelope nonce auth,
flaky e2e test deadlines, build imports
This commit is contained in:
34
build.zig
34
build.zig
@@ -833,6 +833,23 @@ pub fn build(b: *std.Build) void {
|
||||
const test_e2e_step = b.step("test-e2e", "Run E2E file transfer tests");
|
||||
test_e2e_step.dependOn(&run_test_e2e.step);
|
||||
|
||||
// Test Real E2E (peer connection, messaging, lifecycle)
|
||||
const test_real_e2e_module = b.createModule(.{
|
||||
.root_source_file = b.path("tests/integration/test_real_e2e.zig"),
|
||||
.target = target,
|
||||
.optimize = .Debug,
|
||||
});
|
||||
test_real_e2e_module.addImport("core", core_module);
|
||||
test_real_e2e_module.addImport("network", network_module);
|
||||
test_real_e2e_module.addImport("p2p", p2p_module);
|
||||
|
||||
const test_real_e2e = b.addTest(.{
|
||||
.root_module = test_real_e2e_module,
|
||||
});
|
||||
const run_test_real_e2e = b.addRunArtifact(test_real_e2e);
|
||||
const test_real_e2e_step = b.step("test-real-e2e", "Run real E2E integration tests");
|
||||
test_real_e2e_step.dependOn(&run_test_real_e2e.step);
|
||||
|
||||
// Test Noise Protocol Encrypted Connections
|
||||
const test_noise_connection_module = b.createModule(.{
|
||||
.root_source_file = b.path("tests/integration/test_noise_connection.zig"),
|
||||
@@ -900,6 +917,21 @@ pub fn build(b: *std.Build) void {
|
||||
const test_replay_protection_step = b.step("test-replay-protection", "Run replay protection comprehensive tests");
|
||||
test_replay_protection_step.dependOn(&run_test_replay_protection.step);
|
||||
|
||||
// Test Replay Integration
|
||||
const test_replay_integration_module = b.createModule(.{
|
||||
.root_source_file = b.path("tests/protocol/test_replay_integration.zig"),
|
||||
.target = target,
|
||||
.optimize = .Debug,
|
||||
});
|
||||
test_replay_integration_module.addImport("protocol", protocol_module);
|
||||
|
||||
const test_replay_integration = b.addTest(.{
|
||||
.root_module = test_replay_integration_module,
|
||||
});
|
||||
const run_test_replay_integration = b.addRunArtifact(test_replay_integration);
|
||||
const test_replay_integration_step = b.step("test-replay-integration", "Run replay protection integration tests");
|
||||
test_replay_integration_step.dependOn(&run_test_replay_integration.step);
|
||||
|
||||
// Test Transfer Protocol
|
||||
const test_transfer_protocol_module = b.createModule(.{
|
||||
.root_source_file = b.path("tests/files/test_transfer_protocol.zig"),
|
||||
@@ -1927,6 +1959,7 @@ pub fn build(b: *std.Build) void {
|
||||
test_all_integration_step.dependOn(test_secure_connection_step);
|
||||
test_all_integration_step.dependOn(test_nat_step);
|
||||
test_all_integration_step.dependOn(test_replay_protection_step);
|
||||
test_all_integration_step.dependOn(test_replay_integration_step);
|
||||
test_all_integration_step.dependOn(test_transfer_protocol_step);
|
||||
test_all_integration_step.dependOn(test_upload_step);
|
||||
test_all_integration_step.dependOn(test_manager_step);
|
||||
@@ -1943,6 +1976,7 @@ pub fn build(b: *std.Build) void {
|
||||
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);
|
||||
test_all_integration_step.dependOn(test_real_e2e_step);
|
||||
|
||||
// ============================================================
|
||||
// Main Test Target
|
||||
|
||||
Reference in New Issue
Block a user