#include <sys/stat.h>
#include <unistd.h>
#include <time.h>
+#include <fnmatch.h>
#include "test.h"
#define TEST_PORT_BASE MEMCACHED_DEFAULT_PORT+10
-#define TEST_SERVERS 2
+#define TEST_SERVERS 5
long int timedif(struct timeval a, struct timeval b)
{
test_st *run;
run= next->tests;
- if (collection_to_run && strcmp(collection_to_run, next->name))
+ if (collection_to_run && fnmatch(collection_to_run, next->name, 0))
continue;
fprintf(stderr, "\n%s\n\n", next->name);
memcached_return rc;
struct timeval start_time, end_time;
- if (wildcard && strcmp(wildcard, run->name))
+ if (wildcard && fnmatch(wildcard, run->name, 0))
continue;
fprintf(stderr, "Testing %s", run->name);
if (next->pre)
{
memcached_return rc;
- WATCHPOINT_STRING(next->name);
rc= next->pre(memc);
- WATCHPOINT;
if (rc != MEMCACHED_SUCCESS)
{