aboutsummaryrefslogtreecommitdiffstats
path: root/t/parse.t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-14 10:13:51 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-14 10:13:51 +0000
commitd7145ff99479ccbe3eadd979c27e5be46524319b (patch)
treec561b5af3852cb0b30640161e30e49b50ab1656c /t/parse.t
parent9012e38cad2b0bca32588e02198ceced32c219d5 (diff)
downloadperl-URPM-d7145ff99479ccbe3eadd979c27e5be46524319b.tar
perl-URPM-d7145ff99479ccbe3eadd979c27e5be46524319b.tar.gz
perl-URPM-d7145ff99479ccbe3eadd979c27e5be46524319b.tar.bz2
perl-URPM-d7145ff99479ccbe3eadd979c27e5be46524319b.tar.xz
perl-URPM-d7145ff99479ccbe3eadd979c27e5be46524319b.zip
test is_platform_compat() only on jbj's rpm
Diffstat (limited to 't/parse.t')
-rw-r--r--t/parse.t9
1 files changed, 8 insertions, 1 deletions
diff --git a/t/parse.t b/t/parse.t
index f1788d2..3f481f3 100644
--- a/t/parse.t
+++ b/t/parse.t
@@ -72,7 +72,9 @@ is($pkg->get_tag(1001), '1.0', 'version');
is($pkg->get_tag(1002), '1mdk', 'release');
is($pkg->queryformat("%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}"), "test-rpm-1.0-1mdk.noarch",
q/get headers from hdlist/);
-ok($pkg->is_platform_compat() > 0, "can evaluate platform score");
+rpm_is_jbj_version() ?
+ ok($pkg->is_platform_compat() > 0, "can evaluate platform score") :
+ pass('no platform compat');
my $headers = eval { [ $b->parse_rpms_build_headers(rpms => [ "RPMS/noarch/test-rpm-1.0-1mdk.noarch.rpm" ],
dir => 'headers') ] };
@@ -117,3 +119,8 @@ ok(URPM::rpmvercmp("1:1-1mdk", "2:1-1mdk") == -1, "epoch 1 vs 2 = -1");
ok(!defined $pkg, "bad spec");
END { unlink "bad.spec" }
}
+
+sub rpm_is_jbj_version {
+ # checking for --yaml support
+ `rpm --help` =~ /yaml/;
+}