From: "Maíra Canal" <mcanal@igalia.com>
To: igt-dev@lists.freedesktop.org
Cc: petri.latvala@intel.com, Emma Anholt <emma@anholt.net>,
Maxime Ripard <maxime@cerno.tech>
Subject: [igt-dev] [PATCH i-g-t v2 1/5] tests/vc4: Move VC4 tests to their own folder
Date: Fri, 2 Dec 2022 12:42:24 -0300 [thread overview]
Message-ID: <20221202154228.45766-2-mcanal@igalia.com> (raw)
In-Reply-To: <20221202154228.45766-1-mcanal@igalia.com>
VC4 contains a substantial number of tests. In order to avoid polluting
the main tests folder, move the VC4 tests to a separate folder.
Moreover, create a subdir "vc4" to install the VC4-specific tests.
Signed-off-by: Maíra Canal <mcanal@igalia.com>
---
meson.build | 8 ++++
tests/meson.build | 10 +----
tests/vc4/meson.build | 19 ++++++++
tests/{ => vc4}/vc4_create_bo.c | 0
tests/{ => vc4}/vc4_dmabuf_poll.c | 0
tests/{ => vc4}/vc4_label_bo.c | 0
tests/{ => vc4}/vc4_lookup_fail.c | 0
tests/{ => vc4}/vc4_purgeable_bo.c | 0
tests/{ => vc4}/vc4_tiling.c | 0
tests/{ => vc4}/vc4_wait_bo.c | 0
tests/{ => vc4}/vc4_wait_seqno.c | 0
tests/vc4_ci/vc4.testlist | 70 +++++++++++++++---------------
12 files changed, 64 insertions(+), 43 deletions(-)
create mode 100644 tests/vc4/meson.build
rename tests/{ => vc4}/vc4_create_bo.c (100%)
rename tests/{ => vc4}/vc4_dmabuf_poll.c (100%)
rename tests/{ => vc4}/vc4_label_bo.c (100%)
rename tests/{ => vc4}/vc4_lookup_fail.c (100%)
rename tests/{ => vc4}/vc4_purgeable_bo.c (100%)
rename tests/{ => vc4}/vc4_tiling.c (100%)
rename tests/{ => vc4}/vc4_wait_bo.c (100%)
rename tests/{ => vc4}/vc4_wait_seqno.c (100%)
diff --git a/meson.build b/meson.build
index 709c7a6c..f5e30827 100644
--- a/meson.build
+++ b/meson.build
@@ -261,6 +261,7 @@ libdir = get_option('libdir')
libexecdir = join_paths(get_option('libexecdir'), 'igt-gpu-tools')
amdgpudir = join_paths(libexecdir, 'amdgpu')
v3ddir = join_paths(libexecdir, 'v3d')
+vc4dir = join_paths(libexecdir, 'vc4')
mandir = get_option('mandir')
pkgconfigdir = join_paths(libdir, 'pkgconfig')
python3 = find_program('python3', required : true)
@@ -302,11 +303,18 @@ if get_option('use_rpath')
v3d_rpathdir = join_paths(v3d_rpathdir, '..')
endforeach
v3d_rpathdir = join_paths(v3d_rpathdir, libdir)
+
+ vc4_rpathdir = '$ORIGIN'
+ foreach p : vc4dir.split('/')
+ vc4_rpathdir = join_paths(vc4_rpathdir, '..')
+ endforeach
+ vc4_rpathdir = join_paths(vc4_rpathdir, libdir)
else
bindir_rpathdir = ''
libexecdir_rpathdir = ''
amdgpudir_rpathdir = ''
v3d_rpathdir = ''
+ vc4_rpathdir = ''
endif
subdir('lib')
diff --git a/tests/meson.build b/tests/meson.build
index 619c18b2..ed6a9c2e 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -80,14 +80,6 @@ test_progs = [
'syncobj_timeline',
'template',
'tools_test',
- 'vc4_create_bo',
- 'vc4_dmabuf_poll',
- 'vc4_label_bo',
- 'vc4_lookup_fail',
- 'vc4_purgeable_bo',
- 'vc4_tiling',
- 'vc4_wait_bo',
- 'vc4_wait_seqno',
'vgem_basic',
'vgem_slow',
]
@@ -453,6 +445,8 @@ subdir('amdgpu')
subdir('v3d')
+subdir('vc4')
+
gen_testlist = find_program('generate_testlist.sh')
test_list_target = custom_target('testlist',
output : 'test-list.txt',
diff --git a/tests/vc4/meson.build b/tests/vc4/meson.build
new file mode 100644
index 00000000..bdb2a6b0
--- /dev/null
+++ b/tests/vc4/meson.build
@@ -0,0 +1,19 @@
+vc4_progs = [
+ 'vc4_create_bo',
+ 'vc4_dmabuf_poll',
+ 'vc4_label_bo',
+ 'vc4_lookup_fail',
+ 'vc4_purgeable_bo',
+ 'vc4_tiling',
+ 'vc4_wait_bo',
+ 'vc4_wait_seqno',
+]
+
+foreach prog : vc4_progs
+ test_executables += executable(prog, prog + '.c',
+ dependencies : test_deps,
+ install_dir : vc4dir,
+ install_rpath : vc4_rpathdir,
+ install : true)
+ test_list += join_paths('vc4', prog)
+endforeach
diff --git a/tests/vc4_create_bo.c b/tests/vc4/vc4_create_bo.c
similarity index 100%
rename from tests/vc4_create_bo.c
rename to tests/vc4/vc4_create_bo.c
diff --git a/tests/vc4_dmabuf_poll.c b/tests/vc4/vc4_dmabuf_poll.c
similarity index 100%
rename from tests/vc4_dmabuf_poll.c
rename to tests/vc4/vc4_dmabuf_poll.c
diff --git a/tests/vc4_label_bo.c b/tests/vc4/vc4_label_bo.c
similarity index 100%
rename from tests/vc4_label_bo.c
rename to tests/vc4/vc4_label_bo.c
diff --git a/tests/vc4_lookup_fail.c b/tests/vc4/vc4_lookup_fail.c
similarity index 100%
rename from tests/vc4_lookup_fail.c
rename to tests/vc4/vc4_lookup_fail.c
diff --git a/tests/vc4_purgeable_bo.c b/tests/vc4/vc4_purgeable_bo.c
similarity index 100%
rename from tests/vc4_purgeable_bo.c
rename to tests/vc4/vc4_purgeable_bo.c
diff --git a/tests/vc4_tiling.c b/tests/vc4/vc4_tiling.c
similarity index 100%
rename from tests/vc4_tiling.c
rename to tests/vc4/vc4_tiling.c
diff --git a/tests/vc4_wait_bo.c b/tests/vc4/vc4_wait_bo.c
similarity index 100%
rename from tests/vc4_wait_bo.c
rename to tests/vc4/vc4_wait_bo.c
diff --git a/tests/vc4_wait_seqno.c b/tests/vc4/vc4_wait_seqno.c
similarity index 100%
rename from tests/vc4_wait_seqno.c
rename to tests/vc4/vc4_wait_seqno.c
diff --git a/tests/vc4_ci/vc4.testlist b/tests/vc4_ci/vc4.testlist
index e86d4c81..ec09dda9 100644
--- a/tests/vc4_ci/vc4.testlist
+++ b/tests/vc4_ci/vc4.testlist
@@ -1,35 +1,35 @@
-igt@vc4_create_bo@create-bo-0
-igt@vc4_create_bo@create-bo-4096
-igt@vc4_create_bo@create-bo-zeroed
-igt@vc4_dmabuf_poll@poll-read-waits-until-write-done
-igt@vc4_dmabuf_poll@poll-write-waits-until-write-done
-igt@vc4_label_bo@set-label
-igt@vc4_label_bo@set-bad-handle
-igt@vc4_label_bo@set-bad-name
-igt@vc4_label_bo@set-kernel-name
-igt@vc4_lookup_fail@bad-color-write
-igt@vc4_purgeable_bo@mark-willneed
-igt@vc4_purgeable_bo@mark-purgeable
-igt@vc4_purgeable_bo@mark-purgeable-twice
-igt@vc4_purgeable_bo@access-purgeable-bo-mem
-igt@vc4_purgeable_bo@access-purged-bo-mem
-igt@vc4_purgeable_bo@mark-unpurgeable-check-retained
-igt@vc4_purgeable_bo@mark-unpurgeable-purged
-igt@vc4_purgeable_bo@free-purged-bo
-igt@vc4_tiling@get-bad-handle
-igt@vc4_tiling@set-bad-handle
-igt@vc4_tiling@get-bad-flags
-igt@vc4_tiling@set-bad-flags
-igt@vc4_tiling@get-bad-modifier
-igt@vc4_tiling@set-bad-modifier
-igt@vc4_tiling@set-get
-igt@vc4_tiling@get-after-free
-igt@vc4_wait_bo@bad-bo
-igt@vc4_wait_bo@bad-pad
-igt@vc4_wait_bo@unused-bo-0ns
-igt@vc4_wait_bo@unused-bo-1ns
-igt@vc4_wait_bo@used-bo
-igt@vc4_wait_bo@used-bo-0ns
-igt@vc4_wait_bo@used-bo-1ns
-igt@vc4_wait_seqno@bad-seqno-0ns
-igt@vc4_wait_seqno@bad-seqno-1ns
+igt@vc4/vc4_create_bo@create-bo-0
+igt@vc4/vc4_create_bo@create-bo-4096
+igt@vc4/vc4_create_bo@create-bo-zeroed
+igt@vc4/vc4_dmabuf_poll@poll-read-waits-until-write-done
+igt@vc4/vc4_dmabuf_poll@poll-write-waits-until-write-done
+igt@vc4/vc4_label_bo@set-label
+igt@vc4/vc4_label_bo@set-bad-handle
+igt@vc4/vc4_label_bo@set-bad-name
+igt@vc4/vc4_label_bo@set-kernel-name
+igt@vc4/vc4_lookup_fail@bad-color-write
+igt@vc4/vc4_purgeable_bo@mark-willneed
+igt@vc4/vc4_purgeable_bo@mark-purgeable
+igt@vc4/vc4_purgeable_bo@mark-purgeable-twice
+igt@vc4/vc4_purgeable_bo@access-purgeable-bo-mem
+igt@vc4/vc4_purgeable_bo@access-purged-bo-mem
+igt@vc4/vc4_purgeable_bo@mark-unpurgeable-check-retained
+igt@vc4/vc4_purgeable_bo@mark-unpurgeable-purged
+igt@vc4/vc4_purgeable_bo@free-purged-bo
+igt@vc4/vc4_tiling@get-bad-handle
+igt@vc4/vc4_tiling@set-bad-handle
+igt@vc4/vc4_tiling@get-bad-flags
+igt@vc4/vc4_tiling@set-bad-flags
+igt@vc4/vc4_tiling@get-bad-modifier
+igt@vc4/vc4_tiling@set-bad-modifier
+igt@vc4/vc4_tiling@set-get
+igt@vc4/vc4_tiling@get-after-free
+igt@vc4/vc4_wait_bo@bad-bo
+igt@vc4/vc4_wait_bo@bad-pad
+igt@vc4/vc4_wait_bo@unused-bo-0ns
+igt@vc4/vc4_wait_bo@unused-bo-1ns
+igt@vc4/vc4_wait_bo@used-bo
+igt@vc4/vc4_wait_bo@used-bo-0ns
+igt@vc4/vc4_wait_bo@used-bo-1ns
+igt@vc4/vc4_wait_seqno@bad-seqno-0ns
+igt@vc4/vc4_wait_seqno@bad-seqno-1ns
--
2.38.1
next prev parent reply other threads:[~2022-12-02 15:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-02 15:42 [igt-dev] [PATCH i-g-t v2 0/5] VC4 IGT Tests Updates Maíra Canal
2022-12-02 15:42 ` Maíra Canal [this message]
2022-12-12 10:56 ` [igt-dev] [PATCH i-g-t v2 1/5] tests/vc4: Move VC4 tests to their own folder Petri Latvala
2022-12-02 15:42 ` [igt-dev] [PATCH i-g-t v2 2/5] tests/vc4: Remove unused or redundant includes Maíra Canal
2022-12-02 15:42 ` [igt-dev] [PATCH i-g-t v2 3/5] lib/igt_vc4: Add PAGE_SIZE macro to VC4 Maíra Canal
2022-12-02 15:42 ` [igt-dev] [PATCH i-g-t v2 4/5] tests/vc4: Skip VC4 tests if they are running on BCM2711/RaspberryPi4 Maíra Canal
2022-12-12 10:24 ` Petri Latvala
2022-12-02 15:42 ` [igt-dev] [PATCH i-g-t v2 5/5] tests/vc4_perfmon: Create test for VC4's Perfmon IOCTLs Maíra Canal
2022-12-02 16:30 ` [igt-dev] ✓ Fi.CI.BAT: success for VC4 IGT Tests Updates (rev2) Patchwork
2022-12-03 2:40 ` [igt-dev] ✗ Fi.CI.IGT: failure " 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=20221202154228.45766-2-mcanal@igalia.com \
--to=mcanal@igalia.com \
--cc=emma@anholt.net \
--cc=igt-dev@lists.freedesktop.org \
--cc=maxime@cerno.tech \
--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