[igt-dev] [PATCH i-g-t] i915/gem_create: Added test description for test case

Lukasz Fiedorowicz lukasz.fiedorowicz at intel.com
Wed Aug 19 13:56:49 UTC 2020


<priyanka.dandamudi at intel.com> writes:

> From: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
>
> Added test description to all the available subtests.
>
> Cc: Melkaveri, Arjun <Arjun.Melkaveri at intel.com>
> Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi at intel.com>

Reviewed-by: Lukasz Fiedorowicz <lukasz.fiedorowicz at intel.com>

> ---
>  tests/i915/gem_create.c | 13 +++++++++++--
>  1 file changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/tests/i915/gem_create.c b/tests/i915/gem_create.c
> index c7444d55..72a9864e 100644
> --- a/tests/i915/gem_create.c
> +++ b/tests/i915/gem_create.c
> @@ -244,16 +244,25 @@ igt_main
>  	igt_fixture {
>  		fd = drm_open_driver(DRIVER_INTEL);
>  	}
> -
> +	igt_describe("Test tries to create a gem object of invalid size 0"
> +		     " and checks if ioctl returns error.");
>  	igt_subtest("create-invalid-size")
>  		invalid_size_test(fd);
>  
> +	igt_describe("Test creates an object with non-aligned size request "
> +		     "and assert the buffer is page aligned and tests the "
> +		     "write into the padded extra memory.");
>  	igt_subtest("create-valid-nonaligned")
>  		valid_nonaligned_size(fd);
> -
> +	
> +	igt_describe("Test tries to create a gem object with size 15 "
> +	             "and checks if the actual created size to be default page size.");
>  	igt_subtest("create-size-update")
>  		size_update(fd);
>  
> +	igt_describe("The kernel must not return stale information back to userspace when they "
> +    		     "create a new object. For that purpose, we always clear objects on "
> +		     "creation.The test tries to clear objects and also checks number of pages cleared.");
>  	igt_subtest("create-clear")
>  		always_clear(fd, 30);
>  }
> -- 
> 2.26.2
>
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev

-- 
Thanks,
Lukasz


More information about the igt-dev mailing list