mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 00:16:18 +00:00
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:
parent
91a01e0348
commit
eb64591613
@ -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
11
tests/ZZ_check_dmesg
Executable 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
|
Loading…
x
Reference in New Issue
Block a user