2010-03-11 15:58:39 +01:00
|
|
|
#!perl
|
|
|
|
# vim:ts=4:sw=4:expandtab
|
2012-09-10 14:09:01 +02:00
|
|
|
#
|
|
|
|
# Please read the following documents before working on tests:
|
|
|
|
# • http://build.i3wm.org/docs/testsuite.html
|
|
|
|
# (or docs/testsuite)
|
|
|
|
#
|
|
|
|
# • http://build.i3wm.org/docs/lib-i3test.html
|
|
|
|
# (alternatively: perldoc ./testcases/lib/i3test.pm)
|
|
|
|
#
|
|
|
|
# • http://build.i3wm.org/docs/ipc.html
|
|
|
|
# (or docs/ipc)
|
|
|
|
#
|
|
|
|
# • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
|
|
|
|
# (unless you are already familiar with Perl)
|
2010-03-11 15:58:39 +01:00
|
|
|
|
2011-03-09 20:25:17 +01:00
|
|
|
use i3test;
|
2010-03-11 15:58:39 +01:00
|
|
|
|
2011-07-25 13:35:56 +02:00
|
|
|
my $i3 = i3(get_socket_path());
|
2010-03-11 15:58:39 +01:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Request workspaces
|
|
|
|
####################
|
|
|
|
|
2010-06-02 23:53:22 +02:00
|
|
|
SKIP: {
|
|
|
|
skip "IPC API not yet stabilized", 2;
|
|
|
|
|
2010-03-27 15:20:38 +01:00
|
|
|
my $workspaces = $i3->get_workspaces->recv;
|
2010-03-11 15:58:39 +01:00
|
|
|
|
|
|
|
ok(@{$workspaces} > 0, "More than zero workspaces found");
|
|
|
|
|
2011-10-06 00:21:36 +02:00
|
|
|
#my $name_exists = all { defined($_->{name}) } @{$workspaces};
|
|
|
|
#ok($name_exists, "All workspaces have a name");
|
2010-03-11 15:58:39 +01:00
|
|
|
|
2010-06-02 23:53:22 +02:00
|
|
|
}
|
|
|
|
|
2011-03-09 20:25:17 +01:00
|
|
|
done_testing;
|