[igt-dev] [PATCH 1/2] tests/kms_bw : Added dynamic test cases

Sharma, Swati2 swati2.sharma at intel.com
Thu May 12 08:31:56 UTC 2022


This test is blacklisted for i915.
Can you modify test to enable it ?
++Modem

On 12-May-22 1:05 PM, Nidhi Gupta wrote:
> Modified kms_bw to include dynamic test cases
> for better reporting of the results.
> 
> Signed-off-by: Nidhi Gupta <nidhi1.gupta at intel.com>
> ---
>   tests/kms_bw.c | 9 ++++++---
>   1 file changed, 6 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/kms_bw.c b/tests/kms_bw.c
> index a4553cde..60f87537 100644
> --- a/tests/kms_bw.c
> +++ b/tests/kms_bw.c
> @@ -195,6 +195,7 @@ static void run_test_linear_tiling(data_t *data, int pipe, const drmModeModeInfo
>   igt_main
>   {
>   	data_t data;
> +	igt_output_t *output;
>   	int i = 0, j = 0;
>   
>   	memset(&data, 0, sizeof(data));
> @@ -215,9 +216,11 @@ igt_main
>   	 * _amount_ of pipes */
>   	for (i = 0; i < IGT_MAX_PIPES; i++) {
>   		for (j = 0; j < ARRAY_SIZE(test_mode); j++) {
> -			igt_subtest_f("linear-tiling-%d-displays-%s", i+1,
> -			      test_mode[j].name)
> -			run_test_linear_tiling(&data, i, &test_mode[j]);
> +			igt_subtest_with_dynamic_f("linear-tiling-%d-displays-%s", i+1,
> +			      test_mode[j].name) {
> +				igt_dynamic_f("pipe-%s", igt_output_name(output))
> +					run_test_linear_tiling(&data, i, &test_mode[j]);
> +			}
>   		}
>   	}
>   

-- 
~Swati Sharma


More information about the igt-dev mailing list