X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fbinaries.cc;h=d5e0cc72e1ad484bc7414c3789a5a4d162403320;hb=ab130c459a975d24628169901addb191ef2cdf87;hp=c3e2e5b795a46af6d3ab47958a03234ec4fc9a7e;hpb=90407b100f20ef337298b6750e1b42805661f83b;p=m6w6%2Flibmemcached diff --git a/libtest/binaries.cc b/libtest/binaries.cc index c3e2e5b7..d5e0cc72 100644 --- a/libtest/binaries.cc +++ b/libtest/binaries.cc @@ -35,65 +35,7 @@ */ #include -#include namespace libtest { -bool has_gearmand_binary() -{ -#if defined(HAVE_GEARMAND_BINARY) && HAVE_GEARMAND_BINARY - std::stringstream arg_buffer; - - if (getenv("PWD")) - { - arg_buffer << getenv("PWD"); - arg_buffer << "/"; - } - arg_buffer << GEARMAND_BINARY; - - if (access(arg_buffer.str().c_str() ,R_OK|X_OK) == 0) - { - return true; - } -#endif - - return false; -} - -bool has_drizzled_binary() -{ -#if defined(HAVE_DRIZZLED_BINARY) && HAVE_DRIZZLED_BINARY - if (access(DRIZZLED_BINARY, R_OK|X_OK) == 0) - { - return true; - } -#endif - - return false; -} - -bool has_memcached_binary() -{ -#if defined(HAVE_MEMCACHED_BINARY) && HAVE_MEMCACHED_BINARY - if (access(MEMCACHED_BINARY, R_OK|X_OK) == 0) - { - return true; - } -#endif - - return false; -} - -bool has_memcached_sasl_binary() -{ -#if defined(HAVE_MEMCACHED_SASL_BINARY) && HAVE_MEMCACHED_SASL_BINARY - if (access(MEMCACHED_SASL_BINARY, R_OK|X_OK) == 0) - { - return true; - } -#endif - - return false; -} - }