Codebase list libmodule-build-tiny-perl / ffe1279
Fix install test in absence of a compiler Leon Timmermans 10 years ago
2 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
00 Revision history for Module::Build::Tiny
11
22 {{$NEXT}}
3 Fix install test in absence of a compiler
34
45 0.034 2014-01-22 03:40:21CET+0100 Europe/Amsterdam
56 Make install tests more platform independent
123123 {
124124 ok( open2(my($in, $out), $^X, Build => 'install'), 'Could run Build install' );
125125 my $output = do { local $/; <$in> };
126 my $filename = quotemeta catfile(qw/install lib perl5/, $Config{archname}, qw/Foo Bar.pm/);
127 like($output, qr/Installing $filename/, 'Build install output looks correctly');
126 my $filename = catfile(qw/install lib perl5/, ($has_compiler? $Config{archname} : () ), qw/Foo Bar.pm/);
127 like($output, qr/Installing \Q$filename/, 'Build install output looks correctly');
128128
129 ok( -f "install/lib/perl5/$Config{archname}/Foo/Bar.pm", 'Module is installed');
129 ok( -f $filename, 'Module is installed');
130130 ok( -f 'install/bin/simple', 'Script is installed');
131131 }
132132