drm/tests: Add Kunit Helpers
authorMaxime Ripard <maxime@cerno.tech>
Mon, 14 Nov 2022 13:00:21 +0000 (14:00 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 15 Nov 2022 09:08:09 +0000 (10:08 +0100)
commit44a3928324e9757f7c321535756730be948941c2
tree99bff2955d4c865ea28eb11a3b0907e79ee74222
parent99e49bfd9339a7fe9cb89202ad5f392573739e4f
drm/tests: Add Kunit Helpers

As the number of kunit tests in KMS grows further, we start to have
multiple test suites that, for example, need to register a mock DRM
driver to interact with the KMS function they are supposed to test.

Let's add a file meant to provide those kind of helpers to avoid
duplication.

Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Tested-by: Mateusz Kwiatkowski <kfyatek+publicgit@gmail.com>
Link: https://lore.kernel.org/r/20220728-rpi-analog-tv-properties-v9-2-24b168e5bcd5@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/tests/Makefile
drivers/gpu/drm/tests/drm_kunit_helpers.c [new file with mode: 0644]
drivers/gpu/drm/tests/drm_kunit_helpers.h [new file with mode: 0644]