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
signature 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: {...@@ -292,10 +292,23 @@ const test_targets = blk: {
292292
293 .{293 .{
294 .target = std.Target.Query.parse(.{294 .target = std.Target.Query.parse(.{
295 .arch_os_abi = "arm-linux-none",295 .arch_os_abi = "arm-linux-eabi",
296 .cpu_features = "generic+v8a",296 .cpu_features = "generic+v8a",
297 }) catch unreachable,297 }) catch unreachable,
298 },298 },
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 },
299 .{312 .{
300 .target = std.Target.Query.parse(.{313 .target = std.Target.Query.parse(.{
301 .arch_os_abi = "arm-linux-musleabihf",314 .arch_os_abi = "arm-linux-musleabihf",
...@@ -303,6 +316,13 @@ const test_targets = blk: {...@@ -303,6 +316,13 @@ const test_targets = blk: {
303 }) catch unreachable,316 }) catch unreachable,
304 .link_libc = true,317 .link_libc = true,
305 },318 },
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 },
306 .{326 .{
307 .target = std.Target.Query.parse(.{327 .target = std.Target.Query.parse(.{
308 .arch_os_abi = "arm-linux-gnueabihf",328 .arch_os_abi = "arm-linux-gnueabihf",
...@@ -315,8 +335,25 @@ const test_targets = blk: {...@@ -315,8 +335,25 @@ const test_targets = blk: {
315 .target = .{335 .target = .{
316 .cpu_arch = .mips,336 .cpu_arch = .mips,
317 .os_tag = .linux,337 .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,
319 },355 },
356 .link_libc = true,
320 .slow_backend = true,357 .slow_backend = true,
321 },358 },
322 .{359 .{
...@@ -328,6 +365,15 @@ const test_targets = blk: {...@@ -328,6 +365,15 @@ const test_targets = blk: {
328 .link_libc = true,365 .link_libc = true,
329 .slow_backend = true,366 .slow_backend = true,
330 },367 },
368 .{
369 .target = .{
370 .cpu_arch = .mips,
371 .os_tag = .linux,
372 .abi = .gnueabi,
373 },
374 .link_libc = true,
375 .slow_backend = true,
376 },
331 .{377 .{
332 .target = .{378 .target = .{
333 .cpu_arch = .mips,379 .cpu_arch = .mips,
...@@ -342,8 +388,25 @@ const test_targets = blk: {...@@ -342,8 +388,25 @@ const test_targets = blk: {
342 .target = .{388 .target = .{
343 .cpu_arch = .mipsel,389 .cpu_arch = .mipsel,
344 .os_tag = .linux,390 .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,
346 },408 },
409 .link_libc = true,
347 .slow_backend = true,410 .slow_backend = true,
348 },411 },
349 .{412 .{
...@@ -355,6 +418,15 @@ const test_targets = blk: {...@@ -355,6 +418,15 @@ const test_targets = blk: {
355 .link_libc = true,418 .link_libc = true,
356 .slow_backend = true,419 .slow_backend = true,
357 },420 },
421 .{
422 .target = .{
423 .cpu_arch = .mipsel,
424 .os_tag = .linux,
425 .abi = .gnueabi,
426 },
427 .link_libc = true,
428 .slow_backend = true,
429 },
358 .{430 .{
359 .target = .{431 .target = .{
360 .cpu_arch = .mipsel,432 .cpu_arch = .mipsel,
...@@ -417,9 +489,24 @@ const test_targets = blk: {...@@ -417,9 +489,24 @@ const test_targets = blk: {
417 .target = .{489 .target = .{
418 .cpu_arch = .powerpc,490 .cpu_arch = .powerpc,
419 .os_tag = .linux,491 .os_tag = .linux,
420 .abi = .none,492 .abi = .eabi,
421 },493 },
422 },494 },
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 },
423 .{510 .{
424 .target = .{511 .target = .{
425 .cpu_arch = .powerpc,512 .cpu_arch = .powerpc,