authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-07-11 18:45:41+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-07-11 21:31:27+02:00
logf4ed35f800396f12c7cd6aa1f70cf2555ddf7c84
tree2918fe146c4dc6a103b1e4b937faaae133af23c9
parent61eff7b6ddbe67f519169a5625cab8d0e7e41016

test: disable non-native loongarch64 behavior and std tests

https://github.com/ziglang/zig/issues/24405

1 files changed, 9 insertions(+), 4 deletions(-)

test/tests.zig+9-4
...@@ -438,7 +438,7 @@ const test_targets = blk: {...@@ -438,7 +438,7 @@ const test_targets = blk: {
438 .os_tag = .linux,438 .os_tag = .linux,
439 .abi = .none,439 .abi = .none,
440 },440 },
441 // https://github.com/ziglang/zig/issues/23696441 // https://github.com/ziglang/zig/issues/21646
442 .skip_modules = &.{"std"},442 .skip_modules = &.{"std"},
443 },443 },
444 .{444 .{
...@@ -448,7 +448,7 @@ const test_targets = blk: {...@@ -448,7 +448,7 @@ const test_targets = blk: {
448 .abi = .musl,448 .abi = .musl,
449 },449 },
450 .link_libc = true,450 .link_libc = true,
451 // https://github.com/ziglang/zig/issues/23696451 // https://github.com/ziglang/zig/issues/21646
452 .skip_modules = &.{"std"},452 .skip_modules = &.{"std"},
453 },453 },
454 .{454 .{
...@@ -459,7 +459,7 @@ const test_targets = blk: {...@@ -459,7 +459,7 @@ const test_targets = blk: {
459 },459 },
460 .linkage = .dynamic,460 .linkage = .dynamic,
461 .link_libc = true,461 .link_libc = true,
462 // https://github.com/ziglang/zig/issues/23696462 // https://github.com/ziglang/zig/issues/21646
463 .skip_modules = &.{"std"},463 .skip_modules = &.{"std"},
464 .extra_target = true,464 .extra_target = true,
465 },465 },
...@@ -470,7 +470,7 @@ const test_targets = blk: {...@@ -470,7 +470,7 @@ const test_targets = blk: {
470 .abi = .gnu,470 .abi = .gnu,
471 },471 },
472 .link_libc = true,472 .link_libc = true,
473 // https://github.com/ziglang/zig/issues/23696473 // https://github.com/ziglang/zig/issues/21646
474 .skip_modules = &.{"std"},474 .skip_modules = &.{"std"},
475 },475 },
476476
...@@ -2369,6 +2369,11 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {...@@ -2369,6 +2369,11 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
2369 if (options.skip_single_threaded and test_target.single_threaded == true)2369 if (options.skip_single_threaded and test_target.single_threaded == true)
2370 continue;2370 continue;
23712371
2372 // https://github.com/ziglang/zig/issues/24405
2373 if (!builtin.cpu.arch.isLoongArch() and target.cpu.arch.isLoongArch() and
2374 (mem.eql(u8, options.name, "behavior") or mem.eql(u8, options.name, "std")))
2375 continue;
2376
2372 // TODO get compiler-rt tests passing for self-hosted backends.2377 // TODO get compiler-rt tests passing for self-hosted backends.
2373 if ((target.cpu.arch != .x86_64 or target.ofmt != .elf) and2378 if ((target.cpu.arch != .x86_64 or target.ofmt != .elf) and
2374 test_target.use_llvm == false and mem.eql(u8, options.name, "compiler-rt"))2379 test_target.use_llvm == false and mem.eql(u8, options.name, "compiler-rt"))