Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jesse Zhang <jesse.zhang@amd.com>
To: <igt-dev@lists.freedesktop.org>
Cc: Tim Huang <tim.huang@amd.com>,
	Luben Tuikov <luben.tuikov@amd.com>,
	Alex Deucher <alexander.deucher@amd.com>,
	Christian Koenig <christian.koenig@amd.com>
Subject: [igt-dev] [PATCH i-g-t] tests/amdgpu: add amdgpu test suite
Date: Thu, 2 Nov 2023 19:06:56 +0800	[thread overview]
Message-ID: <20231102110656.2381729-1-jesse.zhang@amd.com> (raw)

Add some amdgpu test suite to tester.

Cc: Vitaly Prosyak <vitaly.prosyak@amd.com>
Cc: Luben Tuikov <luben.tuikov@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian Koenig <christian.koenig@amd.com>
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Cc: Tim Huang <tim.huang@amd.com>

Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
---
 tests/meson.build | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/tests/meson.build b/tests/meson.build
index 62721157d..9d9f302de 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -83,6 +83,28 @@ test_progs = [
 	'vgem_slow',
 ]
 
+amd_gpu_progs = [
+	'amd_module_load',
+	'amd_basic',
+	'amd_pstate',
+	'amd_dispatch',
+	'amd_bo',
+	'amd_cs_nop',
+	'amd_deadlock',
+	'amd_mem_leak',
+	'amd_security',
+	'amd_syncobj',
+	'amd_uvd_dec',
+	'amd_uvd_enc',
+	'amd_vce_dec',
+	'amd_vcn',
+	'amd_vm',
+	'amd_hotplug',
+	'amd_info',
+	'amd_pci_unplug',
+	'amd_ras',
+]
+
 intel_i915_xe_progs = [
 	'api_intel_allocator',
 	'intel_hwmon',
@@ -398,6 +420,25 @@ foreach prog : test_progs
 	endif
 endforeach
 
+foreach prog : amd_gpu_progs
+	testexe = executable(prog,
+                  [join_paths('amdgpu', prog + '.c')] + extra_sources.get(prog, []),
+		   dependencies : test_deps + extra_dependencies.get(prog, []),
+		   install_dir : libexecdir,
+		   install_rpath : libexecdir_rpathdir,
+		   install : true)
+	test_executables += testexe
+	test_list += prog
+	name = prog.split('/').get(-1)
+	if not meson.is_cross_build()
+		testlist_files += custom_target(name + '.testlist',
+			    build_by_default : true,
+			    command : [testexe, '--show-testlist'],
+			    capture : true,
+			    output : name + '.testlist')
+	endif
+endforeach
+
 intel_progs = intel_i915_xe_progs
 intel_progs += intel_i915_progs + intel_kms_progs
 if build_xe
-- 
2.25.1

             reply	other threads:[~2023-11-02 11:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-02 11:06 Jesse Zhang [this message]
2023-11-02 12:04 ` [igt-dev] ✗ Fi.CI.BUILD: failure for tests/amdgpu: add amdgpu test suite Patchwork
2023-11-02 12:08 ` [igt-dev] ✗ GitLab.Pipeline: warning " Patchwork
2023-11-03  2:11 ` [igt-dev] [PATCH i-g-t] " Zhang, Jesse(Jie)
2023-11-03  3:00 ` [igt-dev] ✗ Fi.CI.BUILD: failure for tests/amdgpu: add amdgpu test suite (rev2) 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=20231102110656.2381729-1-jesse.zhang@amd.com \
    --to=jesse.zhang@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=christian.koenig@amd.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=luben.tuikov@amd.com \
    --cc=tim.huang@amd.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