diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-03 09:17:43 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-03 09:17:43 +0000 |
commit | e4edacf1184a40fb76d46e67501a35a2fcf117f5 (patch) | |
tree | 6cc4b84ab0eb2577c709c5f9e673504e5826caee /t/00prepare.t | |
parent | 52f8e96232dbb7c7504a5a016a64d72421ffe76c (diff) | |
download | perl-URPM-e4edacf1184a40fb76d46e67501a35a2fcf117f5.tar perl-URPM-e4edacf1184a40fb76d46e67501a35a2fcf117f5.tar.gz perl-URPM-e4edacf1184a40fb76d46e67501a35a2fcf117f5.tar.bz2 perl-URPM-e4edacf1184a40fb76d46e67501a35a2fcf117f5.tar.xz perl-URPM-e4edacf1184a40fb76d46e67501a35a2fcf117f5.zip |
Rebuild test rpm when running tests. Add cleanup to files.
Diffstat (limited to 't/00prepare.t')
-rw-r--r-- | t/00prepare.t | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/00prepare.t b/t/00prepare.t new file mode 100644 index 0000000..d454c02 --- /dev/null +++ b/t/00prepare.t @@ -0,0 +1,13 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use Test::More tests => 1; + +chdir 't' if -d 't'; +for (qw(BUILD RPMS RPMS/noarch)) { + mkdir $_; +} +# locally build a test rpm +system(rpmbuild => '--define', '_topdir .', '-bb', '--clean', '../test-rpm.spec'); +ok( -f 'RPMS/noarch/test-rpm-1.0-1mdk.noarch.rpm', 'rpm created' ); |