projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
c10c6e2
)
Make the number of servers we test against more flexible.
author
Brian Aker
<brian@tangent.org>
Sun, 12 Feb 2012 10:35:10 +0000
(
02:35
-0800)
committer
Brian Aker
<brian@tangent.org>
Sun, 12 Feb 2012 10:35:10 +0000
(
02:35
-0800)
tests/libmemcached-1.0/all_tests.cc
patch
|
blob
|
history
diff --git
a/tests/libmemcached-1.0/all_tests.cc
b/tests/libmemcached-1.0/all_tests.cc
index 5aa59f8852e048b098ea8ade94a651b4d4b3947b..8561c9594218084a054884ace674406afb71c633 100644
(file)
--- 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;