aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-01-15 07:48:35 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-01-15 07:48:35 +0000
commit31d8f17a882de336a47b5b5a43b109a0e6bcb97e (patch)
treed56a191cde76ad14f4f5fbaea2d51b30cba85336
parent612e0ca300d0e5046a5213309371da6c1ab7548e (diff)
downloadperl-URPM-31d8f17a882de336a47b5b5a43b109a0e6bcb97e.tar
perl-URPM-31d8f17a882de336a47b5b5a43b109a0e6bcb97e.tar.gz
perl-URPM-31d8f17a882de336a47b5b5a43b109a0e6bcb97e.tar.bz2
perl-URPM-31d8f17a882de336a47b5b5a43b109a0e6bcb97e.tar.xz
perl-URPM-31d8f17a882de336a47b5b5a43b109a0e6bcb97e.zip
move test-rpm.spec into t/
-rw-r--r--MANIFEST2
-rw-r--r--t/00prepare.t2
-rw-r--r--t/parse.t3
-rw-r--r--t/test-rpm.spec (renamed from test-rpm.spec)0
4 files changed, 4 insertions, 3 deletions
diff --git a/MANIFEST b/MANIFEST
index 6f4e1c9..9c155c2 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -16,6 +16,6 @@ t/parse.t
t/pod.t
t/rpmdb.t
t/synthesis.t
+t/test-rpm.spec
ChangeLog
META.yml Module meta-data (added by MakeMaker)
-test-rpm.spec
diff --git a/t/00prepare.t b/t/00prepare.t
index 7261e48..fc29900 100644
--- a/t/00prepare.t
+++ b/t/00prepare.t
@@ -10,7 +10,7 @@ for (qw(BUILD RPMS RPMS/noarch tmp)) {
mkdir $_;
}
# locally build a test rpm
-system(rpmbuild => '--define', '_topdir .', '--define', '_tmppath ' . Cwd::cwd() . '/tmp/', '-bb', '../test-rpm.spec');
+system(rpmbuild => '--define', '_topdir .', '--define', '_tmppath ' . Cwd::cwd() . '/tmp/', '-bb', 'test-rpm.spec');
ok( -f 'RPMS/noarch/test-rpm-1.0-1mdk.noarch.rpm', 'rpm created' );
END { system('rm -rf BUILD tmp') };
diff --git a/t/parse.t b/t/parse.t
index dc04302..a0c51f0 100644
--- a/t/parse.t
+++ b/t/parse.t
@@ -33,6 +33,7 @@ TODO: {
q/get headers from parsing rpm/);
}
+mkdir 't/headers';
system('touch t/headers/empty');
is(URPM->new->parse_hdlist('t/headers/empty'), undef, 'empty header');
system('echo FOO > t/headers/bad');
@@ -100,7 +101,7 @@ ok(URPM::rpmvercmp("1:1-1mdk", "2:1-1mdk") == -1, "epoch 1 vs 2 = -1");
}
{
- my $pkg = URPM::spec2srcheader("test-rpm.spec");
+ my $pkg = URPM::spec2srcheader("t/test-rpm.spec");
ok(defined $pkg, "Parsing a spec works");
is($pkg->get_tag(1000), 'test-rpm', 'parsed correctly');
$pkg = URPM::spec2srcheader("doesnotexist.spec");
diff --git a/test-rpm.spec b/t/test-rpm.spec
index bbd60f1..bbd60f1 100644
--- a/test-rpm.spec
+++ b/t/test-rpm.spec