[igt-dev] [PATCH 1/2] i915/gem_exec_fair: Add subtests description

Kamil Konieczny kamil.konieczny at linux.intel.com
Thu Jun 9 11:24:51 UTC 2022


Hi Sinjan,

On 2022-06-08 at 11:25:07 +0530, sinjan.kumar at intel.com wrote:
> From: Sinjan Kumar <sinjan.kumar at intel.com>
> 
> add subtest description
- ^ -------- ^---------- ^^

This can be improved a little: Add subtests descriptions.

> 
> Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>
> Cc: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
> Signed-off-by: Sinjan Kumar <sinjan.kumar at intel.com>
> ---
>  tests/i915/gem_exec_fair.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/tests/i915/gem_exec_fair.c b/tests/i915/gem_exec_fair.c
> index 935f9c4a..f856be1d 100644
> --- a/tests/i915/gem_exec_fair.c
> +++ b/tests/i915/gem_exec_fair.c
> @@ -1351,8 +1351,15 @@ igt_main
>  		}
>  	}
>  
> +        igt_describe("Test forks N independent clients and put an equal "
> +                     "amount of work in client and asserts that all of "
> +                     "them finishes within the given timeline.");

Please do not write down exact code steps taken, rather than
that try to describe what subtest is doing. Search for
igt_describe inside lib/igt_core.h for tips. You may also run
git log to see history (maybe with -p option):

git log tests/i915/gem_exec_fair.c

Other way you can try reaching to developer(s) who written these
tests, for example on irc, or search mailing list history.

Last one, after you add description, compile it and run with:

sudo ./gem_exec_fair --describe

to see what other ones are missing.

>  	igt_subtest("basic-deadline")
>  		deadline(i915, &cfg, 2, 0);
> +        igt_describe("Test forks N independent clients and put an equal "
> +                     "amount of work in client and asserts that all of "
> +                     "them finishes within the given timeline "
> +                     "when task priority is also set.");

imho this one also needs improvement. You can work on other
descriptions step by step, just extend this patch, so it will
be only one patch per test file.

Regards,
Kamil

>  	igt_subtest("deadline-prio")
>  		deadline(i915, &cfg, 2, DL_PRIO);
>  
> -- 
> 2.25.1
> 


More information about the igt-dev mailing list