libliftoff/test/meson.build
Simon Ser c5d22e1310
Add intersection checks for composited layer on top check
has_composited_layer_on_top is now less strict and performs plane intersection
checks before returning true.

This allows for more layers to be assigned to planes, the relevant tests have
been enabled.

References: https://github.com/emersion/libliftoff/issues/3
2019-09-15 17:08:32 +03:00

46 lines
1,002 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-3x-intersect-fail',
'zpos-3x-intersect-partial',
'zpos-3x-disjoint-partial',
#'zpos-3x-disjoint',
'zpos-4x-intersect-partial',
#'zpos-4x-disjoint',
'zpos-4x-domino-fail',
'zpos-4x-domino-partial',
]
foreach name : alloc_tests
test(
'alloc@' + name,
test_alloc_exe,
args: [name],
)
endforeach