/
01-main.t
40 lines (34 loc) · 1.02 KB
/
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
37
38
39
40
#!/usr/bin/perl
use Dir::Self;
use lib __DIR__ . "../lib";
use lib __DIR__ . "../";
$Log::Fu::LINE_PREFIX = '#';
my $config = do 'PLCB_Config.pm';
use Couchbase::Test::Common;
my $TEST_PORT;
my $jarurl = $config->{COUCHBASE_MOCK_JARURL};
my $jarfile = __DIR__ . "/tmp/CouchbaseMock.jar";
if (! -e $jarfile) {
warn("Can't find JAR. Downloading.. $jarurl");
system("wget -O $jarfile $jarurl");
}
Couchbase::Test::Common->Initialize(
jarfile => $jarfile,
nodes => 5,
buckets => [{name => "default", type => "memcache"}],
);
use Couchbase::Test::ClientSync;
use Couchbase::Test::Async;
use Couchbase::Test::Settings;
use Couchbase::Test::Interop;
use Couchbase::Test::Netfail;
use Couchbase::Test::Views;
use Couchbase::Test::Compat;
Couchbase::Test::ClientSync->runtests();
Couchbase::Test::Async->runtests();
Couchbase::Test::Settings->runtests();
Couchbase::Test::Interop->runtests();
Couchbase::Test::Netfail->runtests();
Couchbase::Test::Views->runtests();
Couchbase::Test::Compat->runtests();
#Test::Class->runtests();