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