diff options
author | Olivier Thauvin <nanardon@mandriva.org> | 2007-07-18 23:10:22 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mandriva.org> | 2007-07-18 23:10:22 +0000 |
commit | 1b7c93ad588a6c4d1d3f5bb4f166d51933043e27 (patch) | |
tree | d8931ba6c73340376458597ec1e87f41a97b308f /t/01history.t | |
parent | 315b9a7257a2b8f0193dad340c00252bd962d5c4 (diff) | |
download | perl-MDV-Distribconf-1b7c93ad588a6c4d1d3f5bb4f166d51933043e27.tar perl-MDV-Distribconf-1b7c93ad588a6c4d1d3f5bb4f166d51933043e27.tar.gz perl-MDV-Distribconf-1b7c93ad588a6c4d1d3f5bb4f166d51933043e27.tar.bz2 perl-MDV-Distribconf-1b7c93ad588a6c4d1d3f5bb4f166d51933043e27.tar.xz perl-MDV-Distribconf-1b7c93ad588a6c4d1d3f5bb4f166d51933043e27.zip |
- add fake hdlists and synthesis and test existance (test is skip at time)
Diffstat (limited to 't/01history.t')
-rw-r--r-- | t/01history.t | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/t/01history.t b/t/01history.t index f3db55c..40e4099 100644 --- a/t/01history.t +++ b/t/01history.t @@ -8,7 +8,7 @@ use MDV::Distribconf; my @testdpath = glob('testdata/history/*/*/*'); -plan tests => 5 * scalar(@testdpath); +plan tests => 6 * scalar(@testdpath); foreach my $path (@testdpath) { ok( @@ -23,4 +23,18 @@ foreach my $path (@testdpath) { like($arch, '/.+/', "can get arch"); like($dconf->getvalue(undef, "platform"), "/^$arch" . '-(mandriva|mandrake)-linux-gnu$/', "can get arch"); } + my $foundhd = 0; + my $medias = 0; + foreach my $m ($dconf->listmedia()) { + $medias++; + if (-f $dconf->getfullpath($m, 'hdlist')) { + $foundhd++; + } else { + print STDERR "$m " . $dconf->getfullpath($m, 'hdlist') . " not found\n"; + } + } + SKIP: { + skip "Test not completed", 1 unless(0); + is($foundhd, $medias, "All hdlists can be found"); + } } |