aboutsummaryrefslogtreecommitdiffstats
path: root/t/parse.t
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-04 12:19:10 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-04 12:19:10 +0000
commit91a15ad9f49cf8b333845cd2cd81a93eeed136f3 (patch)
tree5c2e5cb2a0fa952123334dbc8e4b16f7480bf5b4 /t/parse.t
parent690462c611701f6c9a69cd8e2e6da38077d6ad27 (diff)
downloadperl-URPM-91a15ad9f49cf8b333845cd2cd81a93eeed136f3.tar
perl-URPM-91a15ad9f49cf8b333845cd2cd81a93eeed136f3.tar.gz
perl-URPM-91a15ad9f49cf8b333845cd2cd81a93eeed136f3.tar.bz2
perl-URPM-91a15ad9f49cf8b333845cd2cd81a93eeed136f3.tar.xz
perl-URPM-91a15ad9f49cf8b333845cd2cd81a93eeed136f3.zip
Don't require Packdrakeng for running tests
Diffstat (limited to 't/parse.t')
-rw-r--r--t/parse.t14
1 files changed, 11 insertions, 3 deletions
diff --git a/t/parse.t b/t/parse.t
index 103f66a..ace8553 100644
--- a/t/parse.t
+++ b/t/parse.t
@@ -2,8 +2,17 @@
# $Id$
-use strict ;
-use warnings ;
+use strict;
+use warnings;
+
+BEGIN {
+ eval { require Packdrakeng };
+ if ($@) {
+ print "1..0 # SKIP: no Packdrakeng here\n";
+ exit 0;
+ }
+}
+
use Test::More tests => 24;
use URPM;
use URPM::Build;
@@ -51,7 +60,6 @@ ok(URPM::rpmvercmp("1-1mdk", "1-2mdk") == -1, "Right value win = -1");
ok(URPM::rpmvercmp("1-2mdk", "1-1mdk") == 1, "Left value win = 1");
ok(URPM::rpmvercmp("1:1-1mdk", "2:1-1mdk") == -1, "epoch 1 vs 2 = -1");
-
{
open(my $hdfh, "zcat hdlist.cz 2>/dev/null |") or die $!;
my $pkg = URPM::stream2header($hdfh);