aboutsummaryrefslogtreecommitdiffstats
path: root/t/00prepare.t
diff options
context:
space:
mode:
Diffstat (limited to 't/00prepare.t')
-rw-r--r--t/00prepare.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/00prepare.t b/t/00prepare.t
new file mode 100644
index 0000000..7ea2704
--- /dev/null
+++ b/t/00prepare.t
@@ -0,0 +1,16 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+use Test::More tests => 1;
+use Cwd;
+
+chdir 't' if -d 't';
+mkdir "tmp";
+for (qw(BUILD SOURCES RPMS RPMS/noarch)) {
+ mkdir "tmp/".$_;
+}
+# locally build a test rpm
+system(rpmbuild => '--define', '_topdir '. Cwd::cwd() . "/tmp/", '-bb', 'test-rpm.spec');
+ok( -f 'tmp/RPMS/noarch/test-rpm-1.0-1mdk.noarch.rpm', 'rpm created' );
+