Skip to contentSkip to conversation

tests/xe/xe_spin_batch: fix test documentation

PATCH In review Mauro Carvalho Chehab 3 participants 3 messages Jun 19, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/xe/xe_spin_batch: fix test documentation

From: Mauro Carvalho Chehab <[email protected]>

The test documentation is wrong:
- it should have just one TEST: tag with the contents of the test file;
- it is missing Category, Sub-category, Functionality and Test category fields. Those are needed for proper grafana functionality mapping.

---
 tests/xe/xe_spin_batch.c | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)
tests/xe/xe_spin_batch.c +8 -11
index bc13bddddf73..29a837251058 100644
@@ -4,15 +4,20 @@
 #include "xe/xe_ioctl.h"
 #include "xe/xe_query.h"
 
+/**
+ * TEST: Tests for spin batch submissons.
+ * Category: Software building block
+ * Sub-category: spin
+ * Functionality: intel-bb
+ * Test category: functionality test
+ */
+
 #define MAX_INSTANCE 9
 
 /**
- * TEST: Basic test for spin batch submissons.
- *
  * SUBTEST: spin-basic
  * Description: Basic test to submit spin batch submissons on copy engine.
  * Run type: FULL
- *
  */
 
 static void spin_basic(int fd)
@@ -28,12 +33,9 @@ static void spin_basic(int fd)
 }
 
 /**
- * TEST:Test for spin batch submissons.
- *
  * SUBTEST: spin-batch
  * Description: Create vm and engine of hwe class and run the spinner on it.
  * Run type: FULL
- *
  */
 
 static void spin(int fd, struct drm_xe_engine_class_instance *hwe)
@@ -57,12 +59,9 @@ static void spin(int fd, struct drm_xe_engine_class_instance *hwe)
 }
 
 /**
- * TEST: Basic test for spin batch submission on all hwe.
- *
  * SUBTEST: spin-basic-all
  * Description: Basic test which validates the functionality of spinner on all hwe.
  * Run type: FULL
- *
  */
 static void spin_basic_all(int fd)
 {
@@ -91,11 +90,9 @@ static void spin_basic_all(int fd)
 }
 
 /**
- * TEST: Test for spin batch submissions.
  * SUBTEST: spin-all
  * Description: Spinner test to run on all the engines!
  * Run type: FULL
- *
  */
 
 static void spin_all(int fd, int gt, int class)
Signature · 1 line
2.40.1
Reviewed-by on v1 1/1
#1 lore raw

LGTM

Quoted 87 lines

-----Original Message-----
From: Mauro Carvalho Chehab <[email protected]>
Sent: Monday, June 19, 2023 3:23 PM
To: [email protected]
Cc: Ch, Sai Gowtham <[email protected]>; Chauhan, Aditya <[email protected]>
Subject: [PATCH i-g-t] tests/xe/xe_spin_batch: fix test documentation

From: Mauro Carvalho Chehab <[email protected]>

The test documentation is wrong:
- it should have just one TEST: tag with the contents of the test file;
- it is missing Category, Sub-category, Functionality and Test category fields. Those are needed for proper grafana functionality mapping.

---
 tests/xe/xe_spin_batch.c | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)
tests/xe/xe_spin_batch.c index renamed from tests/xe/xe_spin_batch.c +0 -0

bc13bddddf73..29a837251058 100644

tests/xe/xe_spin_batch.c +9 -12
@@ -4,15 +4,20 @@
 #include "xe/xe_ioctl.h"
 #include "xe/xe_query.h"
 
+/**
+ * TEST: Tests for spin batch submissons.
+ * Category: Software building block
+ * Sub-category: spin
+ * Functionality: intel-bb
+ * Test category: functionality test
+ */
+
 #define MAX_INSTANCE 9
 
 /**
- * TEST: Basic test for spin batch submissons.
- *
  * SUBTEST: spin-basic
  * Description: Basic test to submit spin batch submissons on copy engine.
  * Run type: FULL
- *
  */
 
 static void spin_basic(int fd)
@@ -28,12 +33,9 @@ static void spin_basic(int fd)  }
 
 /**
- * TEST:Test for spin batch submissons.
- *
  * SUBTEST: spin-batch
  * Description: Create vm and engine of hwe class and run the spinner on it.
  * Run type: FULL
- *
  */
 
 static void spin(int fd, struct drm_xe_engine_class_instance *hwe) @@ -57,12
+59,9 @@ static void spin(int fd, struct drm_xe_engine_class_instance *hwe)  }
 
 /**
- * TEST: Basic test for spin batch submission on all hwe.
- *
  * SUBTEST: spin-basic-all
  * Description: Basic test which validates the functionality of spinner on all hwe.
  * Run type: FULL
- *
  */
 static void spin_basic_all(int fd)
 {
@@ -91,11 +90,9 @@ static void spin_basic_all(int fd)  }
 
 /**
- * TEST: Test for spin batch submissions.
  * SUBTEST: spin-all
  * Description: Spinner test to run on all the engines!
  * Run type: FULL
- *
  */
 
 static void spin_all(int fd, int gt, int class)
--

2.40.1