From c9ee69712abe8eb86b6dbe1d76c7b9bb8d155a9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Thu, 29 May 2025 15:43:16 +0200 Subject: [PATCH] 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. --- test/tests.zig | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/test/tests.zig b/test/tests.zig index 05af2a82dd..4465c13612 100644 --- 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 .{