From: Brian Aker Date: Sun, 12 Feb 2012 10:35:10 +0000 (-0800) Subject: Make the number of servers we test against more flexible. X-Git-Tag: 1.0.5~62 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=339fccdc1ec98b2e7eaf7515b4f0086d1d56396d;p=awesomized%2Flibmemcached Make the number of servers we test against more flexible. --- diff --git a/tests/libmemcached-1.0/all_tests.cc b/tests/libmemcached-1.0/all_tests.cc index 5aa59f88..8561c959 100644 --- a/tests/libmemcached-1.0/all_tests.cc +++ b/tests/libmemcached-1.0/all_tests.cc @@ -72,6 +72,17 @@ void get_world(Framework *world) { + if (getenv("LIBMEMCACHED_SERVER_NUMBER")) + { + int set_count= atoi(getenv("LIBMEMCACHED_SERVER_NUMBER")); + assert(set_count >= 0); + world->servers().set_count(set_count); + } + else + { + world->servers().set_count(8); + } + world->collections= collection; world->_create= (test_callback_create_fn*)world_create;