Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/xe/xe_spin_batch: fix test documentation
@ 2023-06-19  9:53 Mauro Carvalho Chehab
  2023-06-19 10:17 ` Ch, Sai Gowtham
  2023-06-19 17:50 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2023-06-19  9:53 UTC (permalink / raw)
  To: igt-dev; +Cc: aditya.chauhan, Sai Gowtham Ch

From: Mauro Carvalho Chehab <mchehab@kernel.org>

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.

Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
---
 tests/xe/xe_spin_batch.c | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

diff --git a/tests/xe/xe_spin_batch.c b/tests/xe/xe_spin_batch.c
index bc13bddddf73..29a837251058 100644
--- a/tests/xe/xe_spin_batch.c
+++ b/tests/xe/xe_spin_batch.c
@@ -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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [igt-dev] [PATCH i-g-t] tests/xe/xe_spin_batch: fix test documentation
  2023-06-19  9:53 [igt-dev] [PATCH i-g-t] tests/xe/xe_spin_batch: fix test documentation Mauro Carvalho Chehab
@ 2023-06-19 10:17 ` Ch, Sai Gowtham
  2023-06-19 17:50 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
  1 sibling, 0 replies; 3+ messages in thread
From: Ch, Sai Gowtham @ 2023-06-19 10:17 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, igt-dev@lists.freedesktop.org; +Cc: Chauhan, Aditya

LGTM 
Reviewed-by: Sai Gowtham Ch <sai.gowtham.ch@intel.com>

> -----Original Message-----
> From: Mauro Carvalho Chehab <mauro.chehab@linux.intel.com>
> Sent: Monday, June 19, 2023 3:23 PM
> To: igt-dev@lists.freedesktop.org
> Cc: Ch, Sai Gowtham <sai.gowtham.ch@intel.com>; Chauhan, Aditya
> <aditya.chauhan@intel.com>
> Subject: [PATCH i-g-t] tests/xe/xe_spin_batch: fix test documentation
> 
> From: Mauro Carvalho Chehab <mchehab@kernel.org>
> 
> 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.
> 
> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
> ---
>  tests/xe/xe_spin_batch.c | 19 ++++++++-----------
>  1 file changed, 8 insertions(+), 11 deletions(-)
> 
> diff --git a/tests/xe/xe_spin_batch.c b/tests/xe/xe_spin_batch.c index
> bc13bddddf73..29a837251058 100644
> --- a/tests/xe/xe_spin_batch.c
> +++ b/tests/xe/xe_spin_batch.c
> @@ -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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [igt-dev] ✗ Fi.CI.BAT: failure for tests/xe/xe_spin_batch: fix test documentation
  2023-06-19  9:53 [igt-dev] [PATCH i-g-t] tests/xe/xe_spin_batch: fix test documentation Mauro Carvalho Chehab
  2023-06-19 10:17 ` Ch, Sai Gowtham
@ 2023-06-19 17:50 ` Patchwork
  1 sibling, 0 replies; 3+ messages in thread
From: Patchwork @ 2023-06-19 17:50 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: igt-dev

[-- Attachment #1: Type: text/plain, Size: 238 bytes --]

== Series Details ==

Series: tests/xe/xe_spin_batch: fix test documentation
URL   : https://patchwork.freedesktop.org/series/119520/
State : failure

== Summary ==

Series 119520 revision 1 was fully merged or fully failed: no git log



[-- Attachment #2: Type: text/html, Size: 707 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-06-19 17:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-19  9:53 [igt-dev] [PATCH i-g-t] tests/xe/xe_spin_batch: fix test documentation Mauro Carvalho Chehab
2023-06-19 10:17 ` Ch, Sai Gowtham
2023-06-19 17:50 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox