authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-05-29 15:43:16+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-05-29 16:48:28+02:00
logc9ee69712abe8eb86b6dbe1d76c7b9bb8d155a9b
tree90d49554e29aff3168e73fad1224e597eea254af
parentfb3a9fc18e5b7ba3cbd0da938fa7075bd6217e88
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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.

1 files changed, 94 insertions(+), 0 deletions(-)

test/tests.zig+94
......@@ -98,6 +98,100 @@ const test_targets = blk: {
9898 .link_libc = true,
9999 },
100100
101 // FreeBSD Targets
102
103 .{
104 .target = .{
105 .cpu_arch = .aarch64,
106 .os_tag = .freebsd,
107 // Remove this when we bump our baseline to 14.0.0.
108 .os_version_min = .{ .semver = .{
109 .major = 14,
110 .minor = 0,
111 .patch = 0,
112 } },
113 .abi = .none,
114 },
115 .link_libc = true,
116 },
117
118 .{
119 .target = .{
120 .cpu_arch = .arm,
121 .os_tag = .freebsd,
122 // Remove this when we bump our baseline to 14.0.0.
123 .os_version_min = .{ .semver = .{
124 .major = 14,
125 .minor = 0,
126 .patch = 0,
127 } },
128 .abi = .eabihf,
129 },
130 .link_libc = true,
131 // https://github.com/ziglang/zig/issues/23949
132 .skip_modules = &.{"std"},
133 },
134
135 .{
136 .target = .{
137 .cpu_arch = .powerpc64,
138 .os_tag = .freebsd,
139 // Remove this when we bump our baseline to 14.0.0.
140 .os_version_min = .{ .semver = .{
141 .major = 14,
142 .minor = 0,
143 .patch = 0,
144 } },
145 .abi = .none,
146 },
147 .link_libc = true,
148 },
149
150 .{
151 .target = .{
152 .cpu_arch = .powerpc64le,
153 .os_tag = .freebsd,
154 // Remove this when we bump our baseline to 14.0.0.
155 .os_version_min = .{ .semver = .{
156 .major = 14,
157 .minor = 0,
158 .patch = 0,
159 } },
160 .abi = .none,
161 },
162 .link_libc = true,
163 },
164
165 .{
166 .target = .{
167 .cpu_arch = .riscv64,
168 .os_tag = .freebsd,
169 // Remove this when we bump our baseline to 14.0.0.
170 .os_version_min = .{ .semver = .{
171 .major = 14,
172 .minor = 0,
173 .patch = 0,
174 } },
175 .abi = .none,
176 },
177 .link_libc = true,
178 },
179
180 .{
181 .target = .{
182 .cpu_arch = .x86_64,
183 .os_tag = .freebsd,
184 // Remove this when we bump our baseline to 14.0.0.
185 .os_version_min = .{ .semver = .{
186 .major = 14,
187 .minor = 0,
188 .patch = 0,
189 } },
190 .abi = .none,
191 },
192 .link_libc = true,
193 },
194
101195 // Linux Targets
102196
103197 .{