/[vz-tools]/trunk/t/10-vz.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

Contents of /trunk/t/10-vz.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 42 - (show annotations)
Fri Feb 8 23:53:40 2008 UTC (16 years, 2 months ago) by dpavlin
File MIME type: application/x-troff
File size: 472 byte(s)
- added vzlist
- added tests
1 #!/usr/bin/perl
2 use warnings;
3 use strict;
4
5 use Test::More tests => 7;
6 use blib;
7
8 my $debug = shift @ARGV;
9
10 BEGIN {
11 use_ok('VZ');
12 }
13
14 is_deeply( hostname2ip('localhost'), '127.0.0.1', 'hostname2ip' );
15
16 is_deeply( ip2hostname('127.0.0.1'), 'localhost', 'ip2hostname' );
17
18 ok(conf_veids(), 'conf_veids');
19
20 ok(my $text = vzlist(), 'vzlist');
21 diag $text if $debug;
22
23 ok(my $hash = vzlist( hash => 1 ), 'vzlist( hash => 1 )');
24 diag dump($hash) if $debug;
25
26 isa_ok($hash, 'HASH');
27

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26