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

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

Thread Previous | Thread Next
February 6, 2003 06:03
Re: MakeMaker and TESTS => 't/*.t t/*/*.t'
Message ID:
On Tue, Feb 04, 2003 at 03:55:27PM -0000, 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
> One of the things I've been thinking about is having Test::Harness
> include some sort of globby mechanism so that the caller can specify a
> directory, and T::H will recursively walk the directory looking for .t
> files, a la find.
> Thoughts?

I don't see why not.  Two new functions would be nice.  One to do the 
equivalent of run_tests(glob("t/*.t")) and another to do a full recursive 
search.  It certainly would solve a lot of these silly glob compatibility 

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About