summaryrefslogtreecommitdiffstats
path: root/RPM4/t
diff options
context:
space:
mode:
authornanardon <nanardon@971eb68f-4bfb-0310-8326-d2484c010a4c>2007-07-03 18:11:08 +0000
committernanardon <nanardon@971eb68f-4bfb-0310-8326-d2484c010a4c>2007-07-03 18:11:08 +0000
commitfc2c5fcbfd9645638db179000ad03e272dae9187 (patch)
tree3d19969526d9cfa243d9b268d1851a1fe0c6fd83 /RPM4/t
parent8e57ea941d277c1e603b222abaf2d64b1ee359a2 (diff)
downloadperl-RPM4-fc2c5fcbfd9645638db179000ad03e272dae9187.tar
perl-RPM4-fc2c5fcbfd9645638db179000ad03e272dae9187.tar.gz
perl-RPM4-fc2c5fcbfd9645638db179000ad03e272dae9187.tar.bz2
perl-RPM4-fc2c5fcbfd9645638db179000ad03e272dae9187.tar.xz
perl-RPM4-fc2c5fcbfd9645638db179000ad03e272dae9187.zip
- add platformscore() function
git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@127 971eb68f-4bfb-0310-8326-d2484c010a4c
Diffstat (limited to 'RPM4/t')
-rwxr-xr-xRPM4/t/03rpmlib.t8
1 files changed, 7 insertions, 1 deletions
diff --git a/RPM4/t/03rpmlib.t b/RPM4/t/03rpmlib.t
index c462768..996bfce 100755
--- a/RPM4/t/03rpmlib.t
+++ b/RPM4/t/03rpmlib.t
@@ -1,7 +1,7 @@
# $Id$
use strict;
-use Test::More tests => 52;
+use Test::More tests => 53;
use FindBin qw($Bin);
use RPM4;
@@ -27,6 +27,12 @@ close($null);
ok(length(RPM4::getosname), "Return OS name");
ok(length(RPM4::getarchname), "Return arch name");
ok(length(RPM4::buildhost), "Return buildhost");
+SKIP: {
+ eval { RPM4::platformscore(""); };
+ skip "no RPM4::platformscore()", 1 if($@);
+
+ok(RPM4::platformscore("any-any-nonos") == 0, "can evaluate platform score");
+}
# Playing with macros
my $target_cpu = RPM4::expand("%_target_cpu");