Commit a872b61021

Alex Rønne Petersen <alex@alexrp.com>
2024-08-28 21:31:40
test: Add arm, mips, and powerpc soft float targets to module tests.
Prefer `eabi` and `eabihf` over the ambiguous `none` when not using libc.
1 parent 26119bd
Changed files (1)
test/tests.zig
@@ -292,10 +292,23 @@ const test_targets = blk: {
 
         .{
             .target = std.Target.Query.parse(.{
-                .arch_os_abi = "arm-linux-none",
+                .arch_os_abi = "arm-linux-eabi",
                 .cpu_features = "generic+v8a",
             }) catch unreachable,
         },
+        .{
+            .target = std.Target.Query.parse(.{
+                .arch_os_abi = "arm-linux-eabihf",
+                .cpu_features = "generic+v8a",
+            }) catch unreachable,
+        },
+        .{
+            .target = std.Target.Query.parse(.{
+                .arch_os_abi = "arm-linux-musleabi",
+                .cpu_features = "generic+v8a",
+            }) catch unreachable,
+            .link_libc = true,
+        },
         .{
             .target = std.Target.Query.parse(.{
                 .arch_os_abi = "arm-linux-musleabihf",
@@ -303,6 +316,13 @@ const test_targets = blk: {
             }) catch unreachable,
             .link_libc = true,
         },
+        .{
+            .target = std.Target.Query.parse(.{
+                .arch_os_abi = "arm-linux-gnueabi",
+                .cpu_features = "generic+v8a",
+            }) catch unreachable,
+            .link_libc = true,
+        },
         .{
             .target = std.Target.Query.parse(.{
                 .arch_os_abi = "arm-linux-gnueabihf",
@@ -315,8 +335,25 @@ const test_targets = blk: {
             .target = .{
                 .cpu_arch = .mips,
                 .os_tag = .linux,
-                .abi = .none,
+                .abi = .eabi,
+            },
+            .slow_backend = true,
+        },
+        .{
+            .target = .{
+                .cpu_arch = .mips,
+                .os_tag = .linux,
+                .abi = .eabihf,
+            },
+            .slow_backend = true,
+        },
+        .{
+            .target = .{
+                .cpu_arch = .mips,
+                .os_tag = .linux,
+                .abi = .musleabi,
             },
+            .link_libc = true,
             .slow_backend = true,
         },
         .{
@@ -328,6 +365,15 @@ const test_targets = blk: {
             .link_libc = true,
             .slow_backend = true,
         },
+        .{
+            .target = .{
+                .cpu_arch = .mips,
+                .os_tag = .linux,
+                .abi = .gnueabi,
+            },
+            .link_libc = true,
+            .slow_backend = true,
+        },
         .{
             .target = .{
                 .cpu_arch = .mips,
@@ -342,8 +388,25 @@ const test_targets = blk: {
             .target = .{
                 .cpu_arch = .mipsel,
                 .os_tag = .linux,
-                .abi = .none,
+                .abi = .eabi,
+            },
+            .slow_backend = true,
+        },
+        .{
+            .target = .{
+                .cpu_arch = .mipsel,
+                .os_tag = .linux,
+                .abi = .eabihf,
+            },
+            .slow_backend = true,
+        },
+        .{
+            .target = .{
+                .cpu_arch = .mipsel,
+                .os_tag = .linux,
+                .abi = .musleabi,
             },
+            .link_libc = true,
             .slow_backend = true,
         },
         .{
@@ -355,6 +418,15 @@ const test_targets = blk: {
             .link_libc = true,
             .slow_backend = true,
         },
+        .{
+            .target = .{
+                .cpu_arch = .mipsel,
+                .os_tag = .linux,
+                .abi = .gnueabi,
+            },
+            .link_libc = true,
+            .slow_backend = true,
+        },
         .{
             .target = .{
                 .cpu_arch = .mipsel,
@@ -417,9 +489,24 @@ const test_targets = blk: {
             .target = .{
                 .cpu_arch = .powerpc,
                 .os_tag = .linux,
-                .abi = .none,
+                .abi = .eabi,
             },
         },
+        .{
+            .target = .{
+                .cpu_arch = .powerpc,
+                .os_tag = .linux,
+                .abi = .eabihf,
+            },
+        },
+        .{
+            .target = .{
+                .cpu_arch = .powerpc,
+                .os_tag = .linux,
+                .abi = .musleabi,
+            },
+            .link_libc = true,
+        },
         .{
             .target = .{
                 .cpu_arch = .powerpc,