aboutsummaryrefslogtreecommitdiffstats
path: root/t/parse.t
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2007-07-04 15:53:30 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2007-07-04 15:53:30 +0000
commit3d1a4c165264b3d9876fb84cca2ce6335c264b97 (patch)
tree4eb0b2b6087e1ee2eaf84c1a989064f9428d9005 /t/parse.t
parentca1219cb28ad7ef95073a654bb1b103c9e1b69b2 (diff)
downloadperl-URPM-3d1a4c165264b3d9876fb84cca2ce6335c264b97.tar
perl-URPM-3d1a4c165264b3d9876fb84cca2ce6335c264b97.tar.gz
perl-URPM-3d1a4c165264b3d9876fb84cca2ce6335c264b97.tar.bz2
perl-URPM-3d1a4c165264b3d9876fb84cca2ce6335c264b97.tar.xz
perl-URPM-3d1a4c165264b3d9876fb84cca2ce6335c264b97.zip
- add Pkg_is_platform_compat() and Urpm_platformscore() coming with rpm 4.4.8
Diffstat (limited to 't/parse.t')
-rw-r--r--t/parse.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/parse.t b/t/parse.t
index 2a3a8fd..f1788d2 100644
--- a/t/parse.t
+++ b/t/parse.t
@@ -4,7 +4,7 @@
use strict;
use warnings;
-use Test::More tests => 40;
+use Test::More tests => 41;
use MDV::Packdrakeng;
use URPM;
use URPM::Build;
@@ -72,6 +72,7 @@ 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");
my $headers = eval { [ $b->parse_rpms_build_headers(rpms => [ "RPMS/noarch/test-rpm-1.0-1mdk.noarch.rpm" ],
dir => 'headers') ] };