# vim:ft=perl
-use Test::More tests => 5;
+use Test::More;
+use lib 'ex'; # Where BeerDB should live
+BEGIN { if (eval { require BeerDB }) {
+ plan tests => 5;
+ } else { Test::More->import(skip_all =>"SQLite not working or BeerDB module not found: $@") }
+ }
use Maypole::CLI qw(BeerDB);
use Maypole::Constants;
$ENV{MAYPOLE_TEMPLATES} = "t/templates";