[igt-dev] [PATCH i-g-t] tests/amdgpu: add amdgpu test suite
Jesse Zhang
jesse.zhang at amd.com
Thu Nov 2 11:06:56 UTC 2023
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