This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Syncing with bleadperl
[perl5.git] / lib / ExtUtils / t / MM_BeOS.t
... / ...
CommitLineData
1#!/usr/bin/perl
2
3BEGIN {
4 if( $ENV{PERL_CORE} ) {
5 chdir 't' if -d 't';
6 @INC = '../lib';
7 }
8}
9chdir 't';
10
11use Test::More;
12
13BEGIN {
14 if ($^O =~ /beos/i) {
15 plan tests => 2;
16 } else {
17 plan skip_all => 'This is not BeOS';
18 }
19}
20
21use Config;
22use File::Spec;
23use File::Basename;
24
25# tels - Taken from MM_Win32.t - I must not understand why this works, right?
26# Does this mimic ExtUtils::MakeMaker ok?
27{
28 @MM::ISA = qw(
29 ExtUtils::MM_Unix
30 ExtUtils::Liblist::Kid
31 ExtUtils::MakeMaker
32 );
33 # MM package faked up by messy MI entanglement
34 package MM;
35 sub DESTROY {}
36}
37
38require_ok( 'ExtUtils::MM_BeOS' );
39
40# perl_archive()
41{
42 my $libperl = $Config{libperl} || 'libperl.a';
43 is( MM->perl_archive(), File::Spec->catfile('$(PERL_INC)', $libperl ),
44 'perl_archive() should respect libperl setting' );
45}