made cdbi-t optional
[dbsrgits/DBIx-Class.git] / t / cdbi-t / 19-set_sql.t
index bab8f51..36b66af 100644 (file)
@@ -2,8 +2,13 @@ use strict;
 use Test::More;
 
 BEGIN {
-       eval "use DBD::SQLite";
-       plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 17);
+  eval "use DBIx::Class::CDBICompat;";
+  if ($@) {
+    plan (skip_all => 'Class::Trigger and DBIx::ContextualFetch required');
+    next;
+  }
+  eval "use DBD::SQLite";
+  plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 17);
 }
 
 use lib 't/testlib';
@@ -104,3 +109,4 @@ Film->set_sql(
        is $apg[1]->title, "B", "and B";
 }
 
+#} # end SKIP block