6ff3d9ffdc
Add tests that verify that drm_internal_framebuffer_create creates buffers correctly by creating a dummy drm_device with a mock function for the fb_create callback. To decide if a buffer has been created or not it just checks if fb_create callback has been called for the particular drm_mode_fb_cmd2 that's being tested. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com> Link: https://patchwork.freedesktop.org/patch/msgid/20181101151051.1509-8-alexandru-cosmin.gheorghe@arm.com
14 lines
643 B
C
14 lines
643 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* List each unit test as selftest(name, function)
|
|
*
|
|
* The name is used as both an enum and expanded as igt__name to create
|
|
* a module parameter. It must be unique and legal for a C identifier.
|
|
*
|
|
* Tests are executed in order by igt/drm_selftests_helper
|
|
*/
|
|
selftest(check_plane_state, igt_check_plane_state)
|
|
selftest(check_drm_format_block_width, igt_check_drm_format_block_width)
|
|
selftest(check_drm_format_block_height, igt_check_drm_format_block_height)
|
|
selftest(check_drm_format_min_pitch, igt_check_drm_format_min_pitch)
|
|
selftest(check_drm_framebuffer_create, igt_check_drm_framebuffer_create)
|