[PATCH i-g-t v2 2/3] tests/intel: Put "Run type" highest in KMS documentation hierarchy

Mauro Carvalho Chehab mauro.chehab at linux.intel.com
Wed Apr 24 07:42:58 UTC 2024


On Tue, 23 Apr 2024 09:53:43 +0000
Katarzyna Piecielska <katarzyna.piecielska at intel.com> wrote:

> Let's put "Run type" at highest place in KMS documentation hierarchy. It
> will be reflected in html generated documentation.
> 
> Signed-off-by: Katarzyna Piecielska <katarzyna.piecielska at intel.com>
> Cc: Kamil Konieczny <kamil.konieczny at intel.com>
> Cc: Jari Tahvanainen <jari.tahvanainen at intel.com>
> Cc: Mauro Carvalho Chehab <mauro.chehab at linux.intel.com>
> ---
>  tests/intel/kms_test_config.json | 94 ++++++++++++++++----------------
>  1 file changed, 47 insertions(+), 47 deletions(-)
> 
> diff --git a/tests/intel/kms_test_config.json b/tests/intel/kms_test_config.json
> index f3f6bfad6..35010d886 100644
> --- a/tests/intel/kms_test_config.json
> +++ b/tests/intel/kms_test_config.json
JSON file doesn't look right, as it is placing Description and other
fields below Run type level.

What about using, instead:

{
    "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" ],
    "fields": {
        "Run type": {
            "_properties_": {
                "description": "Defines what category of testlist it belongs",
                "update-from-file": {
                    "append-value-if-not-excluded": "Xe FULL, i915 FULL",
                    "exclude-type": "regex-ignorecase",
                    "include": [
                        { "i915 BAT": "../intel-ci/fast-feedback.testlist" },
                        { "i915 BAT chamelium": "../intel-ci/fast-feedback-chamelium-only.testlist" },
                        { "i915 chamelium": "../intel-ci/chamelium-only.testlist" },

                        { "Xe BAT": "../intel-ci/xe-fast-feedback.testlist" },
                        { "Xe BAT chamelium": "../intel-ci/xe-fast-feedback-chamelium-only.testlist" }
                    ],
                    "exclude": [
                        { "i915 BAT, i915 BAT chamelium, i915 chamelium, i915 FULL": "../intel-ci/blacklist.txt" },
                            { "Xe BAT, Xe BAT chamelium, Xe FULL": "../intel-ci/xe.blocklist.txt" }
                        ]
                    }
                },
            "Category": {
                "_properties_": {
                    "description": "Contains the major group for the tested functionality 'Display'"
                },
                "Mega feature": {
                    "_properties_": {
                        "description": "Contains the mega feature for end to end use case, e.g. the 'PSR' feature."
                    },
                    "Functionality": {
                        "_properties_": {
                            "description": "Groups tests on buckets containg more detailed functionality"
                        }
                    }
                }
            }
        },
        "Driver requirement": {
            "_properties_": {
                "description": "Describes any Driver specific requrirement, like i915/xe."
            }
        },
        "Test category": {
            "_properties_": {
                "description": "Defines the test category. Usually used at subtest level."
            }
        },
        "Description" : {
            "_properties_": {
                "description": "Provides a description for the test/subtest."
            }
        }
    }
}


More information about the igt-dev mailing list