diff options
author | Petri Latvala <petri.latvala@intel.com> | 2018-04-17 16:58:54 +0300 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2018-04-19 11:57:02 +0300 |
commit | 8168bb65d5e64d4df4e5d847d448bab2d2825d73 (patch) | |
tree | 2960f4f4389b7229108c48bdc659976c553e2476 /tests/amdgpu | |
parent | 9a41ace714a6fd4275b05097b12d1b6a7f8653af (diff) |
meson: Install amdgpu tests with their subdirectory
The amdgpu tests in tests/amdgpu got installed directly into
$libexecdir before, but test-list.txt still referred to them as
amdgpu/$testname.
This fixes running scripts/run-tests.sh -l with the install directory
as IGT_TEST_ROOT and, I can imagine, actually running them from
install directory (untested). It also removes one FIXME comment for an
internet point.
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Tomi Sarvela <tomi.p.sarvela@intel.com>
Reviewed-by: Katarzyna Dec <katarzyna.dec@intel.com>
Diffstat (limited to 'tests/amdgpu')
-rw-r--r-- | tests/amdgpu/meson.build | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/amdgpu/meson.build b/tests/amdgpu/meson.build new file mode 100644 index 00000000..af5e74c7 --- /dev/null +++ b/tests/amdgpu/meson.build @@ -0,0 +1,19 @@ + +amdgpu_progs = [] +amdgpu_deps = test_deps +if libdrm_amdgpu.found() + amdgpu_progs += [ 'amd_basic', + 'amd_cs_nop', + 'amd_prime', + ] + amdgpu_deps += libdrm_amdgpu +endif + +foreach prog : amdgpu_progs + test_executables += executable(prog, prog + '.c', + dependencies : amdgpu_deps, + install_dir : join_paths(libexecdir, 'amdgpu'), + install_rpath : rpathdir, + install : true) + test_progs += join_paths('amdgpu', prog) +endforeach |