authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-24 04:36:24+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-12-13 03:13:14+01:00
logfdc0ed92ce839f7532bff94d9c8127b07e8161d0
treec32af996d029b0909a6b4841bda22980adcf4ea5
parentdf27298aeffa0621f9b899b1a1855098bd8f550f
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

test: Add thumbeb-linux-* to the module test matrix.


1 files changed, 66 insertions(+), 2 deletions(-)

test/tests.zig+66-2
......@@ -440,7 +440,7 @@ const test_targets = blk: {
440440 .target = std.Target.Query.parse(.{
441441 .arch_os_abi = "thumb-linux-musleabi",
442442 .cpu_features = "baseline+long_calls",
443 }) catch @panic("OOM"),
443 }) catch unreachable,
444444 .link_libc = true,
445445 .pic = false, // Long calls don't work with PIC.
446446 .skip_modules = &.{
......@@ -454,7 +454,71 @@ const test_targets = blk: {
454454 .target = std.Target.Query.parse(.{
455455 .arch_os_abi = "thumb-linux-musleabihf",
456456 .cpu_features = "baseline+long_calls",
457 }) catch @panic("OOM"),
457 }) catch unreachable,
458 .link_libc = true,
459 .pic = false, // Long calls don't work with PIC.
460 .skip_modules = &.{
461 "behavior",
462 "c-import",
463 "compiler-rt",
464 "universal-libc",
465 },
466 },
467
468 .{
469 .target = .{
470 .cpu_arch = .thumbeb,
471 .os_tag = .linux,
472 .abi = .eabi,
473 },
474 },
475 .{
476 .target = .{
477 .cpu_arch = .thumbeb,
478 .os_tag = .linux,
479 .abi = .eabihf,
480 },
481 },
482 .{
483 .target = .{
484 .cpu_arch = .thumbeb,
485 .os_tag = .linux,
486 .abi = .musleabi,
487 },
488 .link_libc = true,
489 .skip_modules = &.{"std"},
490 },
491 .{
492 .target = .{
493 .cpu_arch = .thumbeb,
494 .os_tag = .linux,
495 .abi = .musleabihf,
496 },
497 .link_libc = true,
498 .skip_modules = &.{"std"},
499 },
500 // Calls are normally lowered to branch instructions that only support +/- 16 MB range when
501 // targeting Thumb. This is not sufficient for the std test binary linked statically with
502 // musl, so use long calls to avoid out-of-range relocations.
503 .{
504 .target = std.Target.Query.parse(.{
505 .arch_os_abi = "thumbeb-linux-musleabi",
506 .cpu_features = "baseline+long_calls",
507 }) catch unreachable,
508 .link_libc = true,
509 .pic = false, // Long calls don't work with PIC.
510 .skip_modules = &.{
511 "behavior",
512 "c-import",
513 "compiler-rt",
514 "universal-libc",
515 },
516 },
517 .{
518 .target = std.Target.Query.parse(.{
519 .arch_os_abi = "thumbeb-linux-musleabihf",
520 .cpu_features = "baseline+long_calls",
521 }) catch unreachable,
458522 .link_libc = true,
459523 .pic = false, // Long calls don't work with PIC.
460524 .skip_modules = &.{