.(gz|cmp|tar|rpm|srpm)$
support/libmemcached.pc$
support/libmemcached.spec$
+docs/pod2htmd.tmp
+docs/pod2htmi.tmp
+lib/memcachedplus.loT
+tests/atomsmasher
+tests/startservers
+tests/stopservers
+tests/udptest
+
Makefile(.in)?$
if ((temp= getenv("MEMCACHED_SERVERS")))
opt_servers= strdup(temp);
else
+ {
+ fprintf(stderr, "No Servers provided\n");
exit(1);
+ }
}
servers= memcached_servers_parse(opt_servers);
LIBS =
noinst_HEADERS = test.h server.h
-noinst_PROGRAMS = testapp testplus udptest atomsmasher
+noinst_PROGRAMS = testapp testplus udptest atomsmasher startservers
testapp_SOURCES = test.c function.c ../src/generator.c ../src/execute.c server.c
testapp_LDADD = $(LDADDS)
atomsmasher_SOURCES = test.c atomsmasher.c server.c ../src/generator.c ../src/execute.c
atomsmasher_LDADD = $(LDADDS)
+startservers_SOURCES = start.c server.c
+startservers_LDADD = $(LDADDS)
+
record:
./testapp > output.res
}
else
{
- WATCHPOINT;
{
char server_string_buffer[8096];
char *end_ptr;
{
char buffer[1024]; /* Nothing special for number */
int count;
+ int status;
if (construct->udp)
- sprintf(buffer, "memcached -d -P /tmp/%umemc.pid -U %u", x, x+ TEST_PORT_BASE);
+ sprintf(buffer, "memcached -d -P /tmp/%umemc.pid -t 1 -U %u", x, x+ TEST_PORT_BASE);
else
- sprintf(buffer, "memcached -d -P /tmp/%umemc.pid -p %u", x, x+ TEST_PORT_BASE);
- system(buffer);
+ sprintf(buffer, "memcached -d -P /tmp/%umemc.pid -t 1 -p %u", x, x+ TEST_PORT_BASE);
+ status= system(buffer);
+ WATCHPOINT_ASSERT(status == 0);
count= sprintf(end_ptr, "localhost:%u,", x + TEST_PORT_BASE);
end_ptr+= count;
}
--- /dev/null
+#include <stdio.h>
+#include <string.h>
+#include "server.h"
+
+int main(void)
+{
+ server_startup_st construct;
+
+ memset(&construct, 0, sizeof(server_startup_st));
+
+ construct.count= 4;
+
+ server_startup(&construct);
+
+ return 0;
+}