diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-01-15 17:12:59 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-01-15 17:12:59 +0000 |
commit | b9e9e3f2f4ab8323cddce5d7342b10a7d698a0e9 (patch) | |
tree | 3987297a0379fb06ddeae9df0e3e6784fe7356c6 /lib/ExtUtils | |
parent | 7d824d8e6f7cacfafe95d58fa9ab3d99bd41e854 (diff) | |
download | perl-b9e9e3f2f4ab8323cddce5d7342b10a7d698a0e9.tar.gz |
MM_BeOS from Tels.
p4raw-id: //depot/perl@14285
Diffstat (limited to 'lib/ExtUtils')
-rw-r--r-- | lib/ExtUtils/t/MM_BeOS.t | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/lib/ExtUtils/t/MM_BeOS.t b/lib/ExtUtils/t/MM_BeOS.t new file mode 100644 index 0000000000..4b8ecc4de3 --- /dev/null +++ b/lib/ExtUtils/t/MM_BeOS.t @@ -0,0 +1,46 @@ +#!perl + +# 2001-01-14 Tels v0.01 + +our $VERSION = 0.01; + +BEGIN { + chdir 't' if -d 't'; + @INC = '../lib'; +} + +use Test::More; + +BEGIN { + if ($^O =~ /beos/i) { + plan tests => 2; + } else { + plan skip_all => 'This is not BeOS'; + } +} + +use Config; +use File::Spec; +use File::Basename; + +# tels - Taken from MM_Win32.t - I must not understand why this works, right? +# Does this mimic ExtUtils::MakeMaker ok? +{ + @MM::ISA = qw( + ExtUtils::MM_Unix + ExtUtils::Liblist::Kid + ExtUtils::MakeMaker + ); + # MM package faked up by messy MI entanglement + package MM; + sub DESTROY {} +} + +require_ok( 'ExtUtils::MM_BeOS' ); + +# perl_archive() +{ + my $libperl = $Config{libperl} || 'libperl.a'; + is( MM->perl_archive(), File::Spec->catfile('$(PERL_INC)', $libperl ), + 'perl_archive() should respect libperl setting' ); +} |