aboutsummaryrefslogtreecommitdiffstats
path: root/t/00prepare.t
diff options
context:
space:
mode:
Diffstat (limited to 't/00prepare.t')
-rw-r--r--t/00prepare.t13
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' );