Arthur Grillo
8356b97906
drm/test: Add test cases for drm_rect_rotate_inv()
...
Insert a parameterized test for the drm_rect_rotate_inv() to ensure its
correctness and prevent future regressions. The test covers all rotation
modes.
It uses the same test cases from drm_test_rect_rotate().
Signed-off-by: Arthur Grillo <[email protected] >
Reviewed-by: Maíra Canal <[email protected] >
Signed-off-by: Maíra Canal <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2023-04-24 16:33:26 -03:00
Arthur Grillo
b5d88ec0ee
drm/tests: Add test cases for drm_rect_rotate()
...
Insert a parameterized test for the drm_rect_rotate() to ensure
correctness and prevent future regressions.
All possible rotation modes are covered by the test.
Signed-off-by: Arthur Grillo <[email protected] >
Reviewed-by: Maíra Canal <[email protected] >
Signed-off-by: Maíra Canal <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2023-04-24 16:33:25 -03:00
Arthur Grillo
881e2a9cc1
drm/tests: Add test cases for drm_rect_calc_vscale()
...
Insert parameterized test for the drm_rect_calc_vscale() to ensure
correctness and prevent future regressions. Besides the test for the
usual case, tests the exceptions.
It uses the same struct from drm_rect_calc_hscale().
Signed-off-by: Arthur Grillo <[email protected] >
Reviewed-by: Maíra Canal <[email protected] >
Signed-off-by: Maíra Canal <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2023-04-24 16:33:24 -03:00
Arthur Grillo
1f01f2247e
drm/tests: Add test cases for drm_rect_calc_hscale()
...
Insert parameterized test for the drm_rect_calc_hscale() to ensure
correctness and prevent future regressions. Besides the test for the
usual case, tests the exceptions.
Signed-off-by: Arthur Grillo <[email protected] >
Reviewed-by: Maíra Canal <[email protected] >
Signed-off-by: Maíra Canal <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2023-04-24 16:33:23 -03:00
Arthur Grillo
96c3161926
drm/tests: Add test cases for drm_rect_intersect()
...
Insert parameterized tests for the drm_rect_intersect() to ensure
correctness and prevent future regressions.
Also, create a helper for testing if two drm_rects are equal.
Signed-off-by: Arthur Grillo <[email protected] >
Reviewed-by: Maíra Canal <[email protected] >
Signed-off-by: Maíra Canal <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2023-04-24 16:33:22 -03:00
Maíra Canal
961bcdf956
drm/tests: Change "igt_" prefix to "drm_test_"
...
With the introduction of KUnit, IGT is no longer the only option to run
the DRM unit tests, as the tests can be run through kunit-tool or on
real hardware with CONFIG_KUNIT.
Therefore, remove the "igt_" prefix from the tests and replace it with
the "drm_test_" prefix, making the tests' names independent from the tool
used.
Signed-off-by: Maíra Canal <[email protected] >
Acked-by: David Gow <[email protected] >
Acked-by: Maxime Ripard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2022-09-14 13:53:33 -03:00
Maíra Canal
93de485cd8
drm: selftest: convert drm_rect selftest to KUnit
...
Considering the current adoption of the KUnit framework, convert the
DRM rect selftest to the KUnit API.
Co-developed-by: Carlos Veras <[email protected] >
Signed-off-by: Carlos Veras <[email protected] >
Co-developed-by: Matheus Vieira <[email protected] >
Signed-off-by: Matheus Vieira <[email protected] >
Tested-by: David Gow <[email protected] >
Acked-by: Daniel Latypov <[email protected] >
Reviewed-by: Javier Martinez Canillas <[email protected] >
Signed-off-by: Maíra Canal <[email protected] >
Signed-off-by: Javier Martinez Canillas <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2022-07-11 13:59:55 +02:00