-#include <libmemcached/memcached.h>
-#include <libmemcached/server_instance.h>
-#include <tests/replication.h>
-#include <tests/debug.h>
+#include "libmemcached-1.0/memcached.h"
+
+#include "libmemcached/server_instance.h"
+
+#include "tests/replication.h"
+#include "tests/debug.h"
+
+#include "tests/libmemcached-1.0/setup_and_teardowns.h"
+
+test_return_t check_replication_sanity_TEST(memcached_st *memc)
+{
+ test_true(memc);
+ test_compare(uint64_t(1),
+ memcached_behavior_get(memc, MEMCACHED_BEHAVIOR_BINARY_PROTOCOL));
+
+ /*
+ * Make sure that we store the item on all servers
+ * (master + replicas == number of servers)
+ */
+ test_compare(memcached_behavior_get(memc, MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS), uint64_t(memcached_server_count(memc) - 1));
+
+ return TEST_SUCCESS;
+}