perl - ExtUtils::MakeMaker conditional/prompt for live tests -
i can't figure out how extutils::makemaker prompt user asking if want run subset of tests in /t
require live internet connection. possible?
in general, not want run such tests on end-user's system. can not rely on being reliable, if it's present. if want can use prompt helper function test section argument achieve if put networking tests in own directory:
use extutils::makemaker; … $network = prompt("do want run tests requiring network access [y/n]", "n") =~ /y/i; writemakefile( ... test => { tests => $network ? 't/*.t t/network/*.t' : 't/*.t' } );
Comments
Post a Comment