I'm looking at writing a system a little similar to CPAN Testers.
http://ali.as/pita/
I'll be announcing the project properly once I have some basics in
place, but the part of it I'm caring about today needs to run through...
Makefile.PL
make
make test
sudo make install
...and capture the output of each command (both STDOUT and STDERR)
non-verbosely, and ALSO seperately capture the actual TAP output of each
test script (STDOUT and STDERR) so that I can later munge it into an XML
document that is used to report the results of the installation.
The XML document itself is dealt with by PITA::Report which is on CPAN now.
The problem I have is that I want to NOT alter the normal makefile or in
any other way change the package itself, and I can't change the perl
being used to run the installation.
The only thing I can easily set to alter the testing behaviour are
environment variables.
What I'm wondering is, is there anyway I can either
1) Provide an environment variable to Test::Harness that makes it dump
the stderr/stdout output of each test script to some location I can pick
it up after make test is run.
2) Provide an environment variable to Test::Harness that more
generically makes it require a specific file I'd create specifically for
this, which would maybe do something to the Test::Harness internals to
achieve the same thing...
Thoughts from people on doing what I want?
Adam K