Skip to content

Commit

Permalink
Test local package installation
Browse files Browse the repository at this point in the history
  • Loading branch information
ferki committed Jul 29, 2023
1 parent 1f02664 commit 7eb589c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/Rex/Pkg/Test.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ sub new {

bless $self, $proto;

$self->{commands} = { install => 'echo %s' };

return $self;
}

Expand Down
9 changes: 8 additions & 1 deletion t/package.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ use warnings;

our $VERSION = '9999.99.99_99'; # VERSION

use Test::More tests => 1;
use Test::More tests => 2;
use Test::Deep;
use Test::Exception;

use Rex::Pkg::Test;

Expand Down Expand Up @@ -50,4 +51,10 @@ subtest 'package list diffs' => sub {
cmp_deeply( \@mods, \@expected, 'expected package modifications' );
};

subtest 'local package installation' => sub {
plan tests => 1;

lives_ok { $pkg->update('test_package') }, 'update test package';
};

1;

0 comments on commit 7eb589c

Please sign in to comment.