[igt-dev] [PATCH i-g-t] tests/amdgpu: add amdgpu test suite

Zhang, Jesse(Jie) Jesse.Zhang at amd.com
Fri Nov 3 02:11:53 UTC 2023


[AMD Official Use Only - General]

Please ignore this patch.

-----Original Message-----
From: Jesse Zhang <jesse.zhang at amd.com>
Sent: Thursday, November 2, 2023 7:07 PM
To: igt-dev at lists.freedesktop.org
Cc: Prosyak, Vitaly <Vitaly.Prosyak at amd.com>; Deucher, Alexander <Alexander.Deucher at amd.com>; Tuikov, Luben <Luben.Tuikov at amd.com>; Koenig, Christian <Christian.Koenig at amd.com>; Zhang, Jesse(Jie) <Jesse.Zhang at amd.com>; Kamil Konieczny <kamil.konieczny at linux.intel.com>; Huang, Tim <Tim.Huang at amd.com>; Zhang, Jesse(Jie) <Jesse.Zhang at amd.com>
Subject: [PATCH i-g-t] tests/amdgpu: add amdgpu test suite

Add some amdgpu test suite to tester.

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

Signed-off-by: Jesse Zhang <Jesse.Zhang at 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



More information about the igt-dev mailing list