Is there a way to run perl code during cpan install after tests have passed?

Viewed 137

I have my own cpan mirror which has some injected modules for our internal use only. I would like to run some perl code during cpan install. Currently I'm injecting the code directly to Makefile.PL, but the problem is that that it is run before "make test". I would like the code being run only after the distributions tests have passed.

One option would be to inject the code in the end of the last test file, but how do I know if all tests in all testfiles have passed? Test::More->builder->is_passing seems to know only about the current test file.

2 Answers
Related