| ... | @@ -416,7 +416,7 @@ pub fn build(b: *std.Build) !void { | ... | @@ -416,7 +416,7 @@ pub fn build(b: *std.Build) !void { |
| 416 | chosen_opt_modes_buf[chosen_mode_index] = builtin.OptimizeMode.ReleaseSmall; | 416 | chosen_opt_modes_buf[chosen_mode_index] = builtin.OptimizeMode.ReleaseSmall; |
| 417 | chosen_mode_index += 1; | 417 | chosen_mode_index += 1; |
| 418 | } | 418 | } |
| 419 | const optimization_modes = chosen_opt_modes_buf[0..chosen_mode_index]; | 419 | const optimize_modes = chosen_opt_modes_buf[0..chosen_mode_index]; |
| 420 | | 420 | |
| 421 | const test_only: ?tests.ModuleTestOptions.TestOnly = if (no_matrix) | 421 | const test_only: ?tests.ModuleTestOptions.TestOnly = if (no_matrix) |
| 422 | .default | 422 | .default |
| ... | @@ -476,7 +476,7 @@ pub fn build(b: *std.Build) !void { | ... | @@ -476,7 +476,7 @@ pub fn build(b: *std.Build) !void { |
| 476 | .root_src = "test/behavior.zig", | 476 | .root_src = "test/behavior.zig", |
| 477 | .name = "behavior", | 477 | .name = "behavior", |
| 478 | .desc = "Run the behavior tests", | 478 | .desc = "Run the behavior tests", |
| 479 | .optimize_modes = optimization_modes, | 479 | .optimize_modes = optimize_modes, |
| 480 | .include_paths = &.{}, | 480 | .include_paths = &.{}, |
| 481 | .sanitize_thread = sanitize_thread, | 481 | .sanitize_thread = sanitize_thread, |
| 482 | .skip_single_threaded = skip_single_threaded, | 482 | .skip_single_threaded = skip_single_threaded, |
| ... | @@ -502,7 +502,7 @@ pub fn build(b: *std.Build) !void { | ... | @@ -502,7 +502,7 @@ pub fn build(b: *std.Build) !void { |
| 502 | .root_src = "lib/compiler_rt.zig", | 502 | .root_src = "lib/compiler_rt.zig", |
| 503 | .name = "compiler-rt", | 503 | .name = "compiler-rt", |
| 504 | .desc = "Run the compiler_rt tests", | 504 | .desc = "Run the compiler_rt tests", |
| 505 | .optimize_modes = optimization_modes, | 505 | .optimize_modes = optimize_modes, |
| 506 | .include_paths = &.{}, | 506 | .include_paths = &.{}, |
| 507 | .sanitize_thread = sanitize_thread, | 507 | .sanitize_thread = sanitize_thread, |
| 508 | .skip_single_threaded = true, | 508 | .skip_single_threaded = true, |
| ... | @@ -529,7 +529,7 @@ pub fn build(b: *std.Build) !void { | ... | @@ -529,7 +529,7 @@ pub fn build(b: *std.Build) !void { |
| 529 | .root_src = "lib/std/std.zig", | 529 | .root_src = "lib/std/std.zig", |
| 530 | .name = "std", | 530 | .name = "std", |
| 531 | .desc = "Run the standard library tests", | 531 | .desc = "Run the standard library tests", |
| 532 | .optimize_modes = optimization_modes, | 532 | .optimize_modes = optimize_modes, |
| 533 | .include_paths = &.{}, | 533 | .include_paths = &.{}, |
| 534 | .sanitize_thread = sanitize_thread, | 534 | .sanitize_thread = sanitize_thread, |
| 535 | .skip_single_threaded = skip_single_threaded, | 535 | .skip_single_threaded = skip_single_threaded, |
| ... | @@ -555,7 +555,7 @@ pub fn build(b: *std.Build) !void { | ... | @@ -555,7 +555,7 @@ pub fn build(b: *std.Build) !void { |
| 555 | .root_src = "test/c.zig", | 555 | .root_src = "test/c.zig", |
| 556 | .name = "libc", | 556 | .name = "libc", |
| 557 | .desc = "Run the libc API tests", | 557 | .desc = "Run the libc API tests", |
| 558 | .optimize_modes = optimization_modes, | 558 | .optimize_modes = optimize_modes, |
| 559 | .include_paths = &.{}, | 559 | .include_paths = &.{}, |
| 560 | .sanitize_thread = sanitize_thread, | 560 | .sanitize_thread = sanitize_thread, |
| 561 | .skip_single_threaded = true, | 561 | .skip_single_threaded = true, |
| ... | @@ -599,13 +599,14 @@ pub fn build(b: *std.Build) !void { | ... | @@ -599,13 +599,14 @@ pub fn build(b: *std.Build) !void { |
| 599 | | 599 | |
| 600 | test_step.dependOn(tests.addStandaloneTests( | 600 | test_step.dependOn(tests.addStandaloneTests( |
| 601 | b, | 601 | b, |
| 602 | optimization_modes, | 602 | optimize_modes, |
| 603 | enable_macos_sdk, | 603 | enable_macos_sdk, |
| 604 | enable_ios_sdk, | 604 | enable_ios_sdk, |
| 605 | enable_symlinks_windows, | 605 | enable_symlinks_windows, |
| 606 | )); | 606 | )); |
| 607 | test_step.dependOn(tests.addCAbiTests(b, .{ | 607 | test_step.dependOn(tests.addCAbiTests(b, .{ |
| 608 | .test_target_filters = test_target_filters, | 608 | .test_target_filters = test_target_filters, |
| | 609 | .optimize_modes = optimize_modes, |
| 609 | .skip_non_native = skip_non_native, | 610 | .skip_non_native = skip_non_native, |
| 610 | .skip_wasm = skip_wasm, | 611 | .skip_wasm = skip_wasm, |
| 611 | .skip_freebsd = skip_freebsd, | 612 | .skip_freebsd = skip_freebsd, |
| ... | @@ -615,19 +616,18 @@ pub fn build(b: *std.Build) !void { | ... | @@ -615,19 +616,18 @@ pub fn build(b: *std.Build) !void { |
| 615 | .skip_darwin = skip_darwin, | 616 | .skip_darwin = skip_darwin, |
| 616 | .skip_linux = skip_linux, | 617 | .skip_linux = skip_linux, |
| 617 | .skip_llvm = skip_llvm, | 618 | .skip_llvm = skip_llvm, |
| 618 | .skip_release = skip_release, | | |
| 619 | .max_rss = 3_300_000_000, | 619 | .max_rss = 3_300_000_000, |
| 620 | })); | 620 | })); |
| 621 | test_step.dependOn(tests.addLinkTests(b, enable_macos_sdk, enable_ios_sdk, enable_symlinks_windows)); | 621 | test_step.dependOn(tests.addLinkTests(b, enable_macos_sdk, enable_ios_sdk, enable_symlinks_windows)); |
| 622 | test_step.dependOn(tests.addStackTraceTests(b, test_filters, skip_non_native)); | 622 | test_step.dependOn(tests.addStackTraceTests(b, test_filters, skip_non_native)); |
| 623 | test_step.dependOn(tests.addErrorTraceTests(b, test_filters, optimization_modes, skip_non_native)); | 623 | test_step.dependOn(tests.addErrorTraceTests(b, test_filters, optimize_modes, skip_non_native)); |
| 624 | test_step.dependOn(tests.addCliTests(b)); | 624 | test_step.dependOn(tests.addCliTests(b)); |
| 625 | if (tests.addDebuggerTests(b, .{ | 625 | if (tests.addDebuggerTests(b, .{ |
| 626 | .test_filters = test_filters, | 626 | .test_filters = test_filters, |
| 627 | .test_target_filters = test_target_filters, | 627 | .test_target_filters = test_target_filters, |
| 628 | .gdb = b.option([]const u8, "gdb", "path to gdb binary"), | 628 | .gdb = b.option([]const u8, "gdb", "path to gdb binary"), |
| 629 | .lldb = b.option([]const u8, "lldb", "path to lldb binary"), | 629 | .lldb = b.option([]const u8, "lldb", "path to lldb binary"), |
| 630 | .optimize_modes = optimization_modes, | 630 | .optimize_modes = optimize_modes, |
| 631 | .skip_single_threaded = skip_single_threaded, | 631 | .skip_single_threaded = skip_single_threaded, |
| 632 | .skip_libc = skip_libc, | 632 | .skip_libc = skip_libc, |
| 633 | })) |test_debugger_step| test_step.dependOn(test_debugger_step); | 633 | })) |test_debugger_step| test_step.dependOn(test_debugger_step); |
| ... | @@ -663,7 +663,7 @@ pub fn build(b: *std.Build) !void { | ... | @@ -663,7 +663,7 @@ pub fn build(b: *std.Build) !void { |
| 663 | if (!skip_test_incremental) test_step.dependOn(test_incremental_step); | 663 | if (!skip_test_incremental) test_step.dependOn(test_incremental_step); |
| 664 | | 664 | |
| 665 | if (tests.addLibcTestNszTests(b, .{ | 665 | if (tests.addLibcTestNszTests(b, .{ |
| 666 | .optimize_modes = optimization_modes, | 666 | .optimize_modes = optimize_modes, |
| 667 | .test_filters = test_filters, | 667 | .test_filters = test_filters, |
| 668 | .test_target_filters = test_target_filters, | 668 | .test_target_filters = test_target_filters, |
| 669 | .skip_wasm = skip_wasm, | 669 | .skip_wasm = skip_wasm, |