mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2024-12-25 21:59:11 +01:00
3200016033
zpos-3x maps three layers to primary, cursor and one of the overlays planes. zpos-4x-partial sets up 4 layers but is only able to find a plane for 3 layers, because ordering between the two overlay planes is undefined.
39 lines
811 B
Meson
39 lines
811 B
Meson
test_inc = include_directories('include')
|
|
|
|
# This mock library will replace libdrm
|
|
mock_drm_lib = shared_library(
|
|
'drm',
|
|
files('libdrm_mock.c'),
|
|
include_directories: [test_inc],
|
|
dependencies: drm.partial_dependency(compile_args: true),
|
|
soversion: drm.version().split('.')[0], # TODO: get it from the real dep
|
|
)
|
|
|
|
mock_liftoff = declare_dependency(
|
|
link_with: [mock_drm_lib, liftoff_lib],
|
|
include_directories: [liftoff_inc, test_inc],
|
|
dependencies: drm.partial_dependency(compile_args: true),
|
|
)
|
|
|
|
test_alloc_exe = executable(
|
|
'test-alloc',
|
|
files('test_alloc.c'),
|
|
dependencies: mock_liftoff,
|
|
)
|
|
|
|
alloc_tests = [
|
|
'basic',
|
|
'simple-1x',
|
|
'simple-1x-fail',
|
|
'simple-3x',
|
|
'zpos-3x',
|
|
'zpos-4x-partial',
|
|
]
|
|
|
|
foreach name : alloc_tests
|
|
test(
|
|
'alloc@' + name,
|
|
test_alloc_exe,
|
|
args: [name],
|
|
)
|
|
endforeach
|