On Wed Aug 29 02:59:23 2012, MICHIELB wrote:
Show quoted text> I operate a 'smoker' - an automated system that downloads all new CPAN
> modules, tests them and submit results back to cpantesters.
>
> Your module has a prompt where it asks if you want to run extended
> tests, this prompt does not time out, meaning my smoker stops.
>
> Would you be willing to add a timeout for this question, where you
> assume No, after 60 seconds?
>
> For example the Mail::IMAPClient module has a similar setup in their
> Makefile.PL -
>
https://www.metacpan.org/source/PLOBBES/Mail-IMAPClient-
3.32/Makefile.PL
Show quoted text>
> --
> Mike
I develop Perl on Windows and the example you provided using alarm()
does not work on Windows (Strawberry or ActiveState, not sure about
cygwin) as Windows doesn't implement signals.
I looked at Term::ReadKey which does work on Windows, but has a very low
pass/fail ratio (12/147 -
http://search.cpan.org/~kjalb/TermReadKey-
2.14/) and I'm loathe to require a module that has questionable success
for a simple prompt in a test.
Does your smoke test machine run a linux flavor? I could maybe put the
alarm() test in if Windows just ignores it and yields the same results
as now (no timeout) and if it will resolve the timeout on linux based
systems.
I have this no timeout prompt in 3 modules on CPAN up for over 2 years.
I implemented my prompt based on what was in another CPAN module so I
know others would have this issue. Strange this is the first time I've
received this request.
Have you looked into setting up 'distroprefs' to auto-respond to prompts
during the build process? I've installed a few modules that prompt for
some input during the make, no doubt they would hang your smoke tester
also.
cheers.