summaryrefslogtreecommitdiffstats
path: root/RPM4
diff options
context:
space:
mode:
authornanardon <nanardon@971eb68f-4bfb-0310-8326-d2484c010a4c>2006-06-21 14:47:24 +0000
committernanardon <nanardon@971eb68f-4bfb-0310-8326-d2484c010a4c>2006-06-21 14:47:24 +0000
commit9596488298cd92f8d640a185e1cd380da07a9f8f (patch)
tree8516d70a3fe6234923fe32112e9573fc09d1eeb4 /RPM4
parent63bce8500996311f50f008f9eedae8b7112a2378 (diff)
downloadperl-RPM4-9596488298cd92f8d640a185e1cd380da07a9f8f.tar
perl-RPM4-9596488298cd92f8d640a185e1cd380da07a9f8f.tar.gz
perl-RPM4-9596488298cd92f8d640a185e1cd380da07a9f8f.tar.bz2
perl-RPM4-9596488298cd92f8d640a185e1cd380da07a9f8f.tar.xz
perl-RPM4-9596488298cd92f8d640a185e1cd380da07a9f8f.zip
- add test on ->tag('url')
git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@109 971eb68f-4bfb-0310-8326-d2484c010a4c
Diffstat (limited to 'RPM4')
-rw-r--r--RPM4/t/02header.t3
-rw-r--r--RPM4/t/test-rpm-1.0-1mdk.noarch.rpmbin2036 -> 2195 bytes
-rw-r--r--RPM4/t/test-rpm-1.0-1mdk.src.rpmbin2137 -> 2091 bytes
-rw-r--r--RPM4/t/test-rpm.spec1
4 files changed, 3 insertions, 1 deletions
diff --git a/RPM4/t/02header.t b/RPM4/t/02header.t
index 2fff439..e8fdb28 100644
--- a/RPM4/t/02header.t
+++ b/RPM4/t/02header.t
@@ -1,7 +1,7 @@
# $Id$
use strict;
-use Test::More tests => 40;
+use Test::More tests => 41;
use FindBin qw($Bin);
use RPM4;
@@ -22,6 +22,7 @@ ok($hdr->hastag(1044) eq 0, "Has tag 1044 (SOURCERPM), yes");
ok($hdr->listtag(), "can list tag");
is($hdr->tag(1000), "test-rpm", "accessing tag by id works");
is($hdr->tag("NAME"), "test-rpm", "accessing tag by name works");
+is($hdr->tag("URL"), "http://rpm4.zarb.org/", "accessing tag by name works");
is($hdr->NAME(), "test-rpm", "accessing tag directly works");
ok($hdr->queryformat("%{NAME}-%{VERSION}-%{RELEASE}") eq "test-rpm-1.0-1mdk", "Queryformat is ok");
ok($hdr->nevr() eq "test-rpm-1.0-1mdk", "header->nevr works");
diff --git a/RPM4/t/test-rpm-1.0-1mdk.noarch.rpm b/RPM4/t/test-rpm-1.0-1mdk.noarch.rpm
index 6087dd2..d3c16d5 100644
--- a/RPM4/t/test-rpm-1.0-1mdk.noarch.rpm
+++ b/RPM4/t/test-rpm-1.0-1mdk.noarch.rpm
Binary files differ
diff --git a/RPM4/t/test-rpm-1.0-1mdk.src.rpm b/RPM4/t/test-rpm-1.0-1mdk.src.rpm
index 8f3730a..c68d9c4 100644
--- a/RPM4/t/test-rpm-1.0-1mdk.src.rpm
+++ b/RPM4/t/test-rpm-1.0-1mdk.src.rpm
Binary files differ
diff --git a/RPM4/t/test-rpm.spec b/RPM4/t/test-rpm.spec
index bbd60f1..3c59a70 100644
--- a/RPM4/t/test-rpm.spec
+++ b/RPM4/t/test-rpm.spec
@@ -7,6 +7,7 @@ Release: 1mdk
License: GPL
Group: Application/Development
BuildRoot: %{_tmppath}/%{name}-root
+Url: http://rpm4.zarb.org/
%description
test rpm