update build.zig

This commit is contained in:
2026-02-13 19:50:39 -03:00
parent 367be10e16
commit c18d4b3946

View File

@@ -376,6 +376,7 @@ pub fn build(b: *std.Build) void {
b.installArtifact(multi_peer_test); b.installArtifact(multi_peer_test);
const run_multi_peer_test = b.addRunArtifact(multi_peer_test); const run_multi_peer_test = b.addRunArtifact(multi_peer_test);
run_multi_peer_test.setCwd(b.path("."));
run_multi_peer_test.step.dependOn(b.getInstallStep()); run_multi_peer_test.step.dependOn(b.getInstallStep());
const run_multi_peer_test_step = b.step("run-multi-peer-test", "Run multi-peer download test (1GB from 10 peers)"); const run_multi_peer_test_step = b.step("run-multi-peer-test", "Run multi-peer download test (1GB from 10 peers)");
run_multi_peer_test_step.dependOn(&run_multi_peer_test.step); run_multi_peer_test_step.dependOn(&run_multi_peer_test.step);
@@ -397,6 +398,7 @@ pub fn build(b: *std.Build) void {
b.installArtifact(multi_file_swarm_test); b.installArtifact(multi_file_swarm_test);
const run_multi_file_swarm = b.addRunArtifact(multi_file_swarm_test); const run_multi_file_swarm = b.addRunArtifact(multi_file_swarm_test);
run_multi_file_swarm.setCwd(b.path("."));
run_multi_file_swarm.step.dependOn(b.getInstallStep()); run_multi_file_swarm.step.dependOn(b.getInstallStep());
const run_multi_file_swarm_step = b.step("run-swarm-test", "Run multi-file swarm test (9 peers, 2 files)"); const run_multi_file_swarm_step = b.step("run-swarm-test", "Run multi-file swarm test (9 peers, 2 files)");
run_multi_file_swarm_step.dependOn(&run_multi_file_swarm.step); run_multi_file_swarm_step.dependOn(&run_multi_file_swarm.step);
@@ -418,6 +420,7 @@ pub fn build(b: *std.Build) void {
b.installArtifact(swarm_chaos_test); b.installArtifact(swarm_chaos_test);
const run_swarm_chaos = b.addRunArtifact(swarm_chaos_test); const run_swarm_chaos = b.addRunArtifact(swarm_chaos_test);
run_swarm_chaos.setCwd(b.path("."));
run_swarm_chaos.step.dependOn(b.getInstallStep()); run_swarm_chaos.step.dependOn(b.getInstallStep());
const run_swarm_chaos_step = b.step("run-chaos-test", "Run swarm chaos test (seeder failure, cascading, late joiners)"); const run_swarm_chaos_step = b.step("run-chaos-test", "Run swarm chaos test (seeder failure, cascading, late joiners)");
run_swarm_chaos_step.dependOn(&run_swarm_chaos.step); run_swarm_chaos_step.dependOn(&run_swarm_chaos.step);