[Module-build-checkins] Module-Build/t basic.t,1.43,1.44
Status: Beta
Brought to you by:
kwilliams
|
From: Ken W. <kwi...@us...> - 2005-07-29 03:24:53
|
Update of /cvsroot/module-build/Module-Build/t In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3761/t Modified Files: basic.t Log Message: Fix a couple problems with extra_compiler_flags and extra_linker_flags Index: basic.t =================================================================== RCS file: /cvsroot/module-build/Module-Build/t/basic.t,v retrieving revision 1.43 retrieving revision 1.44 diff -u -d -r1.43 -r1.44 --- basic.t 29 Jun 2005 08:27:06 -0000 1.43 +++ basic.t 29 Jul 2005 03:24:42 -0000 1.44 @@ -3,7 +3,7 @@ use lib 't/lib'; use strict; -use Test::More tests => 52; +use Test::More tests => 55; use File::Spec (); @@ -198,6 +198,19 @@ is $mb->build_class, 'My::Big::Fat::Builder'; } +# Test conversion of shell strings +{ + my $mb = Module::Build->new( + module_name => $dist->name, + dist_author => 'Foo Meister <fo...@ex...>', + extra_compiler_flags => '-I/foo -I/bar', + extra_linker_flags => '-L/foo -L/bar', + ); + ok $mb; + is_deeply $mb->extra_compiler_flags, ['-I/foo', '-I/bar'], "Should split shell string into list"; + is_deeply $mb->extra_linker_flags, ['-L/foo', '-L/bar'], "Should split shell string into list"; +} + # cleanup chdir( $cwd ) or die "Can''t chdir to '$cwd': $!"; |