From 36f6d3438d98b27bfd480fc925492351863c6714 Mon Sep 17 00:00:00 2001 From: Nigel Horne Date: Sat, 16 Mar 2024 19:03:52 -0400 Subject: [PATCH] Added test for broken smokers that don't set AUTOMATED_TESTING --- Makefile.PL | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile.PL b/Makefile.PL index c9e31f91..6b981684 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -21,6 +21,14 @@ BEGIN { } } + # Test for broken smokers that don't set AUTOMATED_TESTING + if(my $reporter = $ENV{'PERL_CPAN_REPORTER_CONFIG'}) { + if($reporter =~ /smoker/i) { + warn 'AUTOMATED_TESTING added for you'; + $ENV{'AUTOMATED_TESTING'} = 1; + } + } + if(scalar(@needfull)) { my $list = join(' ', @needfull); if($ENV{'AUTOMATED_TESTING'} &&