#!/usr/bin/perl
use strict;
use_ok 'OPM::Maker::Command::build';
my $dir = File::Spec->rel2abs( dirname __FILE__ );
my $sopm = File::Spec->catfile( $dir, '..', 'valid', 'TestSMTP', 'TestSMTP.sopm' );
my $opm = File::Spec->catfile( $dir, '..', 'valid', 'TestSMTP', 'TestSMTP-0.0.1.opm' );
OPM::Maker::Command::build::execute( undef, {}, [ $sopm ] );
ok -e $opm;
ok( unlink $opm );
ok !-e $opm;
done_testing();