From aeebb131c858751a2585da4ad92beb76ae7925f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Thu, 29 May 2025 16:26:34 +0200 Subject: [PATCH] test: Add NetBSD targets to module test matrix. --- test/tests.zig | 207 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 207 insertions(+) diff --git a/test/tests.zig b/test/tests.zig index 4465c13612..03fb566f0b 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -1232,6 +1232,213 @@ const test_targets = blk: { }, }, + // NetBSD Targets + + .{ + .target = .{ + .cpu_arch = .aarch64, + .os_tag = .netbsd, + // Remove this when we bump our baseline to 10.1.0. + .os_version_min = .{ .semver = .{ + .major = 10, + .minor = 1, + .patch = 0, + } }, + .abi = .none, + }, + .link_libc = true, + }, + + .{ + .target = .{ + .cpu_arch = .aarch64_be, + .os_tag = .netbsd, + // Remove this when we bump our baseline to 10.1.0. + .os_version_min = .{ .semver = .{ + .major = 10, + .minor = 1, + .patch = 0, + } }, + .abi = .none, + }, + .link_libc = true, + }, + + .{ + .target = .{ + .cpu_arch = .arm, + .os_tag = .netbsd, + // Remove this when we bump our baseline to 10.1.0. + .os_version_min = .{ .semver = .{ + .major = 10, + .minor = 1, + .patch = 0, + } }, + .abi = .eabi, + }, + .link_libc = true, + }, + .{ + .target = .{ + .cpu_arch = .arm, + .os_tag = .netbsd, + // Remove this when we bump our baseline to 10.1.0. + .os_version_min = .{ .semver = .{ + .major = 10, + .minor = 1, + .patch = 0, + } }, + .abi = .eabihf, + }, + .link_libc = true, + }, + + .{ + .target = .{ + .cpu_arch = .armeb, + .os_tag = .netbsd, + // Remove this when we bump our baseline to 10.1.0. + .os_version_min = .{ .semver = .{ + .major = 10, + .minor = 1, + .patch = 0, + } }, + .abi = .eabi, + }, + .link_libc = true, + }, + .{ + .target = .{ + .cpu_arch = .armeb, + .os_tag = .netbsd, + // Remove this when we bump our baseline to 10.1.0. + .os_version_min = .{ .semver = .{ + .major = 10, + .minor = 1, + .patch = 0, + } }, + .abi = .eabihf, + }, + .link_libc = true, + }, + + .{ + .target = .{ + .cpu_arch = .mips, + .os_tag = .netbsd, + // Remove this when we bump our baseline to 10.1.0. + .os_version_min = .{ .semver = .{ + .major = 10, + .minor = 1, + .patch = 0, + } }, + .abi = .eabi, + }, + .link_libc = true, + }, + .{ + .target = .{ + .cpu_arch = .mips, + .os_tag = .netbsd, + // Remove this when we bump our baseline to 10.1.0. + .os_version_min = .{ .semver = .{ + .major = 10, + .minor = 1, + .patch = 0, + } }, + .abi = .eabihf, + }, + .link_libc = true, + }, + + .{ + .target = .{ + .cpu_arch = .mipsel, + .os_tag = .netbsd, + // Remove this when we bump our baseline to 10.1.0. + .os_version_min = .{ .semver = .{ + .major = 10, + .minor = 1, + .patch = 0, + } }, + .abi = .eabi, + }, + .link_libc = true, + }, + .{ + .target = .{ + .cpu_arch = .mipsel, + .os_tag = .netbsd, + // Remove this when we bump our baseline to 10.1.0. + .os_version_min = .{ .semver = .{ + .major = 10, + .minor = 1, + .patch = 0, + } }, + .abi = .eabihf, + }, + .link_libc = true, + }, + + .{ + .target = .{ + .cpu_arch = .powerpc, + .os_tag = .netbsd, + // Remove this when we bump our baseline to 10.1.0. + .os_version_min = .{ .semver = .{ + .major = 10, + .minor = 1, + .patch = 0, + } }, + .abi = .eabi, + }, + .link_libc = true, + }, + .{ + .target = .{ + .cpu_arch = .powerpc, + .os_tag = .netbsd, + // Remove this when we bump our baseline to 10.1.0. + .os_version_min = .{ .semver = .{ + .major = 10, + .minor = 1, + .patch = 0, + } }, + .abi = .eabihf, + }, + .link_libc = true, + }, + + .{ + .target = .{ + .cpu_arch = .x86, + .os_tag = .netbsd, + // Remove this when we bump our baseline to 10.1.0. + .os_version_min = .{ .semver = .{ + .major = 10, + .minor = 1, + .patch = 0, + } }, + .abi = .none, + }, + .link_libc = true, + }, + + .{ + .target = .{ + .cpu_arch = .x86_64, + .os_tag = .netbsd, + // Remove this when we bump our baseline to 10.1.0. + .os_version_min = .{ .semver = .{ + .major = 10, + .minor = 1, + .patch = 0, + } }, + .abi = .none, + }, + .link_libc = true, + }, + // SPIR-V Targets .{