One of my CPAN modules is not available on ActivePerl through its ppm
utility. Apparently my unit testing for this module is too thorough and ActiveState's build process times out when it attempts to build it.
So what I would like to do in my tests is to detect when my module is being built on ActivePerl, and if so, to provide the build process with a smaller and faster set of tests.
One way I've found to do this is:
($is_activestate) = grep /provided by ActiveState/, qx($^X -v)
but I'm wondering if there is a more lightweight option. An environment variable that is always (and only) set in ActivePerl? Something in Config
? Any other suggestions?
UPDATE: Looks like $ENV{ACTIVESTATE_PPM_BUILD}
is set during these builds.
Config::local_patches()
may be of some value. On my machine it returnsActivePerl Build 2201 [299574]
. – Resultant