diff options
author | dormando <dormando@rydia.net> | 2017-10-18 00:42:58 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2017-11-28 14:18:05 -0800 |
commit | cd2ce96754ef10926057dd76a203325c35384074 (patch) | |
tree | e2ff6c331a61887a43693a464b33601c56418e22 /t/chunked-extstore.t | |
parent | 603c1bb32304b107b468dae00ef083de1189762f (diff) | |
download | memcached-cd2ce96754ef10926057dd76a203325c35384074.tar.gz |
extstore: configure and start time gating
./configure --enable-extstore to compile the feature in
specify -o ext_path=/whatever to start.
Diffstat (limited to 't/chunked-extstore.t')
-rw-r--r-- | t/chunked-extstore.t | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/t/chunked-extstore.t b/t/chunked-extstore.t index eafe257..d54a0e3 100644 --- a/t/chunked-extstore.t +++ b/t/chunked-extstore.t @@ -9,7 +9,14 @@ use FindBin qw($Bin); use lib "$Bin/lib"; use MemcachedTest; -my $ext_path = "/tmp/extstore.$$"; +my $ext_path; + +if (!supports_extstore()) { + plan skip_all => 'extstore not enabled'; + exit 0; +} + +$ext_path = "/tmp/extstore.$$"; my $server = new_memcached("-m 64 -o ext_page_size=8,ext_page_count=8,ext_wbuf_size=2,ext_wbuf_count=3,ext_threads=1,ext_io_depth=2,ext_item_size=512,ext_item_age=2,ext_recache_rate=10000,ext_max_frag=0.9,ext_path=$ext_path,slab_chunk_max=16384"); my $sock = $server->sock; @@ -145,5 +152,5 @@ for (1..5) { done_testing(); END { - unlink $ext_path; + unlink $ext_path if $ext_path; } |