blob: ef7e47aba5601fd626a705c4968e415bb50cd1a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/perl
# $Id: 01distribconf.t 56934 2006-08-21 10:16:29Z nanardon $
use strict;
use Test::More;
use MDV::Distribconf;
my @testdpath = glob('testdata/history/*/*/*');
plan tests => 5 * scalar(@testdpath);
foreach my $path (@testdpath) {
ok(
my $dconf = MDV::Distribconf->new($path),
"Can get new MDV::Distribconf"
);
ok($dconf->load(), "can load $path");
ok($dconf->listmedia(), "can list media");
ok($dconf->getvalue(undef, "arch"), "can get arch");
like($dconf->getvalue(undef, "platform"), '/^[^-]*-(mandriva|mandrake)-linux-gnu$/', "can get arch");
}
|