[PATCH i-g-t 0/2] core_getversion: Add raw-cards subtest
Kamil Konieczny
kamil.konieczny at linux.intel.com
Wed Dec 18 19:04:16 UTC 2024
Currently all subtests in core_getversion could load a driver
from a known list. This prevents checks what is actually loaded
on a system just after a boot, especially when one just want to check
what drivers are in /dev/dri/ if it is present.
With this new subtest one can get that info easily:
sudo ./core_getversion --r raw-cards
Starting subtest: raw-cards
0: simpledrm v1.0 0 DRM driver for simple-framebuffer platform devices
Tested 1 drm devices
Subtest raw-cards: SUCCESS (0.004s)
sudo ./core_getversion --r all-cards
Starting subtest: all-cards
Opened device: /dev/dri/card0
0: simpledrm v1.0 0 DRM driver for simple-framebuffer platform devices
1: xe v1.1 0 Intel Xe Graphics
Subtest all-cards: SUCCESS (3.440s)
sudo ./core_getversion --r raw-cards
Starting subtest: raw-cards
0: xe v1.1 0 Intel Xe Graphics
Tested 1 drm devices
Subtest raw-cards: SUCCESS (0.020s)
sudo ./core_getversion --r all-cards
Starting subtest: all-cards
Opened device: /dev/dri/card0
0: xe v1.1 0 Intel Xe Graphics
Subtest all-cards: SUCCESS (0.060s)
Kamil Konieczny (2):
tests/core_getversion: fix driver closing
tests/core_getversion: Added raw-cards subtest
tests/core_getversion.c | 45 ++++++++++++++++++++++++++++++++---------
1 file changed, 36 insertions(+), 9 deletions(-)
--
2.47.1
More information about the igt-dev
mailing list