mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 13:52:54 +00:00
tests: Use kms_ prefix a bit more
I was a bit on the fence about the basic pipe CRC test since that doesn't really test kms, but debug infrastructure in debugfs. Otoh running this one for a full kms testrun is always good, to make sure that all the other (real) CRC based tests work sanely. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This check the time we take to read the content of all the possible connectors.
|
||||
# Without the edid -ENXIO patch (http://permalink.gmane.org/gmane.comp.video.dri.devel/62083),
|
||||
# we sometimes take a *really* long time. So let's just check for some reasonable timing here
|
||||
#
|
||||
|
||||
DRM_LIB_ALLOW_NO_MASTER=1
|
||||
|
||||
SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
|
||||
. $SOURCE_DIR/drm_lib.sh
|
||||
|
||||
TIME1=$(date +%s%N)
|
||||
cat $(find /sys/devices/|grep drm | grep /status) > /dev/null
|
||||
TIME2=$(date +%s%N)
|
||||
|
||||
# time in ms
|
||||
RES=$(((TIME2 - TIME1) / 1000000))
|
||||
|
||||
if [ $RES -gt 600 ]; then
|
||||
echo "Talking to outputs took ${RES}ms, something is wrong"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user