X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Ftest.c;h=f8cde94ddf5b3ecb8b0a5448b7108f7901ac09ef;hb=e2a313f77fd825bdaec9db1649b0549b2d5962c2;hp=e5f4bc84911fb7ae1cd5e086a6dda843ff9f11f6;hpb=da3a1b9ec585148509e4e7006d4c48ec7cf5ecef;p=m6w6%2Flibmemcached diff --git a/tests/test.c b/tests/test.c index e5f4bc84..f8cde94d 100644 --- a/tests/test.c +++ b/tests/test.c @@ -10,11 +10,12 @@ #include #include #include +#include #include "test.h" #define TEST_PORT_BASE MEMCACHED_DEFAULT_PORT+10 -#define TEST_SERVERS 3 +#define TEST_SERVERS 5 long int timedif(struct timeval a, struct timeval b) { @@ -119,7 +120,7 @@ int main(int argc, char *argv[]) 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); @@ -131,7 +132,7 @@ int main(int argc, char *argv[]) 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);