/[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 278 - (hide annotations)
Thu Aug 20 19:44:19 2009 UTC (14 years, 9 months ago) by dpavlin
File MIME type: application/x-troff
File size: 570 byte(s)
added masquarade to default device and few helpers for that

1 dpavlin 224 #!/usr/bin/perl
2    
3     use warnings;
4     use strict;
5     use autodie;
6    
7 dpavlin 278 use Test::More tests => 10;
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 );
21 dpavlin 278
22     ok( ip::default_route_dev(), 'default_route_dev' );
23    
24     ok( my $int = ip::to_int( '127.0.0.1' ), 'to_int' );
25     ok( my $ip = ip::from_int( $int ), 'from_int' );
26     cmp_ok( $ip, 'eq', '127.0.0.1', 'same' );

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26