develooper Front page | perl.perl5.porters | Postings from February 2003

Re: MakeMaker and TESTS => 't/*.t t/*/*.t'

Thread Previous
From:
Nicholas Clark
Date:
February 3, 2003 07:33
Subject:
Re: MakeMaker and TESTS => 't/*.t t/*/*.t'
Message ID:
20030203153333.T83537@plum.flirble.org
On Sun, Feb 02, 2003 at 04:09:15PM +0100, Abe Timmerman wrote:
> Op een druilerige winterdag (Sunday 02 February 2003 14:25), schreef Jos I. 
> Boumans:
> 
> > abigail@abigail.nl wrote:

> > > I added "test => {TESTS => 't/*.t t/*/*.t'}" to the call to WriteMakefile
> > > in Makefile.PL, and all worked well. At least, so I thought. It works
> > > fine on Unix, but it seems to fail under Windows. I got the following
> > > report:

> CMD.EXE will work with slashes if you dubble-quote the path.
> I think it's a globbing issue, CMD.EXE doesn't glob like sh, so this:
> 
> 	my @tests = qw(t/*.t t/*/*.t);
> 	WriteMakefile(
> 	...
> 	    test => {TESTS => $^O eq 'MSWin32' 
> 	                    ? "@{[ map glob( $_ ) => @tests ]}" : "@tests" }
>         );
> 
> will work, but it could generate a *long* commandline for "make test", which 
> could also give problems.
> 
> I just checked, and it works for Regexp::Common-2.105 (on WindowsXP)

This was the hack I was going to suggest. Does the VMS shell glob "correctly"
(ie in a Unix-like way)? If so, I think that you're sorted.
If not, I belive that you have some "fun", as VMS command line length is
quite limited (256 characters, IIRC)

Nicholas Clark

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About