[igt-dev] [PATCH RFC 1/3] tests/intel: *.json: specify what drivers use such tests

Mauro Carvalho Chehab mauro.chehab at linux.intel.com
Tue Nov 28 16:43:01 UTC 2023


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

The test sets defined at the JSON files are meant to be used
by one or more drivers. Specify the driver(s) at the JSON
config file.

Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
---
 tests/intel/i915_test_config.json | 1 +
 tests/intel/kms_test_config.json  | 1 +
 tests/intel/xe_test_config.json   | 1 +
 3 files changed, 3 insertions(+)

diff --git a/tests/intel/i915_test_config.json b/tests/intel/i915_test_config.json
index c15ef2580688..ad59677f8126 100644
--- a/tests/intel/i915_test_config.json
+++ b/tests/intel/i915_test_config.json
@@ -1,6 +1,7 @@
 {
     "description": "JSON file to be used to parse i915 documentation",
     "name": "Tests for i915 Driver",
+    "drivers": [ "i915" ],
     "files": [ "*.c", "../core_auth.c", "../core_getclient.c",
                "../core_getstats.c", "../core_getversion.c",
                "../core_hotunplug.c", "../core_setmaster.c",
diff --git a/tests/intel/kms_test_config.json b/tests/intel/kms_test_config.json
index d38562c02ed6..f3f6bfad6eac 100644
--- a/tests/intel/kms_test_config.json
+++ b/tests/intel/kms_test_config.json
@@ -1,6 +1,7 @@
 {
     "description": "JSON file to be used to parse KMS documentation",
     "name": "Display and KMS Tests for Intel i915 and Xe Drivers",
+    "drivers": [ "xe", "i915" ],
     "files": [ "../chamelium/kms_*.c", "../kms_*.c", "../testdisplay.c", "kms_*.c" ],
     "exclude_files": [ "../chamelium/kms_chamelium_helper.c", "../kms_color_helper.c",
                        "kms_dsc_helper.c" ],
diff --git a/tests/intel/xe_test_config.json b/tests/intel/xe_test_config.json
index a2d764307831..3944a9c8028b 100644
--- a/tests/intel/xe_test_config.json
+++ b/tests/intel/xe_test_config.json
@@ -1,6 +1,7 @@
 {
     "description": "JSON file to be used to parse Xe documentation",
     "name": "Tests for Xe Driver",
+    "drivers": [ "xe" ],
     "files": [ "xe_*.c", "../core_hotunplug.c", "intel_hwmon.c" ],
     "fields": {
         "Category": {
-- 
2.42.0



More information about the igt-dev mailing list