#!/bin/sh
# guest-side: run the e2e trigger (as root).  Expected results per kernel:
#   stock (DF-0139 unfixed)    : panic in spin_lock() on wild chain ptr
#   k1 (DF-0139 masked)        : panic "wc->wc_wchan == NULL && wc->wc_refs == 0"
#                                at subr_sleepqueue.c:209            -> DF-2915
#   k2 (k1 + DF-2915 fix)      : no panic; "sleepq_wait() returned ... with NO
#                                wakeup issued"                      -> DF-2917
#   k3 (k2 + DF-2917 fix)      : no panic; sleeper really blocks, then wakes
#                                on broadcast                        -> both fixed
kldload /usr/obj/tmp/sqdemo/sqe2e/sqe2e.ko
sleep 2
dmesg | tail -12
