Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

BinGOs (7246)

BinGOs
  (email not shown publicly)
http://gumbynet.org.uk/

System administrator, part-time Perl hacker, full-time POE [perl.org] evangelist. One day he will be made to pay for his crimes.

He has some modules on CPAN [cpan.org]. They may or may not be useful

Journal of BinGOs (7246)

Monday July 28, 2008
09:49 AM

Environment variables that CPAN Testers use

[ #37030 ]

Maybe not a definitive list, but this is what I have gleamed:

  • AUTOMATED_TESTING - Set by an automated CPAN Tester to indicate, erm, that we are running automated tests.
  • PERL_MM_USE_DEFAULT - Set so that we take the defaults to prompts in Makefile.PL and Build.PL
  • PERL5_CPAN_IS_RUNNING - CPAN.pm appears to set this to process ID of the CPAN process.
  • PERL5_CPANPLUS_IS_RUNNING - CPANPLUS sets this to the process ID of the CPANPLUS process, note also check PERL5_CPAN_IS_RUNNING, as CPAN also sets this variable
  • PERL5_CPANPLUS_IS_VERSION - Set by CPANPLUS to indicate the version that is running
  • PERL5_CPANPLUS_VERBOSE - Set by CPANPLUS to indicate whether it is generating verbose output

Kindly pointed out by Dave Golden:

  • PERL5OPT - used by CPAN::Reporter to load Devel::Autoflush to force output from PL and test files that don't set autoflush themselves. (This has been a headache and is still in active development to find a workable solution.)
  • PERL5LIB - may or may not be set, depending on the test setup
  • PERL_CPAN_REPORTER_DIR - if set, this directory is used in place of the default .cpanreporter directory; this will affect not only the location of the default config.ini, but also the location of the CPAN::Reporter::History database and any other files that live in that directory
  • PERL_CPAN_REPORTER_CONFIG - if set, this file is used in place of the default config.ini file; it may be in any directory, regardless of the choice of configuration directory

Added by Jos Boumans:

  • PERL5_CPANPLUS_IS_EXECUTING -- set by CPANPLUS to the full path of either Build.PL or Makefile.PL while it's executing this file. This helps Module::Install understand that it is running under CPANPLUS and can delegate prereqs up to the parent process

Added by Simon Bertrang:

  • TEST_POD - enables testing of documentation
  • TEST_AUTHOR - in a few cases this enables testing in general
  • PERL_TEST_POD - another name to enable documentation tests
  • PERL_TEST_CRITIC - used to enable critic testing
  • AUTHOR_TESTING - a few authors hide tests with this, mostly documentation tests
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • PERL5OPT -- used by CPAN::Reporter to load Devel::Autoflush to force output from PL and test files that don't set autoflush themselves. (This has been a headache and is still in active development to find a workable solution.)

    PERL5LIB -- may or may not be set, depending on the test setup

    PERL_CPAN_REPORTER_DIR -- if set, this directory is used in place of the default .cpanreporter directory; this will affect not only the location of the default config.ini, but also the location of the CPAN::Reporter::His

    • PERL5_CPANPLUS_IS_EXECUTING -- set by CPANPLUS to the full path of either Build.PL or Makefile.PL while it's executing this file. This helps Module::Install understand that it is running under CPANPLUS and can delegate prereqs up to the parent process
  • TEST_POD - enables testing of documentation

    TEST_AUTHOR - in a few cases this enables testing in general

    PERL_TEST_POD - another name to enable documentation tests

    PERL_TEST_CRITIC - used to enable critic testing

    AUTHOR_TESTING - a few authors hide tests with this, mostly documentation tests

  • I posted these on the Perl5 wiki [perlfoundation.org]. Thanks for accumulating this list!