4 |
|
|
5 |
my $debug = shift @ARGV; |
my $debug = shift @ARGV; |
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 Cwd qw/abs_path/; |
10 |
use blib; |
use blib; |
11 |
|
|
12 |
BEGIN { |
BEGIN { |
21 |
alarm 30; |
alarm 30; |
22 |
}; |
}; |
23 |
|
|
24 |
ok( my $server = CWMP::Server->new({ debug => $debug, port => $port }), 'new' ); |
ok(my $abs_path = abs_path($0), "abs_path"); |
25 |
|
$abs_path =~ s!/[^/]*$!/!; #!fix-vim |
26 |
|
|
27 |
|
ok( my $server = CWMP::Server->new({ |
28 |
|
debug => $debug, |
29 |
|
port => $port, |
30 |
|
store_path => "$abs_path/var/state.db", |
31 |
|
}), 'new' ); |
32 |
isa_ok( $server, 'CWMP::Server' ); |
isa_ok( $server, 'CWMP::Server' ); |
33 |
|
|
34 |
my $pid; |
my $pid; |