All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 RESEND 0/9] Increase coverage on drm_framebuffer.c
@ 2024-09-11  0:15 Carlos Eduardo Gallo Filho
  2024-09-11  0:15 ` [PATCH v4 RESEND 1/9] drm/tests: Stop using deprecated dev_private member on drm_framebuffer tests Carlos Eduardo Gallo Filho
                   ` (9 more replies)
  0 siblings, 10 replies; 15+ messages in thread
From: Carlos Eduardo Gallo Filho @ 2024-09-11  0:15 UTC (permalink / raw)
  To: dri-devel
  Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Daniel Vetter, Maíra Canal, André Almeida,
	Arthur Grillo, Tales Lelo da Aparecida,
	Carlos Eduardo Gallo Filho

This patchset includes new KUnit tests for 5 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 4 extends the test of drm_internal_framebuffer_create()
by creating a new test case and adding new parameters to the existent case.

The patch 3 just replace a strcpy() call to strscpy().

Finally, the remainder of this set contains 5 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()

---
v3:
  - Drop drm_mode_addfb2 and drm_fb_release tests (patches 10 and 11 from v2)
---

Carlos Eduardo Gallo Filho (9):
  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: Replace strcpy to strscpy on 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()

 drivers/gpu/drm/drm_framebuffer.c            |   2 +
 drivers/gpu/drm/drm_mode_object.c            |   1 +
 drivers/gpu/drm/tests/drm_framebuffer_test.c | 375 ++++++++++++++++++-
 3 files changed, 361 insertions(+), 17 deletions(-)

-- 
2.44.2


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2024-09-16  8:49 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-11  0:15 [PATCH v4 RESEND 0/9] Increase coverage on drm_framebuffer.c Carlos Eduardo Gallo Filho
2024-09-11  0:15 ` [PATCH v4 RESEND 1/9] drm/tests: Stop using deprecated dev_private member on drm_framebuffer tests Carlos Eduardo Gallo Filho
2024-09-11  0:15 ` [PATCH v4 RESEND 2/9] drm/tests: Add parameters to the drm_test_framebuffer_create test Carlos Eduardo Gallo Filho
2024-09-11  0:15 ` [PATCH v4 RESEND 3/9] drm/tests: Replace strcpy to strscpy on " Carlos Eduardo Gallo Filho
2024-09-11  0:15 ` [PATCH v4 RESEND 4/9] drm/tests: Add test case for drm_internal_framebuffer_create() Carlos Eduardo Gallo Filho
2024-09-11  0:15 ` [PATCH v4 RESEND 5/9] drm/tests: Add test for drm_framebuffer_check_src_coords() Carlos Eduardo Gallo Filho
2024-09-11  0:15 ` [PATCH v4 RESEND 6/9] drm/tests: Add test for drm_framebuffer_cleanup() Carlos Eduardo Gallo Filho
2024-09-11  0:15 ` [PATCH v4 RESEND 7/9] drm/tests: Add test for drm_framebuffer_lookup() Carlos Eduardo Gallo Filho
2024-09-11  0:15 ` [PATCH v4 RESEND 8/9] drm/tests: Add test for drm_framebuffer_init() Carlos Eduardo Gallo Filho
2024-09-16  8:48   ` Jani Nikula
2024-09-11  0:15 ` [PATCH v4 RESEND 9/9] drm/tests: Add test for drm_framebuffer_free() Carlos Eduardo Gallo Filho
2024-09-11 12:19 ` [PATCH v4 RESEND 0/9] Increase coverage on drm_framebuffer.c Maxime Ripard
2024-09-13  7:31   ` Jani Nikula
2024-09-13  7:41     ` Maxime Ripard
2024-09-13  9:13       ` Jani Nikula

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.