Skip to contentSkip to conversation

tests/intel: add some missing core tests to xe_test_config.json

PATCH Superseded Mauro Carvalho Chehab 2 participants 2 messages May 8, 2024

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/intel: add some missing core tests to xe_test_config.json

From: Mauro Carvalho Chehab <[email protected]>

Such tests are also used to check Xe functionality. Add them to the Xe testplan configuration.

Also, move descriptions for simple tests to the right place,
as otherwise warnings will be produced:
Warning: igt@core_getclient Description documentation is missing
Warning: igt@core_getstats Description documentation is missing
Warning: igt@core_setmaster_vs_auth Description documentation is missing

As each subtest requires its own description.

---
 tests/core_getclient.c          | 2 +-
 tests/core_getstats.c           | 2 +-
 tests/core_setmaster_vs_auth.c  | 2 +-
 tests/intel/xe_test_config.json | 4 +++-
 4 files changed, 6 insertions(+), 4 deletions(-)
tests/core_getclient.c +1 -1
index 308f2c0e4422..6756c0882381 100644
@@ -34,13 +34,13 @@
 /**
  * TEST: core getclient
  * Category: Desktop client
- * Description: Tests the DRM_IOCTL_GET_CLIENT ioctl.
  * Feature: core
  * Functionality: permission management for clients
  * Sub-category: DRM
  * Test category: GEM_Legacy
  *
  * SUBTEST:
+ * Description: Tests the DRM_IOCTL_GET_CLIENT ioctl
  */
 
 IGT_TEST_DESCRIPTION("Tests the DRM_IOCTL_GET_CLIENT ioctl.");
