From: Mauro Carvalho Chehab <mauro.chehab@linux.intel.com>
To: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [i-g-t 2/3] testplan: Add testplan support for kms tests
Date: Fri, 5 May 2023 06:53:07 +0200 [thread overview]
Message-ID: <20230505065307.6efa102f@maurocar-mobl2> (raw)
In-Reply-To: <20230504102451.3047783-3-bhanuprakash.modem@intel.com>
On Thu, 4 May 2023 15:54:50 +0530
Bhanuprakash Modem <bhanuprakash.modem@intel.com> wrote:
> Add testplan support for kms tests.
> The documentation for kms tests will be like:
>
> /**
> * TEST: Test foo.
> * Category: Display
> *
> * SUBTEST: bar
> * Description: bar description
> * Test category: functionality test
> * Run type: BAT
> * Functionality: dp
> * Mega feature: DP 2.0
> */
>
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
> ---
> docs/testplan/meson.build | 6 ++++--
> tests/kms_test_config.json | 41 ++++++++++++++++++++++++++++++++++++++
> 2 files changed, 45 insertions(+), 2 deletions(-)
> create mode 100644 tests/kms_test_config.json
>
> diff --git a/docs/testplan/meson.build b/docs/testplan/meson.build
> index e36713960..4e3565cf8 100644
> --- a/docs/testplan/meson.build
> +++ b/docs/testplan/meson.build
> @@ -7,6 +7,7 @@ rst2pdf = find_program('rst2pdf', required: false)
> stylesheet = join_paths(meson.current_source_dir(), 'testplan.css')
>
> xe_test_config = join_paths(source_root, 'tests', 'xe', 'xe_test_config.json')
> +kms_test_config = join_paths(source_root, 'tests', 'kms_test_config.json')
>
> check_testlist = []
> if build_tests
> @@ -22,8 +23,9 @@ else
> doc_dependencies = []
> endif
>
> -test_dict = { 'xe_tests':
> - { 'input': xe_test_config, 'extra_args': check_testlist }
> +test_dict = {
> + 'xe_tests': { 'input': xe_test_config, 'extra_args': check_testlist },
> + 'kms_tests': { 'input': kms_test_config, 'extra_args': check_testlist }
As you're not planning to document all tests at once, please replace it
to:
'kms_tests': { 'input': kms_test_config, 'extra_args': [] }
As otherwise the build will complain that the documentation is
incomplete.
> }
>
> foreach testplan, fields: test_dict
> diff --git a/tests/kms_test_config.json b/tests/kms_test_config.json
> new file mode 100644
> index 000000000..4faecb7a7
> --- /dev/null
> +++ b/tests/kms_test_config.json
> @@ -0,0 +1,41 @@
> +{
> + "description": "JSON file to be used to parse KMS documentation",
> + "files": [ "chamelium/kms_chamelium_edid.c", "chamelium/kms_chamelium_frames.c",
> + "chamelium/kms_chamelium_hpd.c", "i915/kms_psr.c",
> + "kms_addfb_basic.c", "kms_cursor_legacy.c", "kms_flip.c",
> + "kms_force_connector_basic.c", "kms_pipe_crc_basic.c",
> + "kms_prop_blob.c", "kms_color.c"
> + ],
It probably makes sense to use wildcards like "kms_*.c" and "i915/kms_*.c".
> + "fields": {
> + "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"
> + }
> + }
> + },
> + "Run type": {
> + "_properties_": {
> + "description": "Defines what category of testlist it belongs"
> + }
> + },
> + "Test category": {
> + "_properties_": {
> + "description": "Defines the test category. Usually used at subtest level."
> + }
> + },
> + "Description" : {
> + "_properties_": {
> + "description": "Provides a description for the test/subtest."
> + }
> + }
> + }
> +}
next prev parent reply other threads:[~2023-05-05 4:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-04 10:24 [igt-dev] [i-g-t 0/3] Add testplan support for kms tests Bhanuprakash Modem
2023-05-04 10:24 ` [igt-dev] [i-g-t 1/3] tests/kms: Document kms subtests for XE BAT Bhanuprakash Modem
2023-05-05 4:49 ` Mauro Carvalho Chehab
2023-05-04 10:24 ` [igt-dev] [i-g-t 2/3] testplan: Add testplan support for kms tests Bhanuprakash Modem
2023-05-05 4:53 ` Mauro Carvalho Chehab [this message]
2023-05-04 10:24 ` [igt-dev] [i-g-t 3/3] scripts/test_list: Ignore non-XE tests for missing documentation Bhanuprakash Modem
2023-05-05 4:55 ` Mauro Carvalho Chehab
2023-05-04 11:33 ` [igt-dev] ✓ Fi.CI.BAT: success for Add testplan support for kms tests Patchwork
2023-05-04 13:57 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230505065307.6efa102f@maurocar-mobl2 \
--to=mauro.chehab@linux.intel.com \
--cc=bhanuprakash.modem@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox