ExtUtils::MakeMaker 6.03 -> 6.06_05ish
[p5sagit/p5-mst-13.2.git] / lib / ExtUtils / t / MM_BeOS.t
CommitLineData
39234879 1#!/usr/bin/perl
b9e9e3f2 2
3BEGIN {
39234879 4 if( $ENV{PERL_CORE} ) {
5 chdir 't' if -d 't';
6 @INC = '../lib';
7 }
f6d6199c 8 else {
9 unshift @INC, 't/lib';
10 }
b9e9e3f2 11}
39234879 12chdir 't';
b9e9e3f2 13
14use Test::More;
15
16BEGIN {
17 if ($^O =~ /beos/i) {
18 plan tests => 2;
19 } else {
20 plan skip_all => 'This is not BeOS';
21 }
22}
23
24use Config;
25use File::Spec;
26use File::Basename;
27
28# tels - Taken from MM_Win32.t - I must not understand why this works, right?
29# Does this mimic ExtUtils::MakeMaker ok?
30{
31 @MM::ISA = qw(
32 ExtUtils::MM_Unix
33 ExtUtils::Liblist::Kid
34 ExtUtils::MakeMaker
35 );
36 # MM package faked up by messy MI entanglement
37 package MM;
38 sub DESTROY {}
39}
40
41require_ok( 'ExtUtils::MM_BeOS' );
42
479d2113 43
44# init_linker
b9e9e3f2 45{
479d2113 46 my $libperl = File::Spec->catfile('$(PERL_INC)',
47 $Config{libperl} || 'libperl.a' );
48 my $export = '';
49 my $after = '';
50 $MM->init_linker;
51
52 is( $MM->{PERL_ARCHIVE}, $libperl, 'PERL_ARCHIVE' );
53 is( $MM->{PERL_ARCHIVE_AFTER}, $after, 'PERL_ARCHIVE_AFTER' );
54 is( $MM->{EXPORT_LIST}, $export, 'EXPORT_LIST' );
b9e9e3f2 55}