aboutsummaryrefslogtreecommitdiffstats
path: root/t/00prepare.t
blob: d454c024fd5a48b045c73ce1a442f0e0a21a195f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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' );