[BACK]Return to 53-network-add_su-ap-su.t CVS log [TXT][DIR] Up to [local] / trango / Net-Telnet-Trango / t

Diff for /trango/Net-Telnet-Trango/t/53-network-add_su-ap-su.t between version 1.2 and 1.4

version 1.2, 2007/02/06 17:40:36 version 1.4, 2007/02/06 20:59:10
Line 1 
Line 1 
 #!perl -T  #!perl -T
 # $RedRiver: 53-network-add_su-ap-su.t,v 1.1 2007/02/06 17:26:54 andrew Exp $  # $RedRiver: 53-network-add_su-ap-su.t,v 1.3 2007/02/06 20:42:40 andrew Exp $
   
 use Test::More tests => 17;  use Test::More tests => 17;
 use File::Spec;  use File::Spec;
Line 8 
Line 8 
         use_ok( 'Net::Telnet::Trango' );          use_ok( 'Net::Telnet::Trango' );
 }  }
   
 diag("Testing Net::Telnet::Trango $Net::Telnet::Trango::VERSION, Perl $], $^X");  diag("53: AP tests when adding an SU to an AP and the SU should associate");
 diag("  AP tests when adding an SU to an AP and the SU should associate");  
   
 my $cfg_file = File::Spec->catfile('t', 'tests.cfg');  my $cfg_file = File::Spec->catfile('t', 'tests.cfg');
 my ($cir, $mir) = (128, 256);  my ($cir, $mir) = (128, 256);
Line 60 
Line 59 
         $su = $1;          $su = $1;
     }      }
   
     skip 'No valid ' . $type . ' in config file',        $skipped unless $host;      skip 'No valid SU in config file',        $skipped unless $su;
   
     if ($cfg{$type . '_PASSWD'} && $cfg{$type . '_PASSWD'} =~ /^(.*)$/) {      if ($cfg{$type . '_PASSWD'} && $cfg{$type . '_PASSWD'} =~ /^(.*)$/) {
         $su_pass = $1;          $su_pass = $1;
     }      }
   
     skip 'No valid ' . $type . '_PASSWD in config file', $skipped unless $pass;      skip 'No valid SU_PASSWD in config file', $skipped unless $su_pass;
   
     my $t;      my $t;
     ok($t = Net::Telnet::Trango->new(), "Instantiating object");      ok($t = Net::Telnet::Trango->new(), "Instantiating object");
Line 150 
Line 149 
     }      }
   
     ok($t->bye, "Goodbye");      ok($t->bye, "Goodbye");
   
       if ($su && $su_pass) {
           diag("Waiting 30 seconds for SU to associate");
           sleep 30;
       }
   
 }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>