sed -e 's/^(initramfs)[^]]*] //' -e 's/^\[[^]]*] //'|
sed -e 's/^.*ver: //'|
awk '
BEGIN {
ver= 0;
badseq= 0;
}
{
if(!badseq &&($1 + 0 !=$1||$1 <= ver)){
badseqno1= ver;
badseqno2=$1;
badseqnr= NR;
badseq= 1;
}
ver=$1
}
END {
if(badseq){
if(badseqno1== badseqno2 &&badseqno2== ver)
print "GP HANG at " ver " torture stat " badseqnr;
else
print "BAD SEQ " badseqno1 ":" badseqno2 " last:" ver " version " badseqnr;
}
}' > $T.seq
if grep -q SUCCESS $file
then
iftest -s $T.seq
then
print_warning $title`cat $T.seq`
echo" "$file
exit2
fi
else
if grep -q "_HOTPLUG:"$file
then
print_warning HOTPLUG FAILURES $title`cat $T.seq`
echo" "$file
exit3
fi
echo$title no success message, `grep --binary-files=text 'ver:'$file| wc -l` successful version messages
iftest -s $T.seq
then
print_warning $title`cat $T.seq`
fi
exit2
fi
fi| tee -a $file.diags
console-badness.sh < $file > $T.diags
iftest -s $T.diags
then
print_warning "Assertion failure in $file$title"
# cat $T.diags
summary=""
n_badness=`grep -c Badness $file`
iftest"$n_badness" -ne 0
then
summary="$summary Badness: $n_badness"
fi
n_warn=`grep -v 'Warning: unable to open an initial console'$file| grep -v 'Warning: Failed to add ttynull console. No stdin, stdout, and stderr for the init process'| egrep -c 'WARNING:|Warn'`