Re: ExtUtils::MakeMaker, execute Perl code during "make test"

2010-04-17 Thread Paul Johnson
On Thu, Apr 15, 2010 at 06:50:39PM -0400, Steve Bertrand wrote: > Hi all, > However, when I run "make test", the Perl code for print does not execute. > > I seem to be searching for the wrong problem in the usual places, so I'd > like to ask for advice on the best way to allow print statements to

Re: ExtUtils::MakeMaker, execute Perl code during "make test"

2010-04-16 Thread Steve Bertrand
On 2010.04.16 11:32, Philip Potter wrote: > On 16 April 2010 14:38, Steve Bertrand wrote: >> This particular test: > It sounds like your test isn't a test, it's a setup tool. Tests in > projdir/t are there to test if the stuff in projdir/lib or > projdir/blib works, and shouldn't be dependent on

Re: ExtUtils::MakeMaker, execute Perl code during "make test"

2010-04-16 Thread Philip Potter
On 16 April 2010 14:38, Steve Bertrand wrote: > On 2010.04.16 09:15, Philip Potter wrote: >> What are you *actually* >> trying to do? What are you testing and why does this test require you >> to print output to the user under "make test"? > > This particular test: > > - checks to see if an existi

Re: ExtUtils::MakeMaker, execute Perl code during "make test"

2010-04-16 Thread Steve Bertrand
On 2010.04.16 09:15, Philip Potter wrote: > On 16 April 2010 13:20, Steve Bertrand wrote: >> I use prove often, usually when I want to quickly and non-verbosely (-Q) >> work with a single test file that I'm currently adding new tests to, or >> to ensure existing tests still pass if making changes

Re: ExtUtils::MakeMaker, execute Perl code during "make test"

2010-04-16 Thread Philip Potter
On 16 April 2010 13:20, Steve Bertrand wrote: > I use prove often, usually when I want to quickly and non-verbosely (-Q) > work with a single test file that I'm currently adding new tests to, or > to ensure existing tests still pass if making changes to a function. > > What I want to be able to do

Re: ExtUtils::MakeMaker, execute Perl code during "make test"

2010-04-16 Thread Steve Bertrand
On 2010.04.16 03:36, Philip Potter wrote: > On 16 April 2010 02:05, Steve Bertrand wrote: >> On 2010.04.15 18:50, Steve Bertrand wrote: >> What I've done to 'rectify' the issue so that it is clear that the >> config files differ, is rename the test to the highest test number >> (999-upgrade.t) so

Re: ExtUtils::MakeMaker, execute Perl code during "make test"

2010-04-16 Thread Philip Potter
On 16 April 2010 02:05, Steve Bertrand wrote: > On 2010.04.15 18:50, Steve Bertrand wrote: >> Hi all, >> >> In one of my projects, I've written a test file t/22-upgrade.t. > > [..snip..] > >> However, when I run "make test", the Perl code for print does not execute. > > Replying my own post, this

Re: ExtUtils::MakeMaker, execute Perl code during "make test"

2010-04-15 Thread Steve Bertrand
On 2010.04.15 18:50, Steve Bertrand wrote: > Hi all, > > In one of my projects, I've written a test file t/22-upgrade.t. [..snip..] > However, when I run "make test", the Perl code for print does not execute. Replying my own post, this project is currently only used by us internally. What I've

ExtUtils::MakeMaker, execute Perl code during "make test"

2010-04-15 Thread Steve Bertrand
Hi all, In one of my projects, I've written a test file t/22-upgrade.t. I have a test within this file that looks for an existing installation, checks the versions, and compares the configuration files An upgrade does not overwrite the existing config, instead printing out a warning with a list