ntel-gpu-tools/tests/ZZ_check_dmesg
Daniel Vetter eb64591613 tests: add ZZ_check_dmesg
This way the testsuit automatically fails if we hit a DRM_ERROR
or a WARN/BUG somewhere.

... i.e. this is the Jesse Barnes catcher ...

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-15 16:05:43 +01:00

12 lines
215 B
Bash
Executable File

#!/bin/sh
if dmesg | grep '\*ERROR\*' > /dev/null ; then
echo "DRM_ERROR dirt in dmesg"
exit 1
fi
if dmesg | grep -- '------\[ cut here \]----' > /dev/null ; then
echo "found a backtrace in dmesg"
exit 1
fi