7 use Test::More tests => 7;
8 use Data::Dump qw/dump/;
12 my $host = '127.0.0.1';
13 my $test_path = "$server::base_dir/conf/$server::ip/ip/$host/test";
14 unlink $test_path if -e $test_path;
16 ok( client::conf( $host => 'test', default => 'default' ), 'conf default' );
17 cmp_ok( client::conf( $host => 'test' ), 'eq', 'default', 'default' );
18 ok( client::conf( $host => 'test' => 'value' ), 'conf set' );
19 cmp_ok( client::conf( $host => 'test' ), 'eq', 'value', 'value' );
22 ok( unlink($test_path), "unlink $test_path" );
23 $test_path =~ s{/[^/]+$}{};
24 ok( rmdir($test_path), "rmdir $test_path" );