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