public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Melissa Wen <mwen@igalia.com>
To: "Maíra Canal" <mcanal@igalia.com>
Cc: igt-dev@lists.freedesktop.org, petri.latvala@intel.com,
	Emma Anholt <emma@anholt.net>
Subject: Re: [igt-dev] [PATCH i-g-t v2 2/7] tests/v3d: Move V3D tests to their own folder
Date: Fri, 25 Nov 2022 13:00:55 -0100	[thread overview]
Message-ID: <20221125140055.6bt65wlms2o6js47@mail.igalia.com> (raw)
In-Reply-To: <20221111195813.277822-3-mcanal@igalia.com>

[-- Attachment #1: Type: text/plain, Size: 2426 bytes --]

On 11/11, Maíra Canal wrote:
> With the introduction of new tests to V3D, in order to avoid polluting
> the main tests folder, move the V3D tests to a separate folder.
> 
> Signed-off-by: Maíra Canal <mcanal@igalia.com>
> ---
>  tests/meson.build                   | 18 +++++++++++++++---
>  tests/{ => v3d}/v3d_get_bo_offset.c |  0
>  tests/{ => v3d}/v3d_get_param.c     |  0
>  tests/{ => v3d}/v3d_mmap.c          |  0
>  4 files changed, 15 insertions(+), 3 deletions(-)
>  rename tests/{ => v3d}/v3d_get_bo_offset.c (100%)
>  rename tests/{ => v3d}/v3d_get_param.c (100%)
>  rename tests/{ => v3d}/v3d_mmap.c (100%)
> 
> diff --git a/tests/meson.build b/tests/meson.build
> index 12e53e0b..5c9b1829 100644
> --- a/tests/meson.build
> +++ b/tests/meson.build
> @@ -80,9 +80,6 @@ test_progs = [
>  	'syncobj_timeline',
>  	'template',
>  	'tools_test',
> -	'v3d_get_bo_offset',
> -	'v3d_get_param',
> -	'v3d_mmap',
>  	'vc4_create_bo',
>  	'vc4_dmabuf_poll',
>  	'vc4_label_bo',
> @@ -258,6 +255,12 @@ msm_progs = [
>  	'msm_submit'
>  ]
>  
> +v3d_progs = [
> +	'v3d_get_bo_offset',
> +	'v3d_get_param',
> +	'v3d_mmap',
> +]

Not a strong opinion, but I would prefer to have a subdir `v3d` and run
tests from there, the same way as done for amdgpu tests. That means,
running from build/tests/v3d/

> +
>  chamelium_progs = [
>  	'kms_chamelium',
>  ]
> @@ -305,6 +308,15 @@ foreach prog : msm_progs
>  	test_list += prog
>  endforeach
>  
> +foreach prog : v3d_progs
> +	test_executables += executable(prog, join_paths('v3d', prog + '.c'),
> +				       dependencies : test_deps,
> +				       install_dir : libexecdir,
> +				       install_rpath : libexecdir_rpathdir,
> +				       install : true)
> +	test_list += prog
> +endforeach
> +
>  if chamelium.found()
>  	foreach prog : chamelium_progs
>  		test_executables += executable(prog,
> diff --git a/tests/v3d_get_bo_offset.c b/tests/v3d/v3d_get_bo_offset.c
> similarity index 100%
> rename from tests/v3d_get_bo_offset.c
> rename to tests/v3d/v3d_get_bo_offset.c
> diff --git a/tests/v3d_get_param.c b/tests/v3d/v3d_get_param.c
> similarity index 100%
> rename from tests/v3d_get_param.c
> rename to tests/v3d/v3d_get_param.c
> diff --git a/tests/v3d_mmap.c b/tests/v3d/v3d_mmap.c
> similarity index 100%
> rename from tests/v3d_mmap.c
> rename to tests/v3d/v3d_mmap.c
> -- 
> 2.38.1
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2022-11-25 14:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-11 19:58 [igt-dev] [PATCH i-g-t v2 0/7] V3D IGT Tests Updates Maíra Canal
2022-11-11 19:58 ` [igt-dev] [PATCH i-g-t v2 1/7] include/drm-uapi: Update to the latest v3d_drm.h Maíra Canal
2022-11-11 19:58 ` [igt-dev] [PATCH i-g-t v2 2/7] tests/v3d: Move V3D tests to their own folder Maíra Canal
2022-11-25 14:00   ` Melissa Wen [this message]
2022-11-11 19:58 ` [igt-dev] [PATCH i-g-t v2 3/7] tests/v3d: Remove unused or redundant includes Maíra Canal
2022-11-11 19:58 ` [igt-dev] [PATCH i-g-t v2 4/7] tests/v3d: Add igt_describe() to all V3D subtests Maíra Canal
2022-11-11 19:58 ` [igt-dev] [PATCH i-g-t v2 5/7] lib/igt_v3d: Add PAGE_SIZE macro to V3D Maíra Canal
2022-11-11 19:58 ` [igt-dev] [PATCH i-g-t v2 6/7] tests/v3d_create_bo: Create test for V3D's Create BO IOCTL Maíra Canal
2022-11-25 14:05   ` Melissa Wen
2022-11-11 19:58 ` [igt-dev] [PATCH i-g-t v2 7/7] tests/v3d_perfmon: Create test for V3D's Perfmon IOCTLs Maíra Canal
2022-11-11 21:45 ` [igt-dev] ✓ Fi.CI.BAT: success for V3D IGT Tests Updates (rev2) Patchwork
2022-11-12 14:30 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2022-11-25 14:08 ` [igt-dev] [PATCH i-g-t v2 0/7] V3D IGT Tests Updates Melissa Wen

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=20221125140055.6bt65wlms2o6js47@mail.igalia.com \
    --to=mwen@igalia.com \
    --cc=emma@anholt.net \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=mcanal@igalia.com \
    --cc=petri.latvala@intel.com \
    /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