From: Sage Weil Date: Wed, 15 Jun 2016 20:36:09 +0000 (-0400) Subject: ceph_test_objectstore: do not create and copy plugins around X-Git-Tag: v11.0.0~111^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8a42e611fffda68a9767cf8aec24f5a28cd45ae4;p=ceph.git ceph_test_objectstore: do not create and copy plugins around The test has no business doing this. The test runner should set the compression_dir config option to point to the appropriate location. Signed-off-by: Sage Weil --- diff --git a/src/test/objectstore/store_test.cc b/src/test/objectstore/store_test.cc index 1fca627a2a9b..bd4bc29786bc 100644 --- a/src/test/objectstore/store_test.cc +++ b/src/test/objectstore/store_test.cc @@ -4755,38 +4755,6 @@ int main(int argc, char **argv) { global_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY, 0); common_init_finish(g_ceph_context); - const char* env = getenv("CEPH_LIB"); - std::string directory(env ? env : ".libs"); - if (plugin_exists(directory)) { - string mkdir_compressor = "mkdir -p " + directory + "/compressor"; - int r = system(mkdir_compressor.c_str()); - (void)r; - - string cp_libceph_snappy = "cp " + directory + "/libceph_snappy.so* " + directory + "/compressor/"; - r = system(cp_libceph_snappy.c_str()); - (void)r; - - string cp_libceph_zlib = "cp " + directory + "/libceph_zlib.so* " + directory + "/compressor/"; - r = system(cp_libceph_zlib.c_str()); - (void)r; - g_ceph_context->_conf->set_val("plugin_dir", directory, false, false); - } else { - char plugin_dir[PATH_MAX]; - char *val = plugin_dir; - int r = g_ceph_context->_conf->get_val("plugin_dir", &val, - sizeof(plugin_dir)); - if (r) - return r; - string compressor_dir(val); - compressor_dir += "/compressor"; - if (!plugin_exists(compressor_dir)) { - std::cerr << "compressor plugins not found in '" - << directory << "' or '" << compressor_dir << "'" - << std::endl; - return EINVAL; - } - } - g_ceph_context->_conf->set_val("osd_journal_size", "400"); g_ceph_context->_conf->set_val("filestore_index_retry_probability", "0.5"); g_ceph_context->_conf->set_val("filestore_op_thread_timeout", "1000");