diff options
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' ); |