mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 14:43:42 -04:00
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 <mairacanal@riseup.net> Acked-by: David Gow <davidgow@google.com> Acked-by: Maxime Ripard <maxime@cerno.tech> Link: https://patchwork.freedesktop.org/patch/msgid/20220911191756.203118-2-mairacanal@riseup.net
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
#include <drm/drm_fourcc.h>
|
||||
|
||||
static void drm_format_block_width_invalid(struct kunit *test)
|
||||
static void drm_test_format_block_width_invalid(struct kunit *test)
|
||||
{
|
||||
const struct drm_format_info *info = NULL;
|
||||
|
||||
@@ -18,7 +18,7 @@ static void drm_format_block_width_invalid(struct kunit *test)
|
||||
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 1), 0);
|
||||
}
|
||||
|
||||
static void drm_format_block_width_one_plane(struct kunit *test)
|
||||
static void drm_test_format_block_width_one_plane(struct kunit *test)
|
||||
{
|
||||
const struct drm_format_info *info = drm_format_info(DRM_FORMAT_XRGB4444);
|
||||
|
||||
@@ -29,7 +29,7 @@ static void drm_format_block_width_one_plane(struct kunit *test)
|
||||
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0);
|
||||
}
|
||||
|
||||
static void drm_format_block_width_two_plane(struct kunit *test)
|
||||
static void drm_test_format_block_width_two_plane(struct kunit *test)
|
||||
{
|
||||
const struct drm_format_info *info = drm_format_info(DRM_FORMAT_NV12);
|
||||
|
||||
@@ -41,7 +41,7 @@ static void drm_format_block_width_two_plane(struct kunit *test)
|
||||
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0);
|
||||
}
|
||||
|
||||
static void drm_format_block_width_three_plane(struct kunit *test)
|
||||
static void drm_test_format_block_width_three_plane(struct kunit *test)
|
||||
{
|
||||
const struct drm_format_info *info = drm_format_info(DRM_FORMAT_YUV422);
|
||||
|
||||
@@ -54,7 +54,7 @@ static void drm_format_block_width_three_plane(struct kunit *test)
|
||||
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0);
|
||||
}
|
||||
|
||||
static void drm_format_block_width_tiled(struct kunit *test)
|
||||
static void drm_test_format_block_width_tiled(struct kunit *test)
|
||||
{
|
||||
const struct drm_format_info *info = drm_format_info(DRM_FORMAT_X0L0);
|
||||
|
||||
@@ -65,7 +65,7 @@ static void drm_format_block_width_tiled(struct kunit *test)
|
||||
KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0);
|
||||
}
|
||||
|
||||
static void drm_format_block_height_invalid(struct kunit *test)
|
||||
static void drm_test_format_block_height_invalid(struct kunit *test)
|
||||
{
|
||||
const struct drm_format_info *info = NULL;
|
||||
|
||||
@@ -74,7 +74,7 @@ static void drm_format_block_height_invalid(struct kunit *test)
|
||||
KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, 1), 0);
|
||||
}
|
||||
|
||||
static void drm_format_block_height_one_plane(struct kunit *test)
|
||||
static void drm_test_format_block_height_one_plane(struct kunit *test)
|
||||
{
|
||||
const struct drm_format_info *info = drm_format_info(DRM_FORMAT_XRGB4444);
|
||||
|
||||
@@ -85,7 +85,7 @@ static void drm_format_block_height_one_plane(struct kunit *test)
|
||||
KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, 1), 0);
|
||||
}
|
||||
|
||||
static void drm_format_block_height_two_plane(struct kunit *test)
|
||||
static void drm_test_format_block_height_two_plane(struct kunit *test)
|
||||
{
|
||||
const struct drm_format_info *info = drm_format_info(DRM_FORMAT_NV12);
|
||||
|
||||
@@ -97,7 +97,7 @@ static void drm_format_block_height_two_plane(struct kunit *test)
|
||||
KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, -1), 0);
|
||||
}
|
||||
|
||||
static void drm_format_block_height_three_plane(struct kunit *test)
|
||||
static void drm_test_format_block_height_three_plane(struct kunit *test)
|
||||
{
|
||||
const struct drm_format_info *info = drm_format_info(DRM_FORMAT_YUV422);
|
||||
|
||||
@@ -110,7 +110,7 @@ static void drm_format_block_height_three_plane(struct kunit *test)
|
||||
KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, -1), 0);
|
||||
}
|
||||
|
||||
static void drm_format_block_height_tiled(struct kunit *test)
|
||||
static void drm_test_format_block_height_tiled(struct kunit *test)
|
||||
{
|
||||
const struct drm_format_info *info = drm_format_info(DRM_FORMAT_X0L0);
|
||||
|
||||
@@ -121,7 +121,7 @@ static void drm_format_block_height_tiled(struct kunit *test)
|
||||
KUNIT_EXPECT_EQ(test, drm_format_info_block_height(info, -1), 0);
|
||||
}
|
||||
|
||||
static void drm_format_min_pitch_invalid(struct kunit *test)
|
||||
static void drm_test_format_min_pitch_invalid(struct kunit *test)
|
||||
{
|
||||
const struct drm_format_info *info = NULL;
|
||||
|
||||
@@ -130,7 +130,7 @@ static void drm_format_min_pitch_invalid(struct kunit *test)
|
||||
KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 0), 0);
|
||||
}
|
||||
|
||||
static void drm_format_min_pitch_one_plane_8bpp(struct kunit *test)
|
||||
static void drm_test_format_min_pitch_one_plane_8bpp(struct kunit *test)
|
||||
{
|
||||
const struct drm_format_info *info = drm_format_info(DRM_FORMAT_RGB332);
|
||||
|
||||
@@ -153,7 +153,7 @@ static void drm_format_min_pitch_one_plane_8bpp(struct kunit *test)
|
||||
(uint64_t)(UINT_MAX - 1));
|
||||
}
|
||||
|
||||
static void drm_format_min_pitch_one_plane_16bpp(struct kunit *test)
|
||||
static void drm_test_format_min_pitch_one_plane_16bpp(struct kunit *test)
|
||||
{
|
||||
const struct drm_format_info *info = drm_format_info(DRM_FORMAT_XRGB4444);
|
||||
|
||||
@@ -176,7 +176,7 @@ static void drm_format_min_pitch_one_plane_16bpp(struct kunit *test)
|
||||
(uint64_t)(UINT_MAX - 1) * 2);
|
||||
}
|
||||
|
||||
static void drm_format_min_pitch_one_plane_24bpp(struct kunit *test)
|
||||
static void drm_test_format_min_pitch_one_plane_24bpp(struct kunit *test)
|
||||
{
|
||||
const struct drm_format_info *info = drm_format_info(DRM_FORMAT_RGB888);
|
||||
|
||||
@@ -199,7 +199,7 @@ static void drm_format_min_pitch_one_plane_24bpp(struct kunit *test)
|
||||
(uint64_t)(UINT_MAX - 1) * 3);
|
||||
}
|
||||
|
||||
static void drm_format_min_pitch_one_plane_32bpp(struct kunit *test)
|
||||
static void drm_test_format_min_pitch_one_plane_32bpp(struct kunit *test)
|
||||
{
|
||||
const struct drm_format_info *info = drm_format_info(DRM_FORMAT_ABGR8888);
|
||||
|
||||
@@ -222,7 +222,7 @@ static void drm_format_min_pitch_one_plane_32bpp(struct kunit *test)
|
||||
(uint64_t)(UINT_MAX - 1) * 4);
|
||||
}
|
||||
|
||||
static void drm_format_min_pitch_two_plane(struct kunit *test)
|
||||
static void drm_test_format_min_pitch_two_plane(struct kunit *test)
|
||||
{
|
||||
const struct drm_format_info *info = drm_format_info(DRM_FORMAT_NV12);
|
||||
|
||||
@@ -257,7 +257,7 @@ static void drm_format_min_pitch_two_plane(struct kunit *test)
|
||||
(uint64_t)(UINT_MAX - 1));
|
||||
}
|
||||
|
||||
static void drm_format_min_pitch_three_plane_8bpp(struct kunit *test)
|
||||
static void drm_test_format_min_pitch_three_plane_8bpp(struct kunit *test)
|
||||
{
|
||||
const struct drm_format_info *info = drm_format_info(DRM_FORMAT_YUV422);
|
||||
|
||||
@@ -304,7 +304,7 @@ static void drm_format_min_pitch_three_plane_8bpp(struct kunit *test)
|
||||
(uint64_t)(UINT_MAX - 1) / 2);
|
||||
}
|
||||
|
||||
static void drm_format_min_pitch_tiled(struct kunit *test)
|
||||
static void drm_test_format_min_pitch_tiled(struct kunit *test)
|
||||
{
|
||||
const struct drm_format_info *info = drm_format_info(DRM_FORMAT_X0L2);
|
||||
|
||||
@@ -328,24 +328,24 @@ static void drm_format_min_pitch_tiled(struct kunit *test)
|
||||
}
|
||||
|
||||
static struct kunit_case drm_format_tests[] = {
|
||||
KUNIT_CASE(drm_format_block_width_invalid),
|
||||
KUNIT_CASE(drm_format_block_width_one_plane),
|
||||
KUNIT_CASE(drm_format_block_width_two_plane),
|
||||
KUNIT_CASE(drm_format_block_width_three_plane),
|
||||
KUNIT_CASE(drm_format_block_width_tiled),
|
||||
KUNIT_CASE(drm_format_block_height_invalid),
|
||||
KUNIT_CASE(drm_format_block_height_one_plane),
|
||||
KUNIT_CASE(drm_format_block_height_two_plane),
|
||||
KUNIT_CASE(drm_format_block_height_three_plane),
|
||||
KUNIT_CASE(drm_format_block_height_tiled),
|
||||
KUNIT_CASE(drm_format_min_pitch_invalid),
|
||||
KUNIT_CASE(drm_format_min_pitch_one_plane_8bpp),
|
||||
KUNIT_CASE(drm_format_min_pitch_one_plane_16bpp),
|
||||
KUNIT_CASE(drm_format_min_pitch_one_plane_24bpp),
|
||||
KUNIT_CASE(drm_format_min_pitch_one_plane_32bpp),
|
||||
KUNIT_CASE(drm_format_min_pitch_two_plane),
|
||||
KUNIT_CASE(drm_format_min_pitch_three_plane_8bpp),
|
||||
KUNIT_CASE(drm_format_min_pitch_tiled),
|
||||
KUNIT_CASE(drm_test_format_block_width_invalid),
|
||||
KUNIT_CASE(drm_test_format_block_width_one_plane),
|
||||
KUNIT_CASE(drm_test_format_block_width_two_plane),
|
||||
KUNIT_CASE(drm_test_format_block_width_three_plane),
|
||||
KUNIT_CASE(drm_test_format_block_width_tiled),
|
||||
KUNIT_CASE(drm_test_format_block_height_invalid),
|
||||
KUNIT_CASE(drm_test_format_block_height_one_plane),
|
||||
KUNIT_CASE(drm_test_format_block_height_two_plane),
|
||||
KUNIT_CASE(drm_test_format_block_height_three_plane),
|
||||
KUNIT_CASE(drm_test_format_block_height_tiled),
|
||||
KUNIT_CASE(drm_test_format_min_pitch_invalid),
|
||||
KUNIT_CASE(drm_test_format_min_pitch_one_plane_8bpp),
|
||||
KUNIT_CASE(drm_test_format_min_pitch_one_plane_16bpp),
|
||||
KUNIT_CASE(drm_test_format_min_pitch_one_plane_24bpp),
|
||||
KUNIT_CASE(drm_test_format_min_pitch_one_plane_32bpp),
|
||||
KUNIT_CASE(drm_test_format_min_pitch_two_plane),
|
||||
KUNIT_CASE(drm_test_format_min_pitch_three_plane_8bpp),
|
||||
KUNIT_CASE(drm_test_format_min_pitch_tiled),
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user