tests/qemu-boot-test: provide a summary of error-generating subsystems
* Not perfect, but does give some nice data on what makes the most "error noise" on boot * We should eventually make this a ruby or python script to do better reporting Change-Id: I831af05520a95ffba492c068c105f93ff2c31a2d
This commit is contained in:
parent
48776daf36
commit
d3e920ba77
@ -22,6 +22,7 @@ EMULATOR=qemu-system-$ARCH
|
||||
EXTRAS="-parallel none"
|
||||
|
||||
function check_logs {
|
||||
echo "=============================================="
|
||||
FILE=$1
|
||||
echo -n " Haiku kernel loaded: "
|
||||
# First output from kernel on boot
|
||||
@ -37,8 +38,13 @@ function check_logs {
|
||||
else
|
||||
echo "NO"
|
||||
fi
|
||||
echo "=============================================="
|
||||
echo " Summary of issues in logs:"
|
||||
grep -E -i "FATAL|ERROR|FAIL|GDB" $FILE | grep -vi " No error" | cut -d':' -f1 | sort | uniq -c | sort -nr
|
||||
echo "=============================================="
|
||||
echo " Potential issues in logs:"
|
||||
grep -E -i "FATAL|ERROR|FAIL|GDB" $FILE | grep -vi " No error"
|
||||
echo "=============================================="
|
||||
}
|
||||
|
||||
case "$PLATFORM" in
|
||||
|
Loading…
Reference in New Issue
Block a user