Lines Matching +full:no +full:- +full:dump +full:- +full:oops
2 # SPDX-License-Identifier: GPL-2.0
9 set -e
10 TRIGGER=/sys/kernel/debug/provoke-crash/DIRECT
15 if [ ! -r $TRIGGER ] ; then
16 /sbin/modprobe -q lkdtm || true
17 if [ ! -r $TRIGGER ] ; then
29 line=$(grep -E '^#?'"$test"'\b' tests.txt)
30 if [ -z "$line" ]; then
35 if ! grep -E -q '^'"$test"'$' "$TRIGGER" ; then
41 test=$(echo "$line" | cut -d" " -f1)
42 if echo "$line" | grep -q ' ' ; then
43 expect=$(echo "$line" | cut -d" " -f2-)
49 if echo "$test" | grep -q '^#' ; then
50 test=$(echo "$test" | cut -c2-)
51 if [ -z "$expect" ]; then
58 # If no expected output given, assume an Oops with back trace is success.
60 if [ -z "$expect" ]; then
63 if echo "$expect" | grep -q '^repeat:' ; then
64 repeat=$(echo "$expect" | cut -d' ' -f1 | cut -d: -f2)
65 expect=$(echo "$expect" | cut -d' ' -f2-)
70 LOG=$(mktemp --tmpdir -t lkdtm-log-XXXXXX)
71 DMESG=$(mktemp --tmpdir -t lkdtm-dmesg-XXXXXX)
73 rm -f "$LOG" "$DMESG"
78 if [ -w $CLEAR_ONCE ] ; then
96 # Record and dump the results
97 dmesg | comm --nocheck-order -13 "$DMESG" - > "$LOG" || true
101 if grep -E -qi "$expect" "$LOG" ; then
105 if grep -E -qi XFAIL: "$LOG" ; then