File: connect.t

package info (click to toggle)
libbot-basicbot-perl 0.93-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 180 kB
  • sloc: perl: 960; makefile: 2
file content (35 lines) | stat: -rw-r--r-- 522 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env perl
use warnings;
use strict;
use Test::More;

plan skip_all => 'This test should use POE::Component::Server::IRC';

use lib qw(lib t/lib);

require IO::Socket;
my $s = IO::Socket::INET->new(
  PeerAddr => "irc.perl.org:80",
  Timeout  => 10,
);

if ($s) {
  close($s);
  plan tests => 4;
} else {
  plan skip_all => "no net connection available";
  exit;
}



use TestBot;

my $bot = TestBot->new(
  nick => "basicbot_$$",
  server => "irc.perl.org",
  channels => ["#bot_basicbot_test"],
);

$bot->run;