forked from mnunberg/perl-Couchbase-Client
/
01-main.t
36 lines (30 loc) · 870 Bytes
/
01-main.t
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/perl
use Dir::Self;
use lib __DIR__ . "../lib";
use lib __DIR__ . "../";
BEGIN {
eval {
require Carp::Always;
Carp::Always->import();
};
}
$Log::Fu::LINE_PREFIX = '#';
my $jarurl = 'http://packages.couchbase.com/clients/c/mock/CouchbaseMock-1.1.0-gda80301.jar';
my $jarfile = __DIR__ . "/tmp/CouchbaseMock.jar";
if (! -e $jarfile) {
warn("Can't find JAR. Downloading.. $jarurl");
system("wget -O $jarfile $jarurl");
}
use Couchbase::Test::Common;
Couchbase::Test::Common->Initialize(
jarfile => $jarfile,
nodes => 5,
buckets => [{name => "default", type => "couchbase"}],
);
use Couchbase::Test::ClientSync;
use Couchbase::Test::Settings;
use Couchbase::Test::Views;
Couchbase::Test::ClientSync->runtests();
Couchbase::Test::Settings->runtests();
Couchbase::Test::Views->runtests();
#Test::Class->runtests();