11 |
use_ok('Frey::Shell::Log'); |
use_ok('Frey::Shell::Log'); |
12 |
} |
} |
13 |
|
|
14 |
ok( my $o = Frey::Shell::Log->new( log_command => 'tail -5 /var/log/daemon.log', request_url => '/', debug => $debug ), 'new' ); |
my $log = 'tail -5 /var/log/daemon.log'; |
15 |
|
if ( $ENV{PROFILE} ) { |
16 |
|
$log = 'cat /var/log/{syslog,messages} /var/log/{kern,auth,daemon,mail,user}.log'; |
17 |
|
} |
18 |
|
|
19 |
|
ok( my $o = Frey::Shell::Log->new( log_command => $log, request_url => '/', debug => $debug ), "new $log" ); |
20 |
ok( my $sponge = $o->as_sponge, 'as_sponge' ); |
ok( my $sponge = $o->as_sponge, 'as_sponge' ); |
21 |
diag $o->dump( $sponge ) if $debug; |
diag $o->dump( $sponge ) if $debug; |
22 |
ok( $sponge->{rows}, 'rows' ); |
ok( $sponge->{rows}, 'rows' ); |