Commit 8b8deeca authored by Jason Ekstrand's avatar Jason Ekstrand

intel/common: Add unit tests for gen_mi_builder

Reviewed-by: Caio Marcelo de Oliveira Filho's avatarCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Lionel Landwerlin's avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
parent 2f7fcd10
......@@ -276,6 +276,12 @@ option(
value : false,
description : 'Build unit tests. Currently this will build *all* unit tests, which may build more than expected.'
)
option(
'install-intel-gpu-tests',
type : 'boolean',
value : false,
description : 'Build and install Intel unit tests which require the GPU. This option is for developers and the Intel CI system only.'
)
option(
'selinux',
type : 'boolean',
......
......@@ -43,3 +43,23 @@ libintel_common = static_library(
link_with : [libisl],
dependencies : [dep_expat, dep_libdrm, dep_thread, idep_genxml],
)
install_intel_gpu_tests = get_option('install-intel-gpu-tests')
if install_intel_gpu_tests
foreach g : [['70', 'gen7'], ['75', 'hsw'], ['80', 'gen8'],
['90', 'gen9'], ['110', 'gen11']]
executable(
'intel_@0@_mi_builder_test'.format(g[1]),
files('tests/gen_mi_builder_test.cpp'),
cpp_args : [
cpp_vis_args, cpp_msvc_compat_args,
'-DGEN_VERSIONx10=@0@'.format(g[0])
],
include_directories : [inc_common, inc_intel],
link_with : [libintel_dev, libmesa_util],
dependencies : [dep_libdrm, dep_thread, idep_gtest, idep_genxml],
install : install_intel_gpu_tests,
)
endforeach
endif
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment