linux-stable/drivers/gpu/drm/tests
Maíra Canal 530f789766 drm/tests: Split drm_test_dp_mst_sideband_msg_req_decode into parameterized tests
The drm_test_dp_mst_sideband_msg_req_decode repeats the same test
structure with different parameters. This could be better represented
by parameterized tests, provided by KUnit.

In addition to the parameterization of the tests, the test case for the
client ID was changed: instead of using get_random_bytes to generate
the client ID, the client ID is now hardcoded in the test case. This
doesn't affect the assertively of the tests, as this test case only compare
the data going in with the data going out and it doesn't transform the data
itself in any way.

So, convert drm_test_dp_mst_sideband_msg_req_decode into parameterized
tests and make the tests' allocations and prints completely managed by KUnit.

Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20221001223422.857505-2-mcanal@igalia.com
2022-10-16 14:47:53 -03:00
..
.kunitconfig
drm_buddy_test.c drm/tests: Change "igt_" prefix to "drm_test_" 2022-09-14 13:53:33 -03:00
drm_cmdline_parser_test.c drm/tests: Change "igt_" prefix to "drm_test_" 2022-09-14 13:53:33 -03:00
drm_damage_helper_test.c drm/tests: Change "igt_" prefix to "drm_test_" 2022-09-14 13:53:33 -03:00
drm_dp_mst_helper_test.c drm/tests: Split drm_test_dp_mst_sideband_msg_req_decode into parameterized tests 2022-10-16 14:47:53 -03:00
drm_format_helper_test.c drm/format-helper: Add KUnit tests for drm_fb_xrgb8888_to_gray8() 2022-09-27 19:41:52 +02:00
drm_format_test.c drm/tests: Change "igt_" prefix to "drm_test_" 2022-09-14 13:53:33 -03:00
drm_framebuffer_test.c drm/tests: Split drm_framebuffer_create_test into parameterized tests 2022-09-14 13:53:33 -03:00
drm_mm_test.c drm/tests: Change "igt_" prefix to "drm_test_" 2022-09-14 13:53:33 -03:00
drm_plane_helper_test.c drm/tests: Change "igt_" prefix to "drm_test_" 2022-09-14 13:53:33 -03:00
drm_rect_test.c drm/tests: Change "igt_" prefix to "drm_test_" 2022-09-14 13:53:33 -03:00
Makefile drm/tests: Order Kunit tests in Makefile 2022-10-10 13:54:54 +02:00