/[pxelator]/lib/PXElator/t/ip.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /lib/PXElator/t/ip.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 265 - (hide annotations)
Wed Aug 19 12:46:07 2009 UTC (14 years, 9 months ago) by dpavlin
File MIME type: application/x-troff
File size: 370 byte(s)
added ip::devices_up and use it for wireshark to offer sniffing targets

1 dpavlin 224 #!/usr/bin/perl
2    
3     use warnings;
4     use strict;
5     use autodie;
6    
7 dpavlin 265 use Test::More tests => 6;
8 dpavlin 224 use Data::Dump qw/dump/;
9    
10     use_ok 'ip';
11    
12     foreach my $object ( qw/link route/ ) {
13     ok( my @a = ip::lines( $object ), "lines $object" );
14     diag dump( @a );
15     ok( my $h = ip::html( $object ), "html $object" );
16     diag $h;
17     }
18    
19 dpavlin 265 ok( my @devs = ip::devices_up(), 'devices_up' );
20     diag dump( @devs );

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26