On Thu, Apr 10, 2008 at 7:14 AM, Gabor Szabo <[EMAIL PROTECTED]> wrote: > So let's see what needs to be done in order to be able to keep > the test files and run them later. > > > There are two concerns I could immediately see. > 1) Tests might assume a certain directory structure, they might say > use lib 'lib'; > use lib 't/lib'; > or other things. > 2) Tests might use other files outside the t/ directory. > 3) What else do you think might be problematic?
Seems like a lot of headache. Why not just save the tarballs somewhere? (Aside from disk issues, that is.) Then you're certain to recreate the environment that the distribution expected for its tests when run by CPAN.pm. Given that, I would tackle it this way: * unpack tarball (for all archive types) * cd into directory * locally set CPAN's prerequisites_policy to 'ignore', have CPAN test the current directory: perl -MCPAN -e 'local $CPAN::Config->{prerequisites_policy}="ignore"; test(".")' Then the challenge is just one of bookkeeping which distribution tarballs have been installed. And if disk is an issue, just pull the tarballs off BackPAN when needed. David