mirror of
https://github.com/ceph/ceph
synced 2025-02-16 15:27:47 +00:00
cleanup: src/.libs -> build/lib
Clean up remaining traces of automake's .libs. This makes unittest_* tests easier to run by hand (mostly). Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
f8d4e5b5e9
commit
d4cc161566
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
#
|
||||
@ -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
|
||||
#
|
||||
@ -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:
|
||||
|
@ -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
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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 + "\" ],"
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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")) {
|
||||
|
@ -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 \
|
||||
|
@ -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")) {
|
||||
|
@ -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();;
|
||||
|
Loading…
Reference in New Issue
Block a user