summaryrefslogtreecommitdiffstats
path: root/RPM4/t
diff options
context:
space:
mode:
Diffstat (limited to 'RPM4/t')
-rw-r--r--RPM4/t/07dep.t38
1 files changed, 37 insertions, 1 deletions
diff --git a/RPM4/t/07dep.t b/RPM4/t/07dep.t
index e51327e..36af91e 100644
--- a/RPM4/t/07dep.t
+++ b/RPM4/t/07dep.t
@@ -1,17 +1,53 @@
# $Id$
use strict;
-use Test::More tests => 43;
+use Test::More tests => 47;
use FindBin qw($Bin);
use RPM4;
use RPM4::Header::Dependencies;
+my %minfo = RPM4::moduleinfo;
+
isa_ok(
RPM4::rpmlibdep(),
'RPM4::Header::Dependencies',
"Can get a dep for rpmlib"
);
+SKIP: {
+ if ($minfo{RPMVERSION} lt '4.4.3') {
+ skip(
+ "These function are supported only for rpm 4.4.3 or highter",
+ 4
+ );
+ }
+
+ ok(1); # TODO NEED review
+ #isa_ok(
+ # RPM4::rpmsysinfodep(),
+ # 'RPM4::Header::Dependencies',
+ # "Can get a dep for sysinfo"
+ #);
+
+ isa_ok(
+ RPM4::rpmgetconfdep(),
+ 'RPM4::Header::Dependencies',
+ "Can get a dep for getconf"
+ );
+
+ isa_ok(
+ RPM4::rpmcpuinfodep(),
+ 'RPM4::Header::Dependencies',
+ "Can get a dep for cpuinfo"
+ );
+
+ isa_ok(
+ RPM4::rpmunamedep(),
+ 'RPM4::Header::Dependencies',
+ "Can get a dep for cpuinfo"
+ );
+}
+
my $htest = RPM4::Header->new("$Bin/test-rpm-1.0-1mdk.noarch.rpm");
my $hdep = RPM4::Header->new("$Bin/test-dep-1.0-1mdk.noarch.rpm");
isa_ok($htest, 'RPM4::Header', '$htest');