mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 16:44:52 +00:00
Run various common checking commands like xdpyinfo, xvinfo, etc on both Xvfb directly, as well as Xephyr inside Xvfb. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
71 lines
1.8 KiB
Meson
71 lines
1.8 KiB
Meson
#
|
|
# run common display info tools like xdpyinfo
|
|
#
|
|
if get_option('xvfb')
|
|
xvfb_args = [
|
|
xvfb_server.full_path(),
|
|
'-screen',
|
|
'scrn',
|
|
'1280x1024x24'
|
|
]
|
|
|
|
testlist = [
|
|
['xdpyinfo', ['xdpyinfo', '-ext', 'all']],
|
|
['xrandr', ['xrandr', '--verbose']],
|
|
['xvinfo', ['xvinfo']],
|
|
]
|
|
|
|
# run tests on xvfb
|
|
foreach test_walk: testlist
|
|
test(test_walk[0],
|
|
simple_xinit,
|
|
args: [
|
|
test_walk[1],
|
|
'--',
|
|
xvfb_args
|
|
],
|
|
suite: 'xvfb display info',
|
|
timeout: 300,
|
|
)
|
|
endforeach
|
|
|
|
# run tests on xephyr inside xvfb
|
|
if get_option('xephyr') and build_glamor
|
|
foreach test_walk: testlist
|
|
test(test_walk[0],
|
|
simple_xinit,
|
|
args: [
|
|
simple_xinit.full_path(),
|
|
test_walk[1],
|
|
'----',
|
|
xephyr_server.full_path(),
|
|
'-schedMax', '2000',
|
|
'--',
|
|
xvfb_args
|
|
],
|
|
suite: 'xehypr info',
|
|
timeout: 300,
|
|
)
|
|
endforeach
|
|
endif
|
|
if get_option('xephyr') and build_glamor
|
|
foreach test_walk: testlist
|
|
test(test_walk[0],
|
|
simple_xinit,
|
|
args: [
|
|
simple_xinit.full_path(),
|
|
test_walk[1],
|
|
'----',
|
|
xephyr_server.full_path(),
|
|
'-glamor',
|
|
'-schedMax', '2000',
|
|
'--',
|
|
xvfb_args
|
|
],
|
|
suite: 'xehypr-glamor display info',
|
|
timeout: 300,
|
|
)
|
|
endforeach
|
|
endif
|
|
endif
|