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

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

Thread Next
February 2, 2003 05:18
MakeMaker and TESTS => 't/*.t t/*/*.t'
Message ID:

I'm maintaining a module (Regexp::Common) which has a large set of
tests. Therefore I decided to not put all the test scripts in t/,
but to make subdirectories in t/.

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

    Installing perl extension
    Writing Makefile for Regexp::Common

    Microsoft (R) Program Maintenance Utility Version 7.00.9466
    Copyright (C) Microsoft Corporation.  All rights reserved.

            C:\Programme\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e"
    "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/*/*.t
    t/*......t/*.t does not exist
    t/*/*....t/*/*.t does not exist
    FAILED--2 test scripts could be run, alas--no output ever seen
    NMAKE : fatal error U1077: 'C:\Programme\Perl\bin\perl.exe' : return
    code '0x2'

It looks like the Microsoft shell doesn't understand wildcards.
Does MakeMaker have a way to solve this? Or is my only way out
of this to list all the test files separately?


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