[igt-dev] [V5 i-g-t 59/81] tests/kms_plane: Document each subtest for testplan

B, Jeevan jeevan.b at intel.com
Thu Aug 10 17:35:12 UTC 2023


> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of
> Bhanuprakash Modem
> Sent: Thursday, June 29, 2023 8:19 PM
> To: igt-dev at lists.freedesktop.org
> Subject: [igt-dev] [V5 i-g-t 59/81] tests/kms_plane: Document each subtest for
> testplan
> 
> Add documentation for all kms tests which is used by IGT testplan
> documentation.
> 
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
LGTM.
Reviewed-by: Jeevan B <jeevan.b at intel.com>

> ---
>  tests/kms_plane.c | 58
> +++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 58 insertions(+)
> 
> diff --git a/tests/kms_plane.c b/tests/kms_plane.c index 67cff61d6..8c6ce78f3
> 100644
> --- a/tests/kms_plane.c
> +++ b/tests/kms_plane.c
> @@ -24,6 +24,11 @@
>   *   Damien Lespiau <damien.lespiau at intel.com>
>   */
> 
> +/**
> + * TEST: kms plane
> + * Category: Display
> + * Description: Testes for KMS Plane
> + */
>  #include "igt.h"
>  #include "igt_vec.h"
>  #include <errno.h>
> @@ -273,6 +278,21 @@ test_plane_position_with_output(data_t *data,
>  	igt_remove_fb(data->drm_fd, &sprite_fb);  }
> 
> +/**
> + * SUBTEST: plane-position-%s
> + * Description: Verify plane position using two planes to create a
> +%arg[1]
> + * Driver requirement: any
> + * Functionality: plane
> + * Mega feature: General Display Features
> + * Run type: FULL
> + * Test category: functionality test
> + *
> + * arg[1]:
> + *
> + * @covered:           fully covered screen
> + * @hole:              partially covered screen
> + * @hole-dpms:         partially covered screen and check for DPMS
> + */
>  static void
>  test_plane_position(data_t *data, enum pipe pipe)  { @@ -381,6 +401,21 @@
> test_plane_panning_with_output(data_t *data,
>  	igt_remove_fb(data->drm_fd, &primary_fb);  }
> 
> +/**
> + * SUBTEST: plane-panning-%s
> + * Description: Verify plane panning at %arg[1] using primary plane
> + * Driver requirement: any
> + * Functionality: plane
> + * Mega feature: General Display Features
> + * Run type: FULL
> + * Test category: functionality test
> + *
> + * arg[1]:
> + *
> + * @bottom-right:               bottom-right position
> + * @bottom-right-suspend:       bottom-right position with suspend
> + * @top-left:                   top-left position
> + */
>  static void
>  test_plane_panning(data_t *data, enum pipe pipe)  { @@ -1101,6 +1136,20
> @@ static bool skip_plane(data_t *data, igt_plane_t *plane)
>  	return index != 0 && index != 3 && index != 5;  }
> 
> +/**
> + * SUBTEST: pixel-%s
> + * Description: verify the pixel formats for given plane and pipe
> + * Driver requirement: any
> + * Functionality: plane
> + * Mega feature: General Display Features
> + * Run type: FULL
> + * Test category: functionality test
> + *
> + * arg[1]:
> + *
> + * @format:
> + * @format-source-clamping:          with source clamping
> + */
>  static void
>  test_pixel_formats(data_t *data, enum pipe pipe)  { @@ -1157,6 +1206,15 @@
> test_pixel_formats(data_t *data, enum pipe pipe)
>  	igt_assert_f(result, "At least one CRC mismatch happened\n");  }
> 
> +/**
> + * SUBTEST: invalid-pixel-format-settings
> + * Description: verify invalid settings for pixel format are not
> +accepted
> + * Driver requirement: any
> + * Functionality: plane
> + * Mega feature: General Display Features
> + * Run type: FULL
> + * Test category: functionality test
> + */
>  static void test_invalid_settings(data_t *data)  {
>  	enum pipe pipe = PIPE_A;
> --
> 2.40.0



More information about the igt-dev mailing list