[igt-dev] [PATCH i-g-t] tests/chamelium: Move Chamelium tests to their own folder

Petri Latvala petri.latvala at intel.com
Thu Aug 11 05:10:57 UTC 2022


On Mon, Aug 08, 2022 at 05:20:44PM -0700, Khaled Almahallawy wrote:
> With the introduction of Chamelium V3 and the anticipation of adding more
> tests for the new features supported by V3 HW and refactoring old ones
> (e.g. have separate files for separate tests), let’s move Chamelium to
> its own folder.
> 
> Signed-off-by: Khaled Almahallawy <khaled.almahallawy at intel.com>

Acked-by: Petri Latvala <petri.latvala at intel.com>

> ---
>  tests/{ => chamelium}/kms_chamelium.c       |  0
>  tests/{ => chamelium}/kms_color_chamelium.c |  0
>  tests/meson.build                           | 26 ++++++++++++++-------
>  3 files changed, 18 insertions(+), 8 deletions(-)
>  rename tests/{ => chamelium}/kms_chamelium.c (100%)
>  rename tests/{ => chamelium}/kms_color_chamelium.c (100%)
> 
> diff --git a/tests/kms_chamelium.c b/tests/chamelium/kms_chamelium.c
> similarity index 100%
> rename from tests/kms_chamelium.c
> rename to tests/chamelium/kms_chamelium.c
> diff --git a/tests/kms_color_chamelium.c b/tests/chamelium/kms_color_chamelium.c
> similarity index 100%
> rename from tests/kms_color_chamelium.c
> rename to tests/chamelium/kms_color_chamelium.c
> diff --git a/tests/meson.build b/tests/meson.build
> index b548dc3b4444..3d21717ab4b0 100644
> --- a/tests/meson.build
> +++ b/tests/meson.build
> @@ -257,6 +257,10 @@ msm_progs = [
>  	'msm_submit'
>  ]
>  
> +chamelium_progs = [
> +	'kms_chamelium',
> +]
> +
>  test_deps = [ igt_deps ]
>  
>  if libdrm_nouveau.found()
> @@ -269,13 +273,6 @@ if libdrm_nouveau.found()
>  	test_deps += libdrm_nouveau
>  endif
>  
> -if chamelium.found()
> -	test_progs += [
> -		'kms_chamelium',
> -	]
> -	test_deps += chamelium
> -endif
> -
>  test_executables = []
>  test_list = []
>  
> @@ -307,6 +304,19 @@ foreach prog : msm_progs
>  	test_list += prog
>  endforeach
>  
> +if chamelium.found()
> +	foreach prog : chamelium_progs
> +		test_executables += executable(prog,
> +				 join_paths('chamelium', prog + '.c'),
> +				 dependencies : test_deps,
> +				 install_dir : libexecdir,
> +				 install_rpath : libexecdir_rpathdir,
> +				 install : true)
> +		test_list += prog
> +	endforeach
> +	test_deps += chamelium
> +endif
> +
>  test_executables += executable('drm_fdinfo',
>  	   join_paths('i915', 'drm_fdinfo.c'),
>  	   dependencies : test_deps + [ lib_igt_drm_fdinfo ],
> @@ -417,7 +427,7 @@ test_list += 'kms_color'
>  
>  if chamelium.found()
>         test_executables += executable('kms_color_chamelium',
> -                             [ 'kms_color_chamelium.c', 'kms_color_helper.c' ],
> +                             [ 'chamelium/kms_color_chamelium.c', 'kms_color_helper.c' ],
>                               dependencies : test_deps + [ chamelium ],
>                               install_dir : libexecdir,
>                               install_rpath : libexecdir_rpathdir,
> -- 
> 2.25.1
> 


More information about the igt-dev mailing list