Trigger each test hook mode and check kern.bounds_soft_violations rises by the expected count. Skips unless the hooks were built with soft traps, which kern.mk now signals with -DBOUNDS_SAFETY_SOFT_TRAPS.
Sponsored by: The FreeBSD Foundation
Why not -DBOUNDS_SAFETY_SOFT_TRAPS=1 and then skip BOUNDS_TEST_SOFT?