Skip to content

Commit

Permalink
cleanup: src/.libs -> build/lib
Browse files Browse the repository at this point in the history
Clean up remaining traces of automake's .libs.  This makes unittest_*
tests easier to run by hand (mostly).

Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed Mar 6, 2018
1 parent f8d4e5b commit d4cc161
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion examples/rbd-replay/create-image
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
pool=rbd
image=my-image
size=10G
export LD_LIBRARY_PATH=../../src/.libs
export LD_LIBRARY_PATH=../../build/lib
#qemu-img create -f raw rbd:$pool/$image:conf=../../src/ceph.conf $size
qemu-img convert linux-0.2.img -O raw rbd:$pool/$image:conf=../../src/ceph.conf
2 changes: 1 addition & 1 deletion examples/rbd-replay/trace
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ lttng create -o traces librbd
lttng enable-event -u 'librbd:*'
lttng add-context -u -t pthread_id
lttng start
LD_LIBRARY_PATH=../../src/.libs/ qemu-system-i386 -m 1024 rbd:rbd/my-image:conf=../../src/ceph.conf
LD_LIBRARY_PATH=../../build/lib qemu-system-i386 -m 1024 rbd:rbd/my-image:conf=../../src/ceph.conf
lttng stop
lttng view > trace.log
2 changes: 1 addition & 1 deletion qa/libceph/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CFLAGS = -Wall -Wextra -D_GNU_SOURCE -lcephfs -L../../src/.libs
CFLAGS = -Wall -Wextra -D_GNU_SOURCE -lcephfs -L../../build/lib

TARGETS = trivial_libceph

Expand Down
6 changes: 3 additions & 3 deletions qa/workunits/erasure-code/bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Test that it works from sources with:
#
# CEPH_ERASURE_CODE_BENCHMARK=src/ceph_erasure_code_benchmark \
# PLUGIN_DIRECTORY=src/.libs \
# PLUGIN_DIRECTORY=build/lib \
# qa/workunits/erasure-code/bench.sh fplot jerasure |
# tee qa/workunits/erasure-code/bench.js
#
Expand All @@ -38,7 +38,7 @@
#
# TOTAL_SIZE=$((4 * 1024 * 1024 * 1024)) \
# CEPH_ERASURE_CODE_BENCHMARK=src/ceph_erasure_code_benchmark \
# PLUGIN_DIRECTORY=src/.libs \
# PLUGIN_DIRECTORY=build/lib \
# qa/workunits/erasure-code/bench.sh fplot jerasure |
# tee qa/workunits/erasure-code/bench.js
#
Expand Down Expand Up @@ -182,7 +182,7 @@ fi
# Local Variables:
# compile-command: "\
# CEPH_ERASURE_CODE_BENCHMARK=../../../src/ceph_erasure_code_benchmark \
# PLUGIN_DIRECTORY=../../../src/.libs \
# PLUGIN_DIRECTORY=../../../build/lib \
# ./bench.sh
# "
# End:
2 changes: 1 addition & 1 deletion src/ceph-disk/tests/ceph-disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
if [ -z "$CEPH_ROOT" ] || [ -z "$CEPH_BIN" ] || [ -z "$CEPH_LIB" ]; then
CEPH_ROOT=`readlink -f $(dirname $0)/../../..`
CEPH_BIN=$CEPH_ROOT
CEPH_LIB=$CEPH_ROOT/.libs
CEPH_LIB=$CEPH_ROOT/build/lib
fi
source $CEPH_ROOT/qa/standalone/ceph-helpers.sh

Expand Down
2 changes: 1 addition & 1 deletion src/test/compressor/test_compression.cc
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ TEST(ZlibCompressor, zlib_isal_compatibility)
TEST(CompressionPlugin, all)
{
const char* env = getenv("CEPH_LIB");
std::string directory(env ? env : ".libs");
std::string directory(env ? env : "lib");
CompressorRef compressor;
PluginRegistry *reg = g_ceph_context->get_plugin_registry();
EXPECT_TRUE(reg);
Expand Down
2 changes: 1 addition & 1 deletion src/test/erasure-code/TestErasureCodeLrc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ TEST(ErasureCodeLrc, layers_init)
ErasureCodeProfile profile;

const char* env = getenv("CEPH_LIB");
string directory(env ? env : ".libs");
string directory(env ? env : "lib");
string description_string =
"[ "
" [ \"_cDDD_cDD_\", \"directory=" + directory + "\" ],"
Expand Down
2 changes: 1 addition & 1 deletion src/test/erasure-code/TestErasureCodePlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ TEST_F(ErasureCodePluginRegistryTest, all)
{
ErasureCodeProfile profile;
const char* env = getenv("CEPH_LIB");
string directory(env ? env : ".libs");
string directory(env ? env : "lib");
ErasureCodeInterfaceRef erasure_code;
ErasureCodePluginRegistry &instance = ErasureCodePluginRegistry::instance();
EXPECT_FALSE(erasure_code);
Expand Down
2 changes: 1 addition & 1 deletion src/test/erasure-code/TestErasureCodeShec_arguments.cc
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ int main(int argc, char **argv)
common_init_finish(g_ceph_context);

const char* env = getenv("CEPH_LIB");
std::string directory(env ? env : ".libs");
std::string directory(env ? env : "lib");
g_conf->set_val_or_die("erasure_code_dir", directory);

::testing::InitGoogleTest(&argc, argv);
Expand Down
2 changes: 1 addition & 1 deletion src/test/erasure-code/ceph_erasure_code.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ int ErasureCodeCommand::setup(int argc, char** argv) {
common_init_finish(g_ceph_context);
g_ceph_context->_conf->apply_changes(NULL);
const char* env = getenv("CEPH_LIB");
string directory(env ? env : ".libs");
string directory(env ? env : "lib");
g_conf->set_val_or_die("erasure_code_dir", directory);

if (vm.count("help")) {
Expand Down
2 changes: 1 addition & 1 deletion src/test/erasure-code/ceph_erasure_code_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ int main(int argc, char** argv) {
* valgrind --tool=memcheck --leak-check=full \
* ./ceph_erasure_code_benchmark \
* --plugin jerasure \
* --parameter directory=.libs \
* --parameter directory=lib \
* --parameter technique=reed_sol_van \
* --parameter k=2 \
* --parameter m=2 \
Expand Down
2 changes: 1 addition & 1 deletion src/test/erasure-code/ceph_erasure_code_non_regression.cc
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ int ErasureCodeNonRegression::setup(int argc, char** argv) {
common_init_finish(g_ceph_context);
g_ceph_context->_conf->apply_changes(NULL);
const char* env = getenv("CEPH_LIB");
std::string libs_dir(env ? env : ".libs");
std::string libs_dir(env ? env : "lib");
g_conf->set_val_or_die("erasure_code_dir", libs_dir);

if (vm.count("help")) {
Expand Down
2 changes: 1 addition & 1 deletion src/test/librados_test_stub/TestClassHandler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void TestClassHandler::open_all_classes() {
assert(m_class_handles.empty());

const char* env = getenv("CEPH_LIB");
std::string CEPH_LIB(env ? env : ".libs");
std::string CEPH_LIB(env ? env : "lib");
DIR *dir = ::opendir(CEPH_LIB.c_str());
if (dir == NULL) {
ceph_abort();;
Expand Down

0 comments on commit d4cc161

Please sign in to comment.