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

priyanka.dandamudi at intel.com priyanka.dandamudi at intel.com
Tue Aug 18 04:59:08 UTC 2020


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>
---
 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



More information about the igt-dev mailing list