Skip to content
This repository
tree: ee6cd30d70
Fetching contributors…

Cannot retrieve contributors at this time

file 21 lines (14 sloc) 0.529 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
use strict;
use Test::More;
use xt::Run;

run "./testdist/HelloWorld-0.01/";

my $ver = `perl -MHelloWorld -e 'print \$HelloWorld::VERSION'`;
is $ver, 0.01;

run "--uninst-shadows", "./testdist/HelloWorld-0.02";
like last_build_log, qr/installed HelloWorld-0.02/;

my $ver = `perl -MHelloWorld -e 'print \$HelloWorld::VERSION'`;
is $ver, 0.02;

chdir "testdist/HelloWorld-0.01"; system "make distclean";
chdir "../../testdist/HelloWorld-0.02"; system "make distclean";

system "pm-uninstall", "-f", "HelloWorld";

done_testing;
Something went wrong with that request. Please try again.