in reply to Re: Makefile.PL even weirder on Windows
in thread Makefile.PL even weirder on Windows

You both are saying that the source project has various subdirectories, rather than the few files I have in one directory?

I read about the testing tutorial and the module, but it didn't give the format of the expected output. But really the issue is that the auto-testing looks in a particular subdirectory. Or, you're saying that the file named "test.pl", rather than "test$_.perl" foreach (1..$n); will be seen but the output not automatically processed? Doesn't it (MM or CPAN) care about the exit code?!

—John

  • Comment on Re: Re: Makefile.PL even weirder on Windows

Replies are listed 'Best First'.
Re: Re: Re: Makefile.PL even weirder on Windows
by theorbtwo (Prior) on Jan 12, 2003 at 08:52 UTC

    The answer to all your questions is "yes". Seriously.

    If you have a file named ./test.pl, it will be run, and the results ignored by the Makefile (IIRC, of course -- read the disclaimer) (MM doesn't actualy run anything, it only writes a makefile. CPAN only runs the makefile). If there is a ./t/ subdirectory, it will be run via Test::Harness. See it's POD for details of the output format, or just use it's runtime functions (ok, ok_if, etc).


    Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).