From d3e920ba77b74662fe815338be20c3e64d9175a8 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Sun, 16 Oct 2022 09:08:35 -0500 Subject: [PATCH] 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 --- src/tests/qemu-boot-test | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tests/qemu-boot-test b/src/tests/qemu-boot-test index d0e0d7f4d6..6a11741c4b 100755 --- a/src/tests/qemu-boot-test +++ b/src/tests/qemu-boot-test @@ -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