version 1.1, 2007/02/06 18:55:21 |
version 1.4, 2007/02/06 20:59:10 |
|
|
#!perl -T |
#!perl -T |
# $RedRiver: 50-network.t,v 1.5 2007/02/06 00:42:09 andrew Exp $ |
# $RedRiver: 54-network-ap-su.t,v 1.3 2007/02/06 19:17:26 andrew Exp $ |
|
|
use Test::More tests => 37; |
use Test::More tests => 37; |
use File::Spec; |
use File::Spec; |
|
|
use_ok( 'Net::Telnet::Trango' ); |
use_ok( 'Net::Telnet::Trango' ); |
} |
} |
|
|
diag("Testing Net::Telnet::Trango $Net::Telnet::Trango::VERSION, Perl $], $^X"); |
diag("54: Tests that run on both APs and SUs associated or not"); |
diag(" Tests that run on both APs and SUs associated or not"); |
|
|
|
my $cfg_file = File::Spec->catfile('t', 'tests.cfg'); |
my $cfg_file = File::Spec->catfile('t', 'tests.cfg'); |
|
|
|
|
my $t; |
my $t; |
ok($t = Net::Telnet::Trango->new(), "Instantiating object"); |
ok($t = Net::Telnet::Trango->new(), "Instantiating object"); |
|
|
$t->input_log($type . '_input.log'); # XXX Debugging |
|
|
|
ok($t->open($host), "Opening connection to $host"); |
ok($t->open($host), "Opening connection to $host"); |
|
|
ok($t->is_connected, "connected"); |
ok($t->is_connected, "connected"); |
|
|
|
|
is($tftpd->{Tftpd}, 'disabled', "TFTPd is disabled"); |
is($tftpd->{Tftpd}, 'disabled', "TFTPd is disabled"); |
|
|
# XXX for some reason this doesn't return Success. |
# no TODO because I don't want to upgrade Test::Harness |
# XXX at least not on the fox I am testing on. |
#TODO: { |
#if ( (! ok($t->eth_link, "Getting eth link")) |
# # XXX for some reason this doesn't return Success. |
# && $t->last_error ) { |
# # XXX at least not on the fox I am testing on. |
# diag('ERR: ' . $t->last_error); |
# if ( (! ok($t->eth_link, "Getting eth link")) |
#} |
# && $t->last_error ) { |
|
# diag('ERR: ' . $t->last_error); |
|
# } |
|
#} |
|
|
ok($t->bye, "Goodbye"); |
ok($t->bye, "Goodbye"); |
} |
} |