tests: Implement multi-monitor tests using Xdmx

This commit is contained in:
Michael Stapelberg
2011-12-24 15:34:28 +01:00
parent 8a67f15ef4
commit dd9743b272
4 changed files with 133 additions and 41 deletions

View File

@ -0,0 +1,21 @@
#!perl
# vim:ts=4:sw=4:expandtab
#
# Tests that the provided X-Server to the t/5??-*.t tests is actually providing
# multiple monitors.
#
use i3test;
my $i3 = i3(get_socket_path());
####################
# Request tree
####################
my $tree = $i3->get_tree->recv;
my @outputs = map { $_->{name} } @{$tree->{nodes}};
is_deeply(\@outputs, [ '__i3', 'xinerama-0', 'xinerama-1' ],
'multi-monitor outputs ok');
done_testing;