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