/[pxelator]/lib/PXElator/t/shell.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/shell.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 204 - (hide annotations)
Wed Aug 12 19:41:24 2009 UTC (14 years, 9 months ago) by dpavlin
File MIME type: application/x-troff
File size: 340 byte(s)
added shell execution and output parsing
1 dpavlin 204 #!/usr/bin/perl
2    
3     use warnings;
4     use strict;
5     use autodie;
6    
7     use Test::More tests => 9;
8    
9     use_ok 'shell';
10    
11     foreach my $command ( 'sudo brctl show', 'df -P' ) {
12     ok( my $array = shell->command($command)->lines, $command );
13     isa_ok( $array, 'ARRAY' );
14    
15     ok( my $hash = shell->command($command)->hash_by(1), $command );
16     isa_ok( $hash, 'HASH' );
17     }

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26