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>
This commit is contained in:
Daniel Vetter 2012-01-14 17:05:39 +01:00
parent 91a01e0348
commit eb64591613
2 changed files with 14 additions and 0 deletions

View File

@ -62,10 +62,13 @@ TESTS_progs = \
drm_vma_limiter_cached \ drm_vma_limiter_cached \
$(NULL) $(NULL)
# IMPORTANT: The ZZ_ tests need to be run last!
# ... and make can't deal with inlined comments ...
TESTS_scripts = \ TESTS_scripts = \
debugfs_reader \ debugfs_reader \
debugfs_emon_crash \ debugfs_emon_crash \
sysfs_edid_timing \ sysfs_edid_timing \
ZZ_check_dmesg \
$(NULL) $(NULL)
kernel_tests = \ kernel_tests = \

11
tests/ZZ_check_dmesg Executable file
View File

@ -0,0 +1,11 @@
#!/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