summaryrefslogtreecommitdiff
path: root/perl-RPM2/test.pl
diff options
context:
space:
mode:
authorcturner <devnull@localhost>2003-12-08 21:36:50 +0000
committercturner <devnull@localhost>2003-12-08 21:36:50 +0000
commit6517cd197971687e4e3ae0452b5da1d48772acbd (patch)
tree353f9799a6417025950577157abc3968b56c428b /perl-RPM2/test.pl
parent5e20d90422cb49d77248a11711ada17f28bf32de (diff)
downloadlibrpm-tizen-6517cd197971687e4e3ae0452b5da1d48772acbd.tar.gz
librpm-tizen-6517cd197971687e4e3ae0452b5da1d48772acbd.tar.bz2
librpm-tizen-6517cd197971687e4e3ae0452b5da1d48772acbd.zip
add bindings and test case to load hdlist files like the python bindings
CVS patchset: 6965 CVS date: 2003/12/08 21:36:50
Diffstat (limited to 'perl-RPM2/test.pl')
-rw-r--r--perl-RPM2/test.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-RPM2/test.pl b/perl-RPM2/test.pl
index ff3229f01..089c9aa6f 100644
--- a/perl-RPM2/test.pl
+++ b/perl-RPM2/test.pl
@@ -11,7 +11,7 @@ use strict;
use Test;
use strict;
-BEGIN { plan tests => 35 };
+BEGIN { plan tests => 59 };
use RPM2;
ok(1); # If we made it this far, we're ok.
@@ -182,3 +182,7 @@ ok(scalar(@rpms) == 1);
ok($t->run());
# Test closing the database
ok($t->close_db());
+
+my @headers = RPM2->open_hdlist("hdlist-test.hdr");
+ok(scalar @headers, 3, 'found three headers in hdlist-test.hdr');
+ok(grep { $_->tag('name') eq 'mod_perl' } @headers);