tests: Serialise drm-smoke-test against everything else

drm-smoke-test can't run at the same time as anything else which touches
DRM devices. This includes any test which would use the GL renderer or
GL/GBM on the client side, since they will open DRM devices to probe
them at init time.

Signed-off-by: Daniel Stone <daniels@collabora.com>
dev
Daniel Stone 3 years ago
parent 288214323c
commit 533950cc31
  1. 7
      tests/meson.build

@ -132,7 +132,7 @@ tests = [
'name': 'drm-formats', 'name': 'drm-formats',
'dep_objs': dep_libdrm_headers, 'dep_objs': dep_libdrm_headers,
}, },
{ 'name': 'drm-smoke', }, { 'name': 'drm-smoke', 'run_exclusive': true },
{ 'name': 'event', }, { 'name': 'event', },
{ 'name': 'internal-screenshot', }, { 'name': 'internal-screenshot', },
{ {
@ -305,6 +305,8 @@ foreach t : tests
t_deps = [ dep_test_client, dep_libweston_private_h ] t_deps = [ dep_test_client, dep_libweston_private_h ]
t_deps += t.get('dep_objs', []) t_deps += t.get('dep_objs', [])
run_exclusive = t.get('run_exclusive', false)
t_exe = executable( t_exe = executable(
t_name, t_name,
t_sources, t_sources,
@ -323,7 +325,8 @@ foreach t : tests
t_exe, t_exe,
depends: t.get('test_deps', []), depends: t.get('test_deps', []),
timeout: 120, timeout: 120,
protocol: 'tap' protocol: 'tap',
is_parallel: not run_exclusive
) )
endforeach endforeach

Loading…
Cancel
Save