Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Bhanuprakash Modem <bhanuprakash.modem@intel.com>,
	Boris Brezillon <boris.brezillon@collabora.com>,
	Alyssa Rosenzweig <alyssa@collabora.com>,
	Kamil Konieczny <kamil.konieczny@linux.intel.com>
Subject: [i-g-t V2 1/3] tests/panfrost: Move Panfrost tests to new dir
Date: Wed, 12 Jun 2024 12:33:33 +0530	[thread overview]
Message-ID: <20240612070335.3758500-2-bhanuprakash.modem@intel.com> (raw)
In-Reply-To: <20240612070335.3758500-1-bhanuprakash.modem@intel.com>

Move all Panfrost specific tests (tests/panfrost_*) to
new dir (tests/panfrost/panfrost_*).

Cc: Boris Brezillon <boris.brezillon@collabora.com>
Cc: Alyssa Rosenzweig <alyssa@collabora.com>
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
---
 meson.build                               |  8 ++++++++
 tests/meson.build                         |  6 ++----
 tests/panfrost/meson.build                | 15 +++++++++++++++
 tests/{ => panfrost}/panfrost_gem_new.c   |  0
 tests/{ => panfrost}/panfrost_get_param.c |  0
 tests/{ => panfrost}/panfrost_prime.c     |  0
 tests/{ => panfrost}/panfrost_submit.c    |  0
 7 files changed, 25 insertions(+), 4 deletions(-)
 create mode 100644 tests/panfrost/meson.build
 rename tests/{ => panfrost}/panfrost_gem_new.c (100%)
 rename tests/{ => panfrost}/panfrost_get_param.c (100%)
 rename tests/{ => panfrost}/panfrost_prime.c (100%)
 rename tests/{ => panfrost}/panfrost_submit.c (100%)

diff --git a/meson.build b/meson.build
index ab44aadb1..701a5cc35 100644
--- a/meson.build
+++ b/meson.build
@@ -276,6 +276,7 @@ includedir = get_option('includedir')
 libdir = get_option('libdir')
 libexecdir = join_paths(get_option('libexecdir'), 'igt-gpu-tools')
 amdgpudir = join_paths(libexecdir, 'amdgpu')
+panfrostdir = join_paths(libexecdir, 'panfrost')
 v3ddir = join_paths(libexecdir, 'v3d')
 vc4dir = join_paths(libexecdir, 'vc4')
 vmwgfxdir = join_paths(libexecdir, 'vmwgfx')
@@ -315,6 +316,12 @@ if get_option('use_rpath')
 	endforeach
 	amdgpudir_rpathdir = join_paths(amdgpudir_rpathdir, libdir)
 
+	panfrost_rpathdir = '$ORIGIN'
+	foreach p : panfrostdir.split('/')
+		panfrost_rpathdir = join_paths(panfrost_rpathdir, '..')
+	endforeach
+	panfrost_rpathdir = join_paths(panfrost_rpathdir, libdir)
+
 	v3d_rpathdir = '$ORIGIN'
 	foreach p : v3ddir.split('/')
 		v3d_rpathdir = join_paths(v3d_rpathdir, '..')
@@ -336,6 +343,7 @@ else
 	bindir_rpathdir = ''
 	libexecdir_rpathdir = ''
 	amdgpudir_rpathdir = ''
+	panfrost_rpathdir = ''
 	v3d_rpathdir = ''
 	vc4_rpathdir = ''
 	vmwgfx_rpathdir = ''
diff --git a/tests/meson.build b/tests/meson.build
index 758ae090c..16896de99 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -65,10 +65,6 @@ test_progs = [
 	'kms_vrr',
 	'kms_writeback',
 	'meta_test',
-	'panfrost_get_param',
-	'panfrost_gem_new',
-	'panfrost_prime',
-	'panfrost_submit',
 	'prime_udl',
 	'prime_vgem',
 	'sriov_basic',
@@ -461,6 +457,8 @@ endif
 
 subdir('amdgpu')
 
+subdir('panfrost')
+
 subdir('v3d')
 
 subdir('vc4')
diff --git a/tests/panfrost/meson.build b/tests/panfrost/meson.build
new file mode 100644
index 000000000..b633d1be9
--- /dev/null
+++ b/tests/panfrost/meson.build
@@ -0,0 +1,15 @@
+panfrost_progs = [
+	'panfrost_get_param',
+	'panfrost_gem_new',
+	'panfrost_prime',
+	'panfrost_submit',
+]
+
+foreach prog : panfrost_progs
+	test_executables += executable(prog, prog + '.c',
+				       dependencies : test_deps,
+				       install_dir : panfrostdir,
+				       install_rpath : panfrost_rpathdir,
+				       install : true)
+	test_list += join_paths('panfrost', prog)
+endforeach
diff --git a/tests/panfrost_gem_new.c b/tests/panfrost/panfrost_gem_new.c
similarity index 100%
rename from tests/panfrost_gem_new.c
rename to tests/panfrost/panfrost_gem_new.c
diff --git a/tests/panfrost_get_param.c b/tests/panfrost/panfrost_get_param.c
similarity index 100%
rename from tests/panfrost_get_param.c
rename to tests/panfrost/panfrost_get_param.c
diff --git a/tests/panfrost_prime.c b/tests/panfrost/panfrost_prime.c
similarity index 100%
rename from tests/panfrost_prime.c
rename to tests/panfrost/panfrost_prime.c
diff --git a/tests/panfrost_submit.c b/tests/panfrost/panfrost_submit.c
similarity index 100%
rename from tests/panfrost_submit.c
rename to tests/panfrost/panfrost_submit.c
-- 
2.43.2


  reply	other threads:[~2024-06-12  7:11 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-12  7:03 [i-g-t V2 0/3] Move non-Intel tests to new directories Bhanuprakash Modem
2024-06-12  7:03 ` Bhanuprakash Modem [this message]
2024-06-18  8:39   ` [i-g-t V2 1/3] tests/panfrost: Move Panfrost tests to new dir Kamil Konieczny
2024-06-25  4:56     ` Modem, Bhanuprakash
2024-06-25  9:58       ` Kamil Konieczny
2024-06-12  7:03 ` [i-g-t V2 2/3] tests/msm: Move MSM " Bhanuprakash Modem
2024-06-12  8:59   ` Kamil Konieczny
2024-06-12 10:56     ` Modem, Bhanuprakash
2024-06-12 12:28       ` Kamil Konieczny
2024-06-13  4:19         ` Modem, Bhanuprakash
2024-06-13  4:23   ` [i-g-t V3 2/3] tests/msm: Generate MSM test bins in " Bhanuprakash Modem
2024-06-12  7:03 ` [i-g-t V2 3/3] tests/intel-ci: Update blocklists Bhanuprakash Modem
2024-06-12  7:55 ` ✓ CI.xeBAT: success for Move non-Intel tests to new directories Patchwork
2024-06-12  8:19 ` ✓ Fi.CI.BAT: " Patchwork
2024-06-12  9:35 ` ✓ CI.xeFULL: " Patchwork
2024-06-12 21:31 ` ✓ Fi.CI.IGT: " Patchwork

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=20240612070335.3758500-2-bhanuprakash.modem@intel.com \
    --to=bhanuprakash.modem@intel.com \
    --cc=alyssa@collabora.com \
    --cc=boris.brezillon@collabora.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@linux.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