#!/bin/bash
#
TEST="Test oops against known failure patterns"
NAME=test-0001.sh
TMPLOG=$TMP/oops.log.$$

$FWTS --log-format="%line %owner " -w 80 --klog=$FWTSTESTDIR/oops-0001/oops.txt oops - | grep "^[0-9]*[ ]*oops" | cut -c7- > $TMPLOG
diff $TMPLOG $FWTSTESTDIR/oops-0001/oops-0001.log >> $FAILURE_LOG
ret=$?
if [ $ret -eq 0 ]; then 
	echo PASSED: $TEST, $NAME
else
	echo FAILED: $TEST, $NAME
fi

rm $TMPLOG
exit $ret
