1b39c5158Smillert#!/usr/bin/perl 2b39c5158Smillert 3b39c5158SmillertBEGIN { 4b39c5158Smillert unshift @INC, 't/lib'; 5b39c5158Smillert} 6b39c5158Smillertchdir 't'; 7b39c5158Smillert 8*256a93a4Safresh1use strict; 9*256a93a4Safresh1use warnings; 10b39c5158Smillertuse Test::More; 11b39c5158Smillert 12b39c5158SmillertBEGIN { 13b39c5158Smillert if ($^O =~ /beos/i or $^O eq 'haiku') { 14b39c5158Smillert plan tests => 4; 15b39c5158Smillert } else { 16b39c5158Smillert plan skip_all => 'This is not BeOS'; 17b39c5158Smillert } 18b39c5158Smillert} 19b39c5158Smillert 20b39c5158Smillertuse Config; 21b39c5158Smillertuse File::Spec; 22b39c5158Smillertuse File::Basename; 23b39c5158Smillert 24b39c5158Smillert# tels - Taken from MM_Win32.t - I must not understand why this works, right? 25b39c5158Smillert# Does this mimic ExtUtils::MakeMaker ok? 26b39c5158Smillert{ 27b39c5158Smillert @MM::ISA = qw( 28b39c5158Smillert ExtUtils::MM_Unix 29b39c5158Smillert ExtUtils::Liblist::Kid 30b39c5158Smillert ExtUtils::MakeMaker 31b39c5158Smillert ); 32b39c5158Smillert # MM package faked up by messy MI entanglement 33b39c5158Smillert package MM; 34b39c5158Smillert sub DESTROY {} 35b39c5158Smillert} 36b39c5158Smillert 37b39c5158Smillertrequire_ok( 'ExtUtils::MM_BeOS' ); 38b39c5158Smillert 39b39c5158Smillertmy $MM = bless { NAME => "Foo" }, 'MM'; 40b39c5158Smillert 41b39c5158Smillert# init_linker 42b39c5158Smillert{ 43b39c5158Smillert my $libperl = File::Spec->catfile('$(PERL_INC)', 44b39c5158Smillert $Config{libperl} || 'libperl.a' ); 45b39c5158Smillert my $export = ''; 46b39c5158Smillert my $after = ''; 47b39c5158Smillert $MM->init_linker; 48b39c5158Smillert 49b39c5158Smillert is( $MM->{PERL_ARCHIVE}, $libperl, 'PERL_ARCHIVE' ); 50b39c5158Smillert is( $MM->{PERL_ARCHIVE_AFTER}, $after, 'PERL_ARCHIVE_AFTER' ); 51b39c5158Smillert is( $MM->{EXPORT_LIST}, $export, 'EXPORT_LIST' ); 52b39c5158Smillert} 53