summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck.cuny@rtgi.fr>2009-03-11 17:23:21 +0100
committerfranck cuny <franck.cuny@rtgi.fr>2009-03-11 17:23:21 +0100
commit9f6dd73dac971011a71b425a49f7cb42d3fdb774 (patch)
tree2c22d55eb823ac7b52d5766178f7863c979bcd4f
parentfirst commit (diff)
downloadkiokudb-backend-memcachedb-9f6dd73dac971011a71b425a49f7cb42d3fdb774.tar.gz
tests
-rw-r--r--xt/10_backend.t23
1 files changed, 23 insertions, 0 deletions
diff --git a/xt/10_backend.t b/xt/10_backend.t
new file mode 100644
index 0000000..7210a76
--- /dev/null
+++ b/xt/10_backend.t
@@ -0,0 +1,23 @@
+use strict;
+use warnings;
+
+use Test::More;
+use Scope::Guard;
+
+BEGIN {
+    #plan skip_all => 'Please set KIOKU_COUCHDB_URI to a CouchDB instance URI' unless $ENV{KIOKU_COUCHDB_URI};
+    plan 'no_plan';
+}
+
+use ok 'KiokuDB';
+use ok 'KiokuDB::Backend::Memcachedb';
+
+use KiokuDB::Test;
+
+my $db = Cache::Memcached->new( { 'servers' => [ '127.0.0.1:21201' ] } );
+
+run_all_fixtures(
+    KiokuDB->new(
+        backend => KiokuDB::Backend::Memcachedb->new( db => $db, ),
+    )
+);