diff options
author | Olivier Thauvin <nanardon@mandriva.org> | 2007-11-09 13:46:44 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mandriva.org> | 2007-11-09 13:46:44 +0000 |
commit | 123f0f08b6a1060ac5422a6acca434e505007398 (patch) | |
tree | 222d7bb66c524cb0a271c0a35406c1da1c3e8f62 /t | |
parent | e42608ef50db815cae66d6ef2ee02df4c0e140d7 (diff) | |
download | perl-MDV-Distribconf-123f0f08b6a1060ac5422a6acca434e505007398.tar perl-MDV-Distribconf-123f0f08b6a1060ac5422a6acca434e505007398.tar.gz perl-MDV-Distribconf-123f0f08b6a1060ac5422a6acca434e505007398.tar.bz2 perl-MDV-Distribconf-123f0f08b6a1060ac5422a6acca434e505007398.tar.xz perl-MDV-Distribconf-123f0f08b6a1060ac5422a6acca434e505007398.zip |
- for path build from media name, always replace space by '_' even media name is set
Diffstat (limited to 't')
-rw-r--r-- | t/01distribconf.t | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/01distribconf.t b/t/01distribconf.t index 987b284..f73a154 100644 --- a/t/01distribconf.t +++ b/t/01distribconf.t @@ -12,7 +12,7 @@ my %testdpath = ( 'http://server/path/' => 'testdata/test/media/media_info/media.cfg', ); -plan tests => 14 + 28 * scalar(keys %testdpath); +plan tests => 14 + 29 * scalar(keys %testdpath); use_ok('MDV::Distribconf'); @@ -58,6 +58,8 @@ foreach my $path (keys %testdpath) { like($dconf->getfullmediapath('main', 'hdlist'), qr!^/*$path/*media/+main/+media_info/+hdlist.cz$!, "Can get media fullpath"); # vim color: */ like($dconf->getdpath('main', 'hdlist'), qr!^/*media/+main/+media_info/+hdlist.cz$!, "can get dpath"); like($dconf->getfulldpath('main', 'hdlist'), qr!^/*$path/*media/+main/+media_info/+hdlist.cz$!, "can get fulldpath"); + like($dconf->getfullpath('../SRPMS/contrib', 'pubkey'), + qr!^/*$path/*media/+media_info/+pubkey_[^ ]+$!, "can get pubkey full path"); is($dconf->getdpath(undef, 'root'), $path, "can get fulldpath"); is($dconf->getfulldpath(undef, 'VERSION'), "$path/VERSION", "can get fulldpath"); is($dconf->getdpath('main', 'root'), $path, "can get fulldpath root even media is given"); |