tests/core_getstats.c +1 -1
index b2d26a8260a9..6f98087253c7 100644
@@ -35,13 +35,13 @@
 /**
  * TEST: core getstats
  * Category: Desktop client
- * Description: Tests the DRM_IOCTL_GET_STATS ioctl.
  * Feature: core
  * Functionality: DRM memory management
  * Sub-category: uapi
  * Test category: GEM_Legacy
  *
  * SUBTEST:
+ * Description: Tests the DRM_IOCTL_GET_STATS ioctl.
  */
 
 /**
tests/core_setmaster_vs_auth.c +1 -1
index 592d850f6bc5..c8fbc827b9f1 100644
@@ -43,13 +43,13 @@
 /**
  * TEST: core setmaster vs auth
  * Category: Desktop client
- * Description: Check that drop/setMaster correctly transfer master state
  * Feature: core
  * Functionality: permission management for clients
  * Sub-category: DRM
  * Test category: GEM_Legacy
  *
  * SUBTEST:
+ * Description: Check that drop/setMaster correctly transfer master state
  */
 
 IGT_TEST_DESCRIPTION("Check that drop/setMaster correctly transfer master "
tests/intel/xe_test_config.json +3 -1
index 3775e63fc65e..ef3993dae8e5 100644
@@ -2,7 +2,9 @@
     "description": "JSON file to be used to parse Xe documentation",
     "name": "Tests for Xe Driver",
     "drivers": [ "xe" ],
-    "files": [ "xe_*.c", "../core_hotunplug.c", "../sriov_basic.c", "intel_hwmon.c" ],
+    "files": [ "xe_*.c", "../core_hotunplug.c", "../sriov_basic.c", "intel_hwmon.c",
+               "../core_auth.c", "../core_getclient.c", "../core_getstats.c",
+               "../core_getversion.c", "../core_setmaster.c", "../core_setmaster_vs_auth.c" ],
     "fields": {
         "Run type": {
             "_properties_": {
Signature · 1 line
2.44.0
#1 lore raw

Hi Mauro,

Quoted 11 lines · Mauro Carvalho Chehab

From: Mauro Carvalho Chehab <[email protected]>

Such tests are also used to check Xe functionality. Add them to the Xe testplan configuration.

Also, move descriptions for simple tests to the right place,
as otherwise warnings will be produced:
Warning: igt@core_getclient Description documentation is missing
Warning: igt@core_getstats Description documentation is missing
Warning: igt@core_setmaster_vs_auth Description documentation is missing

Quoted 7 lines

As each subtest requires its own description.

---
 tests/core_getclient.c          | 2 +-
 tests/core_getstats.c           | 2 +-
 tests/core_setmaster_vs_auth.c  | 2 +-

These are only 3 for total of 7 core tests, imho we should have them all.

tests/core_getclient.c line 37

Quoted 12 lines
 tests/intel/xe_test_config.json | 4 +++-
 4 files changed, 6 insertions(+), 4 deletions(-)
tests/core_getclient.c +0 -1
index 308f2c0e4422..6756c0882381 100644
@@ -34,13 +34,13 @@
 /**
  * TEST: core getclient
  * Category: Desktop client
- * Description: Tests the DRM_IOCTL_GET_CLIENT ioctl.

imho here you could just leave it (no deletion needed). Or if you insist you could write a generic description and use it in other tests:

* Description: Tests core DRM_IOCTL_* ioctl.

Quoted 15 lines
tests/core_getclient.c +1 -0
  * Feature: core
  * Functionality: permission management for clients
  * Sub-category: DRM
  * Test category: GEM_Legacy
  *
  * SUBTEST:
+ * Description: Tests the DRM_IOCTL_GET_CLIENT ioctl
  */
 
 IGT_TEST_DESCRIPTION("Tests the DRM_IOCTL_GET_CLIENT ioctl.");
tests/core_getstats.c +0 -0
index b2d26a8260a9..6f98087253c7 100644

tests/core_getstats.c line 38

Quoted 4 lines
tests/core_getstats.c +0 -1
@@ -35,13 +35,13 @@
 /**
  * TEST: core getstats
  * Category: Desktop client
- * Description: Tests the DRM_IOCTL_GET_STATS ioctl.

Same here.

Quoted 15 lines
tests/core_getstats.c +1 -0
  * Feature: core
  * Functionality: DRM memory management
  * Sub-category: uapi
  * Test category: GEM_Legacy
  *
  * SUBTEST:
+ * Description: Tests the DRM_IOCTL_GET_STATS ioctl.
  */
 
 /**
tests/core_setmaster_vs_auth.c +0 -0
index 592d850f6bc5..c8fbc827b9f1 100644

tests/core_setmaster_vs_auth.c line 46

Quoted 4 lines
tests/core_setmaster_vs_auth.c +0 -1
@@ -43,13 +43,13 @@
 /**
  * TEST: core setmaster vs auth
  * Category: Desktop client
- * Description: Check that drop/setMaster correctly transfer master state

Same here.

Quoted 15 lines
tests/core_setmaster_vs_auth.c +1 -0
  * Feature: core
  * Functionality: permission management for clients
  * Sub-category: DRM
  * Test category: GEM_Legacy
  *
  * SUBTEST:
+ * Description: Check that drop/setMaster correctly transfer master state
  */
 
 IGT_TEST_DESCRIPTION("Check that drop/setMaster correctly transfer master "
tests/intel/xe_test_config.json +0 -0
index 3775e63fc65e..ef3993dae8e5 100644

tests/intel/xe_test_config.json line 5

Quoted 5 lines
tests/intel/xe_test_config.json +1 -1
@@ -2,7 +2,9 @@
     "description": "JSON file to be used to parse Xe documentation",
     "name": "Tests for Xe Driver",
     "drivers": [ "xe" ],
-    "files": [ "xe_*.c", "../core_hotunplug.c", "../sriov_basic.c", "intel_hwmon.c" ],
+    "files": [ "xe_*.c", "../core_hotunplug.c", "../sriov_basic.c", "intel_hwmon.c",

imho better: ../core_*.c

Regards,
Kamil

Quoted 8 lines
tests/intel/xe_test_config.json +2 -0
+               "../core_auth.c", "../core_getclient.c", "../core_getstats.c",
+               "../core_getversion.c", "../core_setmaster.c", "../core_setmaster_vs_auth.c" ],
     "fields": {
         "Run type": {
             "_properties_": {
Signature · 1 line
2.44.0