linux-stable/drivers/gpu/drm/tests
Michał Winiarski e9f696f88b drm/plane_helper: Split into parameterized test cases
The test was constructed as a single function (test case) which checks
multiple conditions, calling the function that is tested multiple times
with different arguments.
This usually means that it can be easily converted into multiple test
cases.
Split igt_check_plane_state into two parameterized test cases,
drm_check_plane_state and drm_check_invalid_plane_state.

Passing output:
============================================================
============== drm_plane_helper (2 subtests) ===============
================== drm_check_plane_state ===================
[PASSED] clipping_simple
[PASSED] clipping_rotate_reflect
[PASSED] positioning_simple
[PASSED] upscaling
[PASSED] downscaling
[PASSED] rounding1
[PASSED] rounding2
[PASSED] rounding3
[PASSED] rounding4
============== [PASSED] drm_check_plane_state ==============
============== drm_check_invalid_plane_state ===============
[PASSED] positioning_invalid
[PASSED] upscaling_invalid
[PASSED] downscaling_invalid
========== [PASSED] drm_check_invalid_plane_state ==========
================ [PASSED] drm_plane_helper =================
============================================================
Testing complete. Ran 12 tests: passed: 12

v2: Add missing EXPECT/ASSERT (Maíra)
v3: Use single EXPECT insted of condition + KUNIT_FAILURE (Maíra)
v4: Rebase after "drm_test" rename

Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Maíra Canal <mairacanal@riseup.net>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20221020082135.779872-2-michal.winiarski@intel.com
2022-10-20 08:13:30 -03:00
..
.kunitconfig
drm_buddy_test.c treewide: use get_random_u32() when possible 2022-10-11 17:42:58 -06: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 treewide: use get_random_u32() when possible 2022-10-11 17:42:58 -06:00
drm_plane_helper_test.c drm/plane_helper: Split into parameterized test cases 2022-10-20 08:13:30 -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