[PATCH 0/5] Create tests for the drm_rect functions

Arthur Grillo arthurgrillo at riseup.net
Wed Mar 22 14:06:56 UTC 2023


This patchset seeks to add unit tests for the rest of the functions on
the drm_rect.c.

The test coverage report generated by the gcov[1] tool states that this
set reaches 100% of coverage on the drm_rect.c file. This would be
very good for future development on the file.

Thanks for reviewing!

Best regards,
~Arthur Grillo

---

[1]: https://gcc.gnu.org/onlinedocs/gcc/Gcov.html#Gcov

---

Arthur Grillo (5):
  drm/tests: Test drm_rect_intersect()
  drm/tests: Test drm_rect_calc_hscale()
  drm/tests: Test drm_rect_calc_vscale()
  drm/tests: Test drm_rect_rotate()
  drm/test: Test drm_rect_rotate_inv()

 drivers/gpu/drm/tests/drm_rect_test.c | 231 ++++++++++++++++++++++++++
 1 file changed, 231 insertions(+)

-- 
2.39.2



More information about the dri-devel mailing list