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

priyanka.dandamudi at intel.com priyanka.dandamudi at intel.com
Tue Oct 27 11:37:50 UTC 2020


From: Priyanka Dandamudi <priyanka.dandamudi at intel.com>

Added test description to all the test and subtests.

Cc: Melkaveri, Arjun <arjun.melkaveri at intel.com>
Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
---
 tests/drm_import_export.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/tests/drm_import_export.c b/tests/drm_import_export.c
index 65cac60d..7dba30e6 100644
--- a/tests/drm_import_export.c
+++ b/tests/drm_import_export.c
@@ -43,6 +43,7 @@
 #include "i915/gem.h"
 
 #define DURATION 10
+IGT_TEST_DESCRIPTION("Basic check to verify the behaviour of libdrm bo for prime/flink");
 
 int fd;
 drm_intel_bufmgr *bufmgr;
@@ -249,17 +250,22 @@ igt_main {
 
 		drm_intel_bufmgr_gem_enable_reuse(bufmgr);
 	}
-
+	igt_describe("It is possible to race between unreference of the underlying BO" 
+		     " and importing it from name. Test verifies that the behaviour of libdrm"
+                     " is consistent for flink or not.");
 	igt_subtest("import-close-race-flink") {
 		use_flink = true;
 		test_import_close_race();
 	}
-
+ 	igt_describe("It is possible to race between unreference of the underlying BO"
+                     " and importing it from prime_fd. Test verifies that the behaviour of libdrm"
+                     " is consistent for prime or not.");
 	igt_subtest("import-close-race-prime") {
 		use_flink = false;
 		test_import_close_race();
 	}
-
+	igt_describe("Multithreaded test to validate the (lack of) locking in the flink"
+    		     "code in libdrm-intel.");
 	igt_subtest("flink") {
 		use_flink = true;
 
@@ -273,7 +279,8 @@ igt_main {
 		pthread_join(test_thread_id3, NULL);
 		pthread_join(test_thread_id4, NULL);
 	}
-
+	igt_describe("Multithreaded test to validate the (lack of) locking in the prime"
+                     "code in libdrm-intel.");
 	igt_subtest("prime") {
 		use_flink = false;
 
-- 
2.28.0



More information about the igt-dev mailing list