xref: /freebsd/tests/sys/compat32/aarch64/common.sh (revision 734e82fe33aa764367791a7d603b383996c6b40b)
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