xref: /freebsd/tests/sys/compat32/aarch64/common.sh (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1#!/bin/sh
2
3if ! sysctl -n kern.features.compat_freebsd_32bit >/dev/null 2>&1; then
4	echo "1..0 # Skipped: Kernel not built with COMPAT_FREEBSD32"
5	exit 0
6elif ! sysctl -n kern.supported_archs | grep -q '\<armv7\>'; then
7	echo "1..0 # Skipped: 32-bit ARM not supported on this hardware"
8	exit 0
9fi
10