Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: test_{compression_plugin,async_compressor}: do not copy plugins #10153

Merged
merged 1 commit into from Jul 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/test/common/test_async_compressor.cc
Expand Up @@ -212,17 +212,6 @@ int main(int argc, char **argv) {

const char* env = getenv("CEPH_LIB");
string directory(env ? env : ".libs");

// copy libceph_snappy.so into $plugin_dir/compressor for PluginRegistry
// TODO: just build the compressor plugins in this subdir
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;

g_conf->set_val("plugin_dir", directory, false, false);

::testing::InitGoogleTest(&argc, argv);
Expand Down
8 changes: 0 additions & 8 deletions src/test/compressor/test_compression_plugin.cc
Expand Up @@ -56,14 +56,6 @@ int main(int argc, char **argv) {

const char* env = getenv("CEPH_LIB");
string directory(env ? env : ".libs");
string mkdir_compressor = "mkdir -p " + directory + "/compressor";
int r = system(mkdir_compressor.c_str());
(void)r;

string cp_libceph_example = "cp " + directory + "/libceph_example.so* " + directory + "/compressor/";
r = system(cp_libceph_example.c_str());
(void)r;

g_conf->set_val("plugin_dir", directory, false, false);

::testing::InitGoogleTest(&argc, argv);
Expand Down