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"
|
EXTRAS="-parallel none"
|
||||||
|
|
||||||
function check_logs {
|
function check_logs {
|
||||||
|
echo "=============================================="
|
||||||
FILE=$1
|
FILE=$1
|
||||||
echo -n " Haiku kernel loaded: "
|
echo -n " Haiku kernel loaded: "
|
||||||
# First output from kernel on boot
|
# First output from kernel on boot
|
||||||
@ -37,8 +38,13 @@ function check_logs {
|
|||||||
else
|
else
|
||||||
echo "NO"
|
echo "NO"
|
||||||
fi
|
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:"
|
echo " Potential issues in logs:"
|
||||||
grep -E -i "FATAL|ERROR|FAIL|GDB" $FILE | grep -vi " No error"
|
grep -E -i "FATAL|ERROR|FAIL|GDB" $FILE | grep -vi " No error"
|
||||||
|
echo "=============================================="
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$PLATFORM" in
|
case "$PLATFORM" in
|
||||||
|
Loading…
Reference in New Issue
Block a user