4 |
use strict; |
use strict; |
5 |
use autodie; |
use autodie; |
6 |
|
|
7 |
use Test::More tests => 15; |
use Test::More tests => 16; |
8 |
use Data::Dump qw/dump/; |
use Data::Dump qw/dump/; |
9 |
use English; |
use English; |
10 |
|
|
37 |
ok( my $conf = client::all_conf( $ip ), 'all_conf' ); |
ok( my $conf = client::all_conf( $ip ), 'all_conf' ); |
38 |
diag dump $conf; |
diag dump $conf; |
39 |
|
|
40 |
|
ok( my @ips = client::all_ips(), 'all_ips' ); |
41 |
|
diag dump @ips; |
42 |
|
|
43 |
diag "cleanup"; |
diag "cleanup"; |
44 |
ok( unlink( $_ ), "unlink $_" ) foreach ( glob("$dir/ip/$host/*"), "$dir/mac/$mac" ); |
ok( unlink( $_ ), "unlink $_" ) foreach ( glob("$dir/ip/$host/*"), "$dir/mac/$mac" ); |
45 |
ok( rmdir "$dir/ip/$host", 'rmdir' ); |
ok( rmdir "$dir/ip/$host", 'rmdir' ); |