summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2019-06-18kmstest.py: Capture the last kernel messages before closing the logLaurent Pinchart
When stopping a test, kernel messages can be logged after the event loop is stopped. Capture them before closing the log. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
2019-06-18kmstest.py: Fix CRTC disablingLaurent Pinchart
The KMSTest.atomic_crtc_disable() method deactivates a CRTC but doesn't fully disable it, which requires setting the MODE_ID to 0. Furthermore it doesn't de-associate the CRTC from connectors and planes, which causes atomic check failures as a fully disabled CRTC can't be associated with connectors. It can also lead to the next test failing due to resources still being allocated to the CRTC. To fix this, introduce an AtomicRequest class that wraps around pykms.AtomicReq, and stores a copy of all the properties. When the request is committed the properties are added to a global state, which is then used to locate and release connectors and planes associated with the CRTC in KMSTest.atomic_crtc_disable(). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
2018-04-23tests: crc: Add CRC computation testLaurent Pinchart
The test exercises the CRC API by enabling CRC computation on the pipeline output, capturing CRC values and verifying that they all match. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2018-04-23kmstest.py: Add CRC reader classLaurent Pinchart
The CRCReader class uses the DRM/KMS debugfs-based CRC API to configure CRC computation on a CRTC and read the computed CRC values. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2018-04-22tests: brxalloc: Add BRU/BRS dynamic allocation testLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2018-02-26kmstest.py: Add atomic_plane_disable() function to KMSTest classLaurent Pinchart
The function can be used to disable planes selectively. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-12-15kmstest.py: Update to the latest kmsxx Python bindingsLaurent Pinchart
Commit 706a44abb3aa ("Update to latest pybind11") of kmsxx broke the test suite by changing the signature of the AtomicRequest::commit function. Update the test suite accordingly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
2017-11-26tests: planeposition: Wait 3s after moving planes off-screenLaurent Pinchart
Add a 3s delay after each off-screen position test, as we do for partially off-screen tests, in order to allow time for visual inspection. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-11-13tests: planeposition: Accept off-screen planesLaurent Pinchart
The DU driver now accepts off-screen planes (but obviously don't display them). Update the test accordingly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-09-21Makefile: Fix installation scripts wildcardLaurent Pinchart
The Makefile incorrectly refers to test scripts as *.sh while it should use *.py. Fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-08-16Initial importLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>