[igt-dev] [PATCH i-g-t 2/2] tests/kms_atomic: Changed test names into standard convention

Ville Syrjälä ville.syrjala at linux.intel.com
Fri Mar 27 13:43:10 UTC 2020


On Fri, Mar 27, 2020 at 06:42:22PM +0530, Swati Sharma wrote:
> All the subtests in kms_atomic have test names in non-standard
> convention, changing those to standard convention. '-' is the normal
> delimeter in subtest names.
> 
> Signed-off-by: Swati Sharma <swati2.sharma at intel.com>

Reviewed-by: Ville Syrjälä <ville.syrjala at linux.intel.com>

I do see a handful of other tests have adopted the '_' convention as
well, but the majority do use '-'.

> ---
>  tests/kms_atomic.c | 22 +++++++++++-----------
>  1 file changed, 11 insertions(+), 11 deletions(-)
> 
> diff --git a/tests/kms_atomic.c b/tests/kms_atomic.c
> index aacd83c5..f80b5189 100644
> --- a/tests/kms_atomic.c
> +++ b/tests/kms_atomic.c
> @@ -1098,7 +1098,7 @@ igt_main
>  				      LOCAL_DRM_FORMAT_MOD_NONE, &fb);
>  	}
>  
> -	igt_subtest("plane_overlay_legacy") {
> +	igt_subtest("plane-overlay-legacy") {
>  		igt_plane_t *overlay =
>  			igt_pipe_get_plane_type(pipe_obj, DRM_PLANE_TYPE_OVERLAY);
>  
> @@ -1108,7 +1108,7 @@ igt_main
>  		plane_overlay(pipe_obj, output, overlay);
>  	}
>  
> -	igt_subtest("plane_primary_legacy") {
> +	igt_subtest("plane-primary-legacy") {
>  		atomic_setup(&display, pipe, output, primary, &fb);
>  
>  		plane_primary(pipe_obj, primary, &fb);
> @@ -1116,7 +1116,7 @@ igt_main
>  
>  	igt_describe("Verify that the overlay plane can cover the primary one (and "\
>  		     "vice versa) by changing their zpos property.");
> -	igt_subtest("plane_primary_overlay_mutable_zpos") {
> +	igt_subtest("plane-primary-overlay-mutable-zpos") {
>  		uint32_t format_primary = DRM_FORMAT_ARGB8888;
>  		uint32_t format_overlay = DRM_FORMAT_ARGB1555;
>  
> @@ -1137,18 +1137,18 @@ igt_main
>  
>  	igt_describe("Verify the reported zpos property of planes by making sure "\
>  		     "only higher zpos planes cover the lower zpos ones.");
> -	igt_subtest("plane_immutable_zpos") {
> +	igt_subtest("plane-immutable-zpos") {
>  		igt_output_set_pipe(output, pipe);
>  		plane_immutable_zpos(&display, pipe_obj, output);
>  	}
>  
> -	igt_subtest("test_only") {
> +	igt_subtest("test-only") {
>  		atomic_clear(&display, pipe, primary, output);
>  
>  		test_only(pipe_obj, primary, output);
>  	}
>  
> -	igt_subtest("plane_cursor_legacy") {
> +	igt_subtest("plane-cursor-legacy") {
>  		igt_plane_t *cursor =
>  			igt_pipe_get_plane_type(pipe_obj, DRM_PLANE_TYPE_CURSOR);
>  
> @@ -1158,31 +1158,31 @@ igt_main
>  		plane_cursor(pipe_obj, output, cursor);
>  	}
>  
> -	igt_subtest("plane_invalid_params") {
> +	igt_subtest("plane-invalid-params") {
>  		atomic_setup(&display, pipe, output, primary, &fb);
>  
>  		plane_invalid_params(pipe_obj, output, primary, &fb);
>  	}
>  
> -	igt_subtest("plane_invalid_params_fence") {
> +	igt_subtest("plane-invalid-params-fence") {
>  		atomic_setup(&display, pipe, output, primary, &fb);
>  
>  		plane_invalid_params_fence(pipe_obj, output, primary);
>  	}
>  
> -	igt_subtest("crtc_invalid_params") {
> +	igt_subtest("crtc-invalid-params") {
>  		atomic_setup(&display, pipe, output, primary, &fb);
>  
>  		crtc_invalid_params(pipe_obj, output, primary, &fb);
>  	}
>  
> -	igt_subtest("crtc_invalid_params_fence") {
> +	igt_subtest("crtc-invalid-params-fence") {
>  		atomic_setup(&display, pipe, output, primary, &fb);
>  
>  		crtc_invalid_params_fence(pipe_obj, output, primary, &fb);
>  	}
>  
> -	igt_subtest("atomic_invalid_params") {
> +	igt_subtest("atomic-invalid-params") {
>  		atomic_setup(&display, pipe, output, primary, &fb);
>  
>  		atomic_invalid_params(pipe_obj, primary, output, &fb);
> -- 
> 2.25.1

-- 
Ville Syrjälä
Intel


More information about the igt-dev mailing list