Skip to content
Snippets Groups Projects
Commit ce51f539 authored by Bhanuprakash Modem's avatar Bhanuprakash Modem
Browse files

testplan: Add testplan support for kms tests


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
	 */

V2: - Empty 'extra_args' to avoid failures for missing docs
    - Use wildcards instead of adding full list of files

Signed-off-by: default avatarBhanuprakash Modem <bhanuprakash.modem@intel.com>
Reviewed-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 537dd403
No related branches found
No related tags found
No related merge requests found
Pipeline #875612 passed
......@@ -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': [] }
}
foreach testplan, fields: test_dict
......
{
"description": "JSON file to be used to parse KMS documentation",
"files": [ "chamelium/kms_*.c", "i915/kms_*.c", "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."
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment