On Wed, Oct 28, 2009 at 06:11:34AM -0400, David Golden via RT wrote:
Show quoted text> > I decided to invent a new name unilaterally.
> >
> > PERL_MM_NONINTERACTIVE
> >
> > If true, indicates that makemake'd modules should not be interactive.
Show quoted text> I have a couple of issues with that. First, it's not clear what that should
> do.
This is chicken and egg. It has two ends:
a) users should set it when they run a build non-interactively;
b) module build procedures should check it (in addition to AUTOMATED_TESTING)
before asking user anything.
Show quoted text> For prompt(), just use the default? Which is then just
> PERL_MM_USE_DEFAULT.
Yes, inside MM, it is equivalent to PERL_MM_USE_DEFAULT.
Show quoted text> And anything that isn't prompt has nothing to do with
> ExtUtils::MakeMaker or Module::Build.
I do not think you grasp it: the problem is WHERE to document this
variable. Currently, the only place is in documenation of
ExtUtils::MakeMaker and Module::Build.
Other than documenting this variable, ExtUtils::MakeMaker should
behave "just as agent of build procedures", and do not ask the user
anything if PERL_MM_NONINTERACTIVE is set.
Again:
PERL_MM_NONINTERACTIVE: for usage both by Makefile.PL and MM;
PERL_MM_USE_DEFAULT: for usage by MM
Show quoted text> A dozen or so major toolchain/testing/QA people got together and agree on a
> definition for AUTOMATED_TESTING, specifically, to quote from Alias'
> journal:
>
> "We agreed that the current use of the $ENV{AUTOMATED_TESTING} flag to
> indicate an automated testing context where there is no recourse to a human
> operator."
Given this, a different variable name defined SPECIFICALLY for smoke
testing may be a better solution indeed.
Show quoted text> I would strongly encourage you to change it to AUTOMATED_TESTING, per my
> explanation above.
I cannot. AUTOMATED_TESTING is supported for several years already. ;-)
Show quoted text> Support for setting AUTOMATED_TESTING could be added to CPAN.pm and
> CPANPLUS. (E.g. "cpan> noprompt test Foo::Bar")
This is a very good idea.
Yours,
Ilya