Fix install test in absence of a compiler
Leon Timmermans
10 years ago
0 | 0 |
Revision history for Module::Build::Tiny
|
1 | 1 |
|
2 | 2 |
{{$NEXT}}
|
|
3 |
Fix install test in absence of a compiler
|
3 | 4 |
|
4 | 5 |
0.034 2014-01-22 03:40:21CET+0100 Europe/Amsterdam
|
5 | 6 |
Make install tests more platform independent
|
123 | 123 |
{
|
124 | 124 |
ok( open2(my($in, $out), $^X, Build => 'install'), 'Could run Build install' );
|
125 | 125 |
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');
|
128 | 128 |
|
129 | |
ok( -f "install/lib/perl5/$Config{archname}/Foo/Bar.pm", 'Module is installed');
|
|
129 |
ok( -f $filename, 'Module is installed');
|
130 | 130 |
ok( -f 'install/bin/simple', 'Script is installed');
|
131 | 131 |
}
|
132 | 132 |
|