diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-08-24 16:14:29 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-08-24 16:14:29 +0000 |
commit | 6238b6c19d992ab03d6a1f7da8b7ea4b3e70e117 (patch) | |
tree | 454c86b87649c4b36b2b3bb42f2b41035d39cf38 /t | |
parent | 89738ec7ae14c19f69a9abef87954cec4b950f3e (diff) | |
download | perl-URPM-6238b6c19d992ab03d6a1f7da8b7ea4b3e70e117.tar perl-URPM-6238b6c19d992ab03d6a1f7da8b7ea4b3e70e117.tar.gz perl-URPM-6238b6c19d992ab03d6a1f7da8b7ea4b3e70e117.tar.bz2 perl-URPM-6238b6c19d992ab03d6a1f7da8b7ea4b3e70e117.tar.xz perl-URPM-6238b6c19d992ab03d6a1f7da8b7ea4b3e70e117.zip |
build a SRPM too
Diffstat (limited to 't')
-rw-r--r-- | t/00prepare.t | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/t/00prepare.t b/t/00prepare.t index 7ea2704..f8dc820 100644 --- a/t/00prepare.t +++ b/t/00prepare.t @@ -2,15 +2,17 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::More tests => 2; +use URPM; use Cwd; chdir 't' if -d 't'; mkdir "tmp"; -for (qw(BUILD SOURCES RPMS RPMS/noarch)) { +for (qw(BUILD SOURCES SRPMS RPMS RPMS/noarch)) { mkdir "tmp/".$_; } # locally build a test rpm -system(rpmbuild => '--define', '_topdir '. Cwd::cwd() . "/tmp/", '-bb', 'test-rpm.spec'); +system(rpmbuild => '--define', '_topdir '. Cwd::cwd() . "/tmp/", '-ba', 'test-rpm.spec'); ok( -f 'tmp/RPMS/noarch/test-rpm-1.0-1mdk.noarch.rpm', 'rpm created' ); +ok( -f 'tmp/SRPMS/test-rpm-1.0-1mdk.src.rpm', 'srpm created' ); |