Subject: | Won't install without DBD::SQLite2 |
DBD::SQLite2 is not in this module's dependencies, but the test suite blindly assumes its availability. If it's not already installed, then your module will fail most of the tests, and will not be installed.
I suggest either skipping the tests, or adding DBD::SQLite2 as a dependency, or use an installed DBD driver for testing (in my case, mysql would have been available for example).
Rhesa
[snip what rolled off my screen]
t/51.related...............Can't locate DBD/SQLite2.pm in @INC (@INC contains: /root/.cpan/build/Class-DBI-FormBuilder-0.34/blib/lib /root/.cpan/build/Class-DBI-FormBuilder-0.34/blib/arch /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at t/51.related.t line 8.
[...]
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/001.setup.t 2 512 1 2 200.00% 1
t/01.create.t 2 512 ?? ?? % ??
t/02.update.t 2 512 ?? ?? % ??
t/03.retrieve.t 2 512 ?? ?? % ??
t/04.retrieve.t 2 512 ?? ?? % ??
t/05.update_or_create.t 2 512 ?? ?? % ??
t/06.update_or_create.t 2 512 ?? ?? % ??
t/07.retrieve_or_create.t 2 512 ?? ?? % ??
t/08.retrieve_or_create.t 2 512 ?? ?? % ??
t/09.retrieve_or_create.t 2 512 ?? ?? % ??
t/10.find_or_create.t 2 512 ?? ?? % ??
t/11.find_or_create.t 2 512 ?? ?? % ??
t/12.search.t 2 512 ?? ?? % ??
t/13.search.t 2 512 ?? ?? % ??
t/14.search_like.t 2 512 ?? ?? % ??
t/15.search_where.t 2 512 ?? ?? % ??
t/16.search_form.t 2 512 ?? ?? % ??
t/30.has_a.t 2 512 ?? ?? % ??
t/31.has_many.t 2 512 ?? ?? % ??
t/32.has_many.t 2 512 ?? ?? % ??
t/33.has_many.t 2 512 ?? ?? % ??
t/34.might_have.t 2 512 ?? ?? % ??
t/40.auto_untaint.t 2 512 ?? ?? % ??
t/41.auto_untaint.t 2 512 ?? ?? % ??
t/51.related.t 2 512 ?? ?? % ??
2 tests skipped.
Failed 25/29 test scripts, 13.79% okay. 1/3 subtests failed, 66.67% okay.