test:
- PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1)" t/16*.t
+ PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1)" -It/lib t/03* t/05*
all: test
+
+testfull:
+ PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1)" -It/lib t/01* t/02* t/03* t/05* t/17* t/18* t/19* t/20*
#!perl
-use Test::More tests => 4;
-use Test::Deep;
+use i3test tests => 4;
use X11::XCB qw(:all);
-use Data::Dumper;
use Time::HiRes qw(sleep);
BEGIN {
#!perl
# vim:ts=4:sw=4:expandtab
-use Test::More tests => 24;
-use Test::Deep;
+use i3test tests => 24;
use X11::XCB qw(:all);
-use Data::Dumper;
-use FindBin;
-use lib "$FindBin::Bin/lib";
-use i3test;
-use AnyEvent::I3;
use List::Util qw(first);
-use v5.10;
-
-# We use relatively long sleeps (1/4 second) to make sure the window manager
-# reacted.
use Time::HiRes qw(sleep);
+use v5.10;
my $i3 = i3("/tmp/nestedcons");
#!perl
# vim:ts=4:sw=4:expandtab
-use Test::More tests => 5;
-use Test::Deep;
+use i3test tests => 5;
use X11::XCB qw(:all);
-use Data::Dumper;
BEGIN {
use_ok('X11::XCB::Window');
#!perl
# vim:ts=4:sw=4:expandtab
-use Test::More tests => 10;
-use Test::Deep;
+use i3test tests => 10;
use X11::XCB qw(:all);
-use Data::Dumper;
use Time::HiRes qw(sleep);
-use FindBin;
-use lib "$FindBin::Bin/lib";
-use i3test;
BEGIN {
use_ok('X11::XCB::Window');
#!perl
# vim:ts=4:sw=4:expandtab
-use Test::More tests => 3;
-use Test::Deep;
+use i3test tests => 3;
use X11::XCB qw(:all);
-use Data::Dumper;
use Time::HiRes qw(sleep);
-use FindBin;
-use lib "$FindBin::Bin/lib";
-use i3test;
-use AnyEvent::I3;
BEGIN {
- use_ok('IO::Socket::UNIX') or BAIL_OUT('Cannot load IO::Socket::UNIX');
use_ok('X11::XCB::Connection') or BAIL_OUT('Cannot load X11::XCB::Connection');
}
# the workspace to be empty).
# TODO: skip it by default?
-use Test::More tests => 13;
-use Test::Deep;
+use i3test tests => 13;
use X11::XCB qw(:all);
-use Data::Dumper;
use Time::HiRes qw(sleep);
-use FindBin;
-use lib "$FindBin::Bin/lib";
-use i3test;
-use AnyEvent::I3;
BEGIN {
use_ok('X11::XCB::Connection') or BAIL_OUT('Cannot load X11::XCB::Connection');
# the workspace to be empty).
# TODO: skip it by default?
-use Test::More tests => 8;
-use Test::Deep;
+use i3test tests => 8;
use X11::XCB qw(:all);
-use Data::Dumper;
use Time::HiRes qw(sleep);
-use FindBin;
-use lib "$FindBin::Bin/lib";
-use i3test;
-use AnyEvent::I3;
BEGIN {
use_ok('X11::XCB::Connection') or BAIL_OUT('Cannot load X11::XCB::Connection');
# Checks if the focus is correctly restored, when creating a floating client
# over an unfocused tiling client and destroying the floating one again.
-use Test::More tests => 4;
-use Test::Deep;
+use i3test tests => 4;
use X11::XCB qw(:all);
-use Data::Dumper;
use Time::HiRes qw(sleep);
-use FindBin;
-use lib "$FindBin::Bin/lib";
-use i3test;
-use AnyEvent::I3;
BEGIN {
use_ok('X11::XCB::Window') or BAIL_OUT('Could not load X11::XCB::Window');
# the workspace to be empty).
# TODO: skip it by default?
-use Test::More tests => 22;
-use Test::Deep;
+use i3test tests => 22;
use X11::XCB qw(:all);
-use Data::Dumper;
use Time::HiRes qw(sleep);
-use FindBin;
-use lib "$FindBin::Bin/lib";
-use i3test;
-use AnyEvent::I3;
BEGIN {
use_ok('X11::XCB::Connection') or BAIL_OUT('Cannot load X11::XCB::Connection');
#!perl
# vim:ts=4:sw=4:expandtab
-use Test::More tests => 2;
-use Test::Deep;
+use i3test tests => 2;
use X11::XCB qw(:all);
-use Data::Dumper;
use Time::HiRes qw(sleep);
-use FindBin;
-use lib "$FindBin::Bin/lib";
-use i3test;
use List::Util qw(first);
BEGIN {
# the workspace to be empty).
# TODO: skip it by default?
-use Test::More tests => 7;
-use Test::Deep;
+use i3test tests => 7;
use X11::XCB qw(:all);
-use Data::Dumper;
use Time::HiRes qw(sleep);
-use FindBin;
use Digest::SHA1 qw(sha1_base64);
-use lib "$FindBin::Bin/lib";
-use i3test;
-use AnyEvent::I3;
BEGIN {
use_ok('X11::XCB::Connection') or BAIL_OUT('Cannot load X11::XCB::Connection');
# the workspace to be empty).
# TODO: skip it by default?
-use Test::More tests => 15;
-use Test::Deep;
+use i3test tests => 15;
use X11::XCB qw(:all);
-use Data::Dumper;
use Time::HiRes qw(sleep);
-use FindBin;
-use Digest::SHA1 qw(sha1_base64);
-use lib "$FindBin::Bin/lib";
-use i3test;
-use AnyEvent::I3;
BEGIN {
use_ok('X11::XCB::Connection') or BAIL_OUT('Cannot load X11::XCB::Connection');
# the workspace to be empty).
# TODO: skip it by default?
-use Test::More tests => 7;
-use Test::Deep;
+use i3test tests => 7;
use X11::XCB qw(:all);
-use Data::Dumper;
use Time::HiRes qw(sleep);
-use FindBin;
-use Digest::SHA1 qw(sha1_base64);
-use lib "$FindBin::Bin/lib";
-use i3test;
-use AnyEvent::I3;
BEGIN {
use_ok('X11::XCB::Connection') or BAIL_OUT('Cannot load X11::XCB::Connection');
# the workspace to be empty).
# TODO: skip it by default?
-use Test::More tests => 3;
-use Test::Deep;
+use i3test tests => 3;
use X11::XCB qw(:all);
-use Data::Dumper;
use Time::HiRes qw(sleep);
-use FindBin;
-use Digest::SHA1 qw(sha1_base64);
-use lib "$FindBin::Bin/lib";
-use i3test;
-use AnyEvent::I3;
BEGIN {
use_ok('X11::XCB::Connection') or BAIL_OUT('Cannot load X11::XCB::Connection');
#!perl
# vim:ts=4:sw=4:expandtab
-use Test::More tests => 3;
-use Test::Exception;
+use i3test tests => 2;
use List::MoreUtils qw(all);
-use FindBin;
-use lib "$FindBin::Bin/lib";
-use i3test;
-use AnyEvent::I3;
my $i3 = i3;
#!perl
# vim:ts=4:sw=4:expandtab
-use Test::More tests => 8;
-use Test::Deep;
+use i3test tests => 8;
use List::MoreUtils qw(all none);
-use Data::Dumper;
-use AnyEvent::I3;
my $i3 = i3("/tmp/nestedcons");
# Tests whether we can switch to a non-existant workspace
# (necessary for further tests)
#
-use Test::More tests => 2;
-use FindBin;
-use lib "$FindBin::Bin/lib";
-use i3test;
-use AnyEvent::I3;
+use i3test tests => 2;
use v5.10;
my $i3 = i3("/tmp/nestedcons");
#
# Tests whether opening an empty container and killing it again works
#
-use Test::More tests => 6;
-use Data::Dumper;
-use FindBin;
-use lib "$FindBin::Bin/lib";
-use i3test;
-use AnyEvent::I3;
+use i3test tests => 6;
use v5.10;
my $i3 = i3("/tmp/nestedcons");
#
# Tests all kinds of matching methods
#
-use Test::More tests => 4;
-use Data::Dumper;
-use FindBin;
-use lib "$FindBin::Bin/lib";
-use i3test;
-use AnyEvent::I3;
+use i3test tests => 4;
use X11::XCB qw(:all);
use v5.10;
#
# Tests multiple commands (using ';') and multiple operations (using ',')
#
-use Test::More tests => 24;
-use Data::Dumper;
-use FindBin;
-use lib "$FindBin::Bin/lib";
-use i3test;
-use AnyEvent::I3;
+use i3test tests => 24;
use X11::XCB qw(:all);
use v5.10;
package i3test;
# vim:ts=4:sw=4:expandtab
+use Test::Kit qw(
+ Test::Exception
+ Data::Dumper
+ AnyEvent::I3
+),
+ 'Test::Deep' => {
+ exclude => [ qw(all) ],
+ };
+
use File::Temp qw(tmpnam);
use X11::XCB::Rect;
use X11::XCB::Window;
use X11::XCB qw(:all);
use AnyEvent::I3;
-use Exporter qw(import);
+# Test::Kit already uses Exporter
+#use Exporter qw(import);
use base 'Exporter';
our @EXPORT = qw(get_workspace_names get_unused_workspace get_ws_content);