[igt-dev] [PATCH i-g-t 1/2] testplan/meson.build: disable kms check testlist if not chamelium

Kamil Konieczny kamil.konieczny at linux.intel.com
Tue Oct 10 14:59:34 UTC 2023


Hi Mauro,

thank you for a fix.

On 2023-10-10 at 15:17:19 +0200, Mauro Carvalho Chehab wrote:
> From: Mauro Carvalho Chehab <mchehab at kernel.org>
> 
> The KMS JSON file contains some tests that can optionally be disabled.
> When those are disabled, the code can't check for missing documents,
> as the JSON file specifies both enabled and disabled tests.
> 
> Detect that to avoid build problems.
> 
> While here, remove a left-over dictionary (xe_test_dict).
> 
> Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>

Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>

> ---
>  docs/testplan/meson.build | 15 +++++++++------
>  1 file changed, 9 insertions(+), 6 deletions(-)
> 
> diff --git a/docs/testplan/meson.build b/docs/testplan/meson.build
> index 16dd578266cd..9e0c3aee06af 100644
> --- a/docs/testplan/meson.build
> +++ b/docs/testplan/meson.build
> @@ -11,12 +11,19 @@ kms_test_config = join_paths(source_root, 'tests', 'intel', 'kms_test_config.jso
>  i915_test_config = join_paths(source_root, 'tests', 'intel', 'i915_test_config.json')
>  
>  check_testlist = []
> +kms_check_testlist = []
>  if build_tests
>  	doc_dependencies = testlist_files
>  	# Check if documentation matches the actual tests and tests can run
>  	if not meson.is_cross_build()
>  		build_info += 'Will Check if documentation is in sync with testlist'
>  		check_testlist = [ '--check-testlist', '--igt-build-path', build_root ]
> +
> +		if not chamelium.found()
> +			warning('WARNING: Will not check if documentation is in sync for KMS as chamelium is disabled')
> +		else
> +			kms_check_testlist = check_testlist
> +		endif
>  	else
>  		warning('WARNING: Will not check if documentation is in sync with testlist')
>  	endif
> @@ -24,20 +31,16 @@ else
>  	doc_dependencies = []
>  endif
>  
> -xe_test_dict = {
> -		 'xe_tests': { 'input': xe_test_config, 'extra_args': check_testlist }
> -	       }
> -
>  if build_xe
>  	test_dict = {
>  		'i915_tests': { 'input': i915_test_config, 'extra_args': check_testlist },
> -		'kms_tests': { 'input': kms_test_config, 'extra_args': check_testlist },
> +		'kms_tests': { 'input': kms_test_config, 'extra_args': kms_check_testlist },
>  		'xe_tests': { 'input': xe_test_config, 'extra_args': check_testlist }
>  	    }
>  else
>  	test_dict = {
>  	      'i915_tests': { 'input': i915_test_config, 'extra_args': check_testlist },
> -	      'kms_tests': { 'input': kms_test_config, 'extra_args': check_testlist }
> +	      'kms_tests': { 'input': kms_test_config, 'extra_args': kms_check_testlist }
>  	    }
>  endif
>  
> -- 
> 2.41.0
> 


More information about the igt-dev mailing list