KUnit tests for drm_format_helper
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest3 patches 8 repliesIn review
- v33 patches 12 repliesSuperseded
- v23 patches 2 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 1 patch | 11 replies | Superseded |
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | drm/rect: Add DRM_RECT_INIT() macroinclude/ | +16 | 4 replies | |
| 2/3 | drm/format-helper: Add KUnit tests for drm_fb_xrgb8888_to_rgb332()drivers/ drivers/ drivers/ +2 more | +184 | 2 replies | |
| 3/3 | drm/doc: Add KUnit documentationDocumentation/ | +32 | 2 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Jani Nikula | Thomas Zimmermann | Javier Martinez Canillas | Maxime Ripard | David Gow |
|---|---|---|---|---|---|
| 1/3 | R-b | A-b | R-b | ||
| 2/3 | A-b | R-b | R-b | ||
| 3/3 | A-b | R-b | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCH v4 0/3] KUnit tests for drm_format_helper
Hello everyone,
Following the style used in the selftest to KUnit series [1] and the AMD series [2], the tests were moved to the "tests" folder.
In addition, to be consistent naming functions, I renamed the kunit_suite and the test cases to use underscores as suggested in [3].
It is not clear yet whether we want to have one or multiple Kconfig symbols and select which test should be built. However, refactoring from one approach to the other is quite simple, so I think we should be fine choosing the simpler option now and refactoring if required.
Thanks a lot,
José Expósito
[1] https://lore.kernel.org/dri-devel/[email protected]/T/
[2] https://lore.kernel.org/dri-devel/[email protected]/
[3] https://www.kernel.org/doc/html/latest/dev-tools/kunit/style.html
RFC -> v1: https://lore.kernel.org/dri-devel/[email protected]/T/
- Add .kunitconfig (Maxime Ripard)
- Fix memory leak (Daniel Latypov)
- Make config option generic (Javier Martinez Canillas):
DRM_FORMAR_HELPER_TEST -> DRM_KUNIT_TEST
- Remove DISABLE_STRUCTLEAK_PLUGIN (Daniel Latypov)
v1 -> v2: https://lore.kernel.org/dri-devel/[email protected]/T/
Thomas Zimmermann:
- Add DRM_RECT_INIT() macro
- Move tests to drivers/gpu/drm/kunit
- Improve test documentation
v2 -> v3: https://lore.kernel.org/dri-devel/[email protected]/T/
- Use designated initializer in DRM_RECT_INIT (Jani Nikula)
- Simplify the "conversion_buf_size" helper
v3 -> v4: https://lore.kernel.org/dri-devel/20220616183852.GA12343@elementary/T/
- Move the source to the "tests" folder
- Use "_" in kunit_suite and cases:
https://www.kernel.org/doc/html/latest/dev-tools/kunit/style.html
- Reviewed-by and Acked-by tags
José Expósito (3):
drm/rect: Add DRM_RECT_INIT() macro
drm/format-helper: Add KUnit tests for drm_fb_xrgb8888_to_rgb332() drm/doc: Add KUnit documentation
Documentation/gpu/drm-internals.rst | 32 ++++ drivers/gpu/drm/Kconfig | 16 ++ drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/tests/.kunitconfig | 3 + drivers/gpu/drm/tests/Makefile | 3 + .../gpu/drm/tests/drm_format_helper_test.c | 161 ++++++++++++++++++ include/drm/drm_rect.h | 16 ++ 7 files changed, 232 insertions(+) create mode 100644 drivers/gpu/drm/tests/.kunitconfig create mode 100644 drivers/gpu/drm/tests/Makefile create mode 100644 drivers/gpu/drm/tests/drm_format_helper_test.c
Signature · 1 line
2.25.1