All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jessica Zhang <quic_jesszhan@quicinc.com>
To: <igt-dev@lists.freedesktop.org>
Cc: robdclark@chromium.org, petri.latvala@intel.com,
	quic_aravindh@quicinc.com
Subject: [igt-dev] [PATCH i-g-t v1] meson: Move MSM-specific tests to their own subdirectory
Date: Tue, 19 Apr 2022 16:43:39 -0700	[thread overview]
Message-ID: <20220419234339.181-1-quic_jesszhan@quicinc.com> (raw)

Move all custom MSM tests to their own subdirectory and have them
installed in an msm/ subdirectory
---
 meson.build                    |  9 +++++++++
 tests/meson.build              |  4 +---
 tests/msm/meson.build          | 15 +++++++++++++++
 tests/{ => msm}/msm_mapping.c  |  0
 tests/{ => msm}/msm_recovery.c |  0
 tests/{ => msm}/msm_submit.c   |  0
 6 files changed, 25 insertions(+), 3 deletions(-)
 create mode 100644 tests/msm/meson.build
 rename tests/{ => msm}/msm_mapping.c (100%)
 rename tests/{ => msm}/msm_recovery.c (100%)
 rename tests/{ => msm}/msm_submit.c (100%)

diff --git a/meson.build b/meson.build
index 3e937f5a5b98..a42414c1d22d 100644
--- a/meson.build
+++ b/meson.build
@@ -260,6 +260,7 @@ includedir = get_option('includedir')
 libdir = get_option('libdir')
 libexecdir = join_paths(get_option('libexecdir'), 'igt-gpu-tools')
 amdgpudir = join_paths(libexecdir, 'amdgpu')
+msmdir = join_paths(libexecdir, 'msm')
 mandir = get_option('mandir')
 pkgconfigdir = join_paths(libdir, 'pkgconfig')
 python3 = find_program('python3', required : true)
@@ -295,10 +296,18 @@ if get_option('use_rpath')
 		amdgpudir_rpathdir = join_paths(amdgpudir_rpathdir, '..')
 	endforeach
 	amdgpudir_rpathdir = join_paths(amdgpudir_rpathdir, libdir)
+
+	msmdir_rpathdir = '$ORIGIN'
+	foreach p : msmdir.split('/')
+		msmdir_rpathdir = join_paths(msmdir_rpathdir, '..')
+	endforeach
+	msmdir_rpathdir = join_paths(msmdir_rpathdir, libdir)
+
 else
 	bindir_rpathdir = ''
 	libexecdir_rpathdir = ''
 	amdgpudir_rpathdir = ''
+	msmdir_rpathdir = ''
 endif
 
 subdir('lib')
diff --git a/tests/meson.build b/tests/meson.build
index 7261e9aa2950..4ee06677a1eb 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -63,9 +63,6 @@ test_progs = [
 	'kms_vrr',
 	'kms_writeback',
 	'meta_test',
-	'msm_mapping',
-	'msm_recovery',
-	'msm_submit',
 	'panfrost_get_param',
 	'panfrost_gem_new',
 	'panfrost_prime',
@@ -420,6 +417,7 @@ test_executables += executable('sw_sync', 'sw_sync.c',
 test_list += 'sw_sync'
 
 subdir('amdgpu')
+subdir('msm')
 
 gen_testlist = find_program('generate_testlist.sh')
 test_list_target = custom_target('testlist',
diff --git a/tests/msm/meson.build b/tests/msm/meson.build
new file mode 100644
index 000000000000..9f1788a38d20
--- /dev/null
+++ b/tests/msm/meson.build
@@ -0,0 +1,15 @@
+msm_progs = [
+	'msm_mapping',
+	'msm_recovery',
+	'msm_submit'
+]
+msm_deps = test_deps
+
+foreach prog : msm_progs
+	test_executables += executable(prog, prog + '.c',
+				       dependencies : msm_deps,
+				       install_dir : msmdir,
+				       install_rpath : msmdir_rpathdir,
+				       install : true)
+	test_list += join_paths('msm', prog)
+endforeach
diff --git a/tests/msm_mapping.c b/tests/msm/msm_mapping.c
similarity index 100%
rename from tests/msm_mapping.c
rename to tests/msm/msm_mapping.c
diff --git a/tests/msm_recovery.c b/tests/msm/msm_recovery.c
similarity index 100%
rename from tests/msm_recovery.c
rename to tests/msm/msm_recovery.c
diff --git a/tests/msm_submit.c b/tests/msm/msm_submit.c
similarity index 100%
rename from tests/msm_submit.c
rename to tests/msm/msm_submit.c
-- 
2.31.0

             reply	other threads:[~2022-04-19 23:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-19 23:43 Jessica Zhang [this message]
2022-04-20  0:26 ` [igt-dev] ✗ Fi.CI.BAT: failure for meson: Move MSM-specific tests to their own subdirectory Patchwork
2022-04-20  8:17 ` [igt-dev] [PATCH i-g-t v1] " Petri Latvala
2022-04-20 18:50   ` Jessica Zhang
2022-04-20 20:40 ` [igt-dev] ✓ Fi.CI.BAT: success for meson: Move MSM-specific tests to their own subdirectory (rev2) Patchwork
2022-04-21  0:07 ` [igt-dev] ✓ 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=20220419234339.181-1-quic_jesszhan@quicinc.com \
    --to=quic_jesszhan@quicinc.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=petri.latvala@intel.com \
    --cc=quic_aravindh@quicinc.com \
    --cc=robdclark@chromium.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.