X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Ftest.c;h=d54dc92b9836347a533685a942ba74bb7324b5b3;hb=c3723b53b87471782076765f0fff656d07de74e0;hp=da989b179638bfd95eed8cacefd012fea200b5f7;hpb=faae971a1b825275ed3585c9692be3d84a62ce01;p=awesomized%2Flibmemcached diff --git a/libtest/test.c b/libtest/test.c index da989b17..d54dc92b 100644 --- a/libtest/test.c +++ b/libtest/test.c @@ -10,7 +10,7 @@ Sample test application. */ -#include "config.h" +#include #include @@ -24,8 +24,6 @@ #include #include -#include - #include #include @@ -180,10 +178,21 @@ int main(int argc, char *argv[]) } if (argc > 1) + { collection_to_run= argv[1]; + } + else if (getenv("TEST_COLLECTION")) + { + collection_to_run= getenv("TEST_COLLECTION"); + } + + if (collection_to_run) + printf("Only testing %s\n", collection_to_run); if (argc == 3) + { wildcard= argv[2]; + } for (next= collection; next->name; next++) { @@ -370,9 +379,5 @@ cleanup: world_stats_print(&stats); -#ifdef LIBMEMCACHED_WITH_SASL_SUPPORT - sasl_done(); -#endif - return stats.failed == 0 ? 0 : 1; }