authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-28 21:31:40+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-09-10 08:53:30+02:00
loga872b6102167f8588704877f8143d58f3386b78c
treeebfe60ef9fa09966a4d912b72e9d93fe3cd16a96
parent26119bd98d2f867eb06eeea9431883931d806dd5
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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 files changed, 91 insertions(+), 4 deletions(-)

test/tests.zig+91-4
......@@ -292,10 +292,23 @@ const test_targets = blk: {
292292
293293 .{
294294 .target = std.Target.Query.parse(.{
295 .arch_os_abi = "arm-linux-none",
295 .arch_os_abi = "arm-linux-eabi",
296296 .cpu_features = "generic+v8a",
297297 }) catch unreachable,
298298 },
299 .{
300 .target = std.Target.Query.parse(.{
301 .arch_os_abi = "arm-linux-eabihf",
302 .cpu_features = "generic+v8a",
303 }) catch unreachable,
304 },
305 .{
306 .target = std.Target.Query.parse(.{
307 .arch_os_abi = "arm-linux-musleabi",
308 .cpu_features = "generic+v8a",
309 }) catch unreachable,
310 .link_libc = true,
311 },
299312 .{
300313 .target = std.Target.Query.parse(.{
301314 .arch_os_abi = "arm-linux-musleabihf",
......@@ -303,6 +316,13 @@ const test_targets = blk: {
303316 }) catch unreachable,
304317 .link_libc = true,
305318 },
319 .{
320 .target = std.Target.Query.parse(.{
321 .arch_os_abi = "arm-linux-gnueabi",
322 .cpu_features = "generic+v8a",
323 }) catch unreachable,
324 .link_libc = true,
325 },
306326 .{
307327 .target = std.Target.Query.parse(.{
308328 .arch_os_abi = "arm-linux-gnueabihf",
......@@ -315,8 +335,25 @@ const test_targets = blk: {
315335 .target = .{
316336 .cpu_arch = .mips,
317337 .os_tag = .linux,
318 .abi = .none,
338 .abi = .eabi,
339 },
340 .slow_backend = true,
341 },
342 .{
343 .target = .{
344 .cpu_arch = .mips,
345 .os_tag = .linux,
346 .abi = .eabihf,
347 },
348 .slow_backend = true,
349 },
350 .{
351 .target = .{
352 .cpu_arch = .mips,
353 .os_tag = .linux,
354 .abi = .musleabi,
319355 },
356 .link_libc = true,
320357 .slow_backend = true,
321358 },
322359 .{
......@@ -328,6 +365,15 @@ const test_targets = blk: {
328365 .link_libc = true,
329366 .slow_backend = true,
330367 },
368 .{
369 .target = .{
370 .cpu_arch = .mips,
371 .os_tag = .linux,
372 .abi = .gnueabi,
373 },
374 .link_libc = true,
375 .slow_backend = true,
376 },
331377 .{
332378 .target = .{
333379 .cpu_arch = .mips,
......@@ -342,8 +388,25 @@ const test_targets = blk: {
342388 .target = .{
343389 .cpu_arch = .mipsel,
344390 .os_tag = .linux,
345 .abi = .none,
391 .abi = .eabi,
392 },
393 .slow_backend = true,
394 },
395 .{
396 .target = .{
397 .cpu_arch = .mipsel,
398 .os_tag = .linux,
399 .abi = .eabihf,
400 },
401 .slow_backend = true,
402 },
403 .{
404 .target = .{
405 .cpu_arch = .mipsel,
406 .os_tag = .linux,
407 .abi = .musleabi,
346408 },
409 .link_libc = true,
347410 .slow_backend = true,
348411 },
349412 .{
......@@ -355,6 +418,15 @@ const test_targets = blk: {
355418 .link_libc = true,
356419 .slow_backend = true,
357420 },
421 .{
422 .target = .{
423 .cpu_arch = .mipsel,
424 .os_tag = .linux,
425 .abi = .gnueabi,
426 },
427 .link_libc = true,
428 .slow_backend = true,
429 },
358430 .{
359431 .target = .{
360432 .cpu_arch = .mipsel,
......@@ -417,9 +489,24 @@ const test_targets = blk: {
417489 .target = .{
418490 .cpu_arch = .powerpc,
419491 .os_tag = .linux,
420 .abi = .none,
492 .abi = .eabi,
421493 },
422494 },
495 .{
496 .target = .{
497 .cpu_arch = .powerpc,
498 .os_tag = .linux,
499 .abi = .eabihf,
500 },
501 },
502 .{
503 .target = .{
504 .cpu_arch = .powerpc,
505 .os_tag = .linux,
506 .abi = .musleabi,
507 },
508 .link_libc = true,
509 },
423510 .{
424511 .target = .{
425512 .cpu_arch = .powerpc,