Add FreeBSD and NetBSD CI (#3600)

Add a BSD workflow with FreeBSD and NetBSD jobs that run the same build
and tests as the linux job, each inside a VM booted under QEMU on an
ubuntu-latest runner. The tests/shtest $NO_COLOR pty checks are now
skipped on NetBSD, as they already are on SunOS.
This commit is contained in:
neil authored and GitHub committed 2026-10-08 23:38:20 +09:00
1 parent e001deb4cf
commit dbbae0dee3
2 files changed
+92

No files matched your search

+6
View File
@@ -5,10 +5,12 @@
msys=false
mingw=false
sunos=false
netbsd=false
case "$(uname -s)" in
MSYS*) msys=true;;
MINGW*) mingw=true;;
SunOS*) sunos=true;;
NetBSD*) netbsd=true;;
esac
JQ_NO_B=$JQ
@@ -677,6 +679,10 @@ test_no_color=true
$msys && test_no_color=false
$mingw && test_no_color=false
$sunos && test_no_color=false
# NetBSD's script(1) intermittently loses the whole session output (the
# output file comes back empty for fast commands about half the time), so
# the pty checks cannot run reliably there.
$netbsd && test_no_color=false
if $test_no_color && command -v script >/dev/null 2>&1; then
if script -qc echo /dev/null >/dev/null 2>&1; then
faketty() { script -qec "$*" /dev/null; }