zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit c9ee69712abe8eb86b6dbe1d76c7b9bb8d155a9b (tree)
parent fb3a9fc18e5b7ba3cbd0da938fa7075bd6217e88
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Thu, 29 May 2025 15:43:16 +0200

test: Add FreeBSD targets to module test matrix.

std tests are temporarily disabled for arm-freebsd-eabihf due to #23949.

I omitted x86-freebsd-none and powerpc-freebsd-none because these will be
dropped in FreeBSD 15.0 anyway, so there's no point in us spending resources on
those now.

Diffstat:
Mtest/tests.zig | 94+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 94 insertions(+), 0 deletions(-)

diff --git a/test/tests.zig b/test/tests.zig @@ -98,6 +98,100 @@ const test_targets = blk: { .link_libc = true, }, + // FreeBSD Targets + + .{ + .target = .{ + .cpu_arch = .aarch64, + .os_tag = .freebsd, + // Remove this when we bump our baseline to 14.0.0. + .os_version_min = .{ .semver = .{ + .major = 14, + .minor = 0, + .patch = 0, + } }, + .abi = .none, + }, + .link_libc = true, + }, + + .{ + .target = .{ + .cpu_arch = .arm, + .os_tag = .freebsd, + // Remove this when we bump our baseline to 14.0.0. + .os_version_min = .{ .semver = .{ + .major = 14, + .minor = 0, + .patch = 0, + } }, + .abi = .eabihf, + }, + .link_libc = true, + // https://github.com/ziglang/zig/issues/23949 + .skip_modules = &.{"std"}, + }, + + .{ + .target = .{ + .cpu_arch = .powerpc64, + .os_tag = .freebsd, + // Remove this when we bump our baseline to 14.0.0. + .os_version_min = .{ .semver = .{ + .major = 14, + .minor = 0, + .patch = 0, + } }, + .abi = .none, + }, + .link_libc = true, + }, + + .{ + .target = .{ + .cpu_arch = .powerpc64le, + .os_tag = .freebsd, + // Remove this when we bump our baseline to 14.0.0. + .os_version_min = .{ .semver = .{ + .major = 14, + .minor = 0, + .patch = 0, + } }, + .abi = .none, + }, + .link_libc = true, + }, + + .{ + .target = .{ + .cpu_arch = .riscv64, + .os_tag = .freebsd, + // Remove this when we bump our baseline to 14.0.0. + .os_version_min = .{ .semver = .{ + .major = 14, + .minor = 0, + .patch = 0, + } }, + .abi = .none, + }, + .link_libc = true, + }, + + .{ + .target = .{ + .cpu_arch = .x86_64, + .os_tag = .freebsd, + // Remove this when we bump our baseline to 14.0.0. + .os_version_min = .{ .semver = .{ + .major = 14, + .minor = 0, + .patch = 0, + } }, + .abi = .none, + }, + .link_libc = true, + }, + // Linux Targets .{