[PATCH 00/10] Increase coverage on drm_framebuffer.c
Carlos Eduardo Gallo Filho
gcarlos at disroot.org
Fri Aug 25 16:07:15 UTC 2023
This patchset includes new KUnit tests for 7 untested functions from
drm_framebuffer.c and improvements to the existent one.
The first patch replace the use of dev_private member from drm_device
mock on the existent test by embedding it into an outer struct containing
a generic pointer.
The patches 2 and 3 extends the test of drm_internal_framebuffer_create()
by creating a new test case and adding new parameters to the existent case.
Finally, the remainder of this set contains 7 new test cases, one for each
of the follow functions:
- drm_framebuffer_check_src_coords()
- drm_framebuffer_cleanup()
- drm_framebuffer_lookup()
- drm_framebuffer_init()
- drm_framebuffer_free()
- drm_mode_addfb2()
- drm_fb_release()
Signed-off-by: Carlos Eduardo Gallo Filho <gcarlos at disroot.org>
---
Carlos Eduardo Gallo Filho (10):
drm/tests: Stop using deprecated dev_private member on drm_framebuffer
tests
drm/tests: Add parameters to the drm_test_framebuffer_create test
drm/tests: Add test case for drm_internal_framebuffer_create()
drm/tests: Add test for drm_framebuffer_check_src_coords()
drm/tests: Add test for drm_framebuffer_cleanup()
drm/tests: Add test for drm_framebuffer_lookup()
drm/tests: Add test for drm_framebuffer_init()
drm/tests: Add test for drm_framebuffer_free()
drm/tests: Add test for drm_mode_addfb2()
drm/tests: Add test for drm_fb_release()
drivers/gpu/drm/drm_framebuffer.c | 1 +
drivers/gpu/drm/tests/drm_framebuffer_test.c | 563 ++++++++++++++++++-
2 files changed, 553 insertions(+), 11 deletions(-)
--
2.41.0
More information about the dri-devel
mailing list