Subject: | Proposal - adding a test whether installed Imager module supports jpeg |
Date: | Mon, 22 Jun 2009 15:00:00 +0200 |
To: | bug-MojoMojo [...] rt.cpan.org |
From: | kmx <kmx [...] volny.cz> |
Hi,
during installation of MojoMojo on Win32 I have dealt with failed test
schema_DBIC_Attachment.t that was in the end caused by missing support
for jpeg in my Imager module.
The problem was that Imager was installed automatically as a dependence
and on Win32 there is by default libjpeg not installed therefore also
Imager was installed without jpeg support (all that happened during
"make installdeps").
I propose adding this simple test somewhere before
schema_DBIC_Attachment.t to explicitly check whether Imager has jpeg
support or not. It could save some time other guys that will be trying
to run MojoMojo on Win32.
#!/usr/bin/perl -w
use strict;
use warnings;
use Test::More tests => 1;
use Imager;
is(grep ( /^jpeg$/ , Imager->read_types()), 1, 'Imager supports jpeg');
--
kmx