Devel::Cover recommendations... or maybe not?
Ovid
publiustemp-londonpm at yahoo.com
Thu Mar 15 16:17:03 GMT 2007
--- Ovid <publiustemp-londonpm at yahoo.com> wrote:
> #!/usr/local/bin/bash
>
> cd /home/cpoe/work/shared_cp/
> if [ -e cover_db ]; then
> /usr/local/bin/cover -delete
> fi
> mkdir cover_db
> /usr/bin/perl -e 'open my $f, "> cover_db/coverage.html" or die $!;
> print $f "<strong> ", scalar localtime(),
> ": Rebuilding coverage. Please be patient.</strong>";'
> HARNESS_PERL_SWITCHES="-MDevel::Cover=+ignore,'^t/'" \
> /usr/bin/perl /usr/local/bin/prove -lr t/
> /usr/local/bin/cover
Hey, would have help if I had included the last line of that script:
chmod 755 cover_db/
Otherwise, there's a good chance that Apache will throw a hissy fit
about not having permission to access /
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
More information about the london.pm
mailing list