mirror of
https://github.com/ceph/ceph
synced 2024-12-26 13:33:57 +00:00
3730d10623
the goal is to decouple C++ API from C API, and to version them differently, as they are targeting different consumers. this allows us to change the C++ API and bumping up its soversion without requiring consumer to recompile the librados client for using the new librados. in this way, C++ API can move faster than C API. for example, if bufferlist interface is changed for better performance, and this breaks existing API/ABI, we can bump up the C++ library's soversion, and and the C library's version unchanged but ship the new librados's C binding. so the librados client linked against librados's C library will be able to take advantage of the improvement in C++ library. while the librados client linked against C++ library won't break at runtime due to unresolved symbol or changed structure layout. this is massive change, the genereal idea is to * split librados.cc into two source files: librados_c.cc and librados_cxx.cc, the former for implementing C APIs, the later for C++ APIs. * extract the C++ API in librados into librados-cxx, the library name will be libradospp. but we can change it before nautilus is released. * link these librados libraries with static libraries which it depends on, so "-Wl,--exclude-libs,ALL" link flags can help hide the non-public symbols. * extract the tests exercising librados' C++ API into a different source file named *_cxx.cc. for instance, to move the C++ tests in aio.cc into aio_cxx.cc * extract the shared helper functions which do not use any librados or librados-cxx APIs into test_shared{.cc,h}. the "shared" here means, *shared* by C++ and C tests. * extract the test fixtures, i.e., the subclasses of testing::Test, for testing C++ APIs into testcase_cxx.cc. * update qa/workunits/rados/test.sh accordingly to add the splitted tests * update the consumers of librados to link against librados-cxx instead, if they are using the C++ API. Signed-off-by: Kefu Chai <kchai@redhat.com> |
||
---|---|---|
.. | ||
archs | ||
btrfs | ||
cephfs | ||
client | ||
clusters | ||
config | ||
crontab | ||
debug | ||
distros | ||
erasure-code | ||
libceph | ||
machine_types | ||
mds | ||
mon/bootstrap | ||
mon_kv_backend | ||
nightlies | ||
objectstore | ||
objectstore_cephfs | ||
overrides | ||
packages | ||
qa_scripts | ||
rbd | ||
releases | ||
rgw_frontend | ||
rgw_pool_type | ||
standalone | ||
suites | ||
tasks | ||
timezone | ||
workunits | ||
.gitignore | ||
find-used-ports.sh | ||
loopall.sh | ||
Makefile | ||
README | ||
run_xfstests_qemu.sh | ||
run_xfstests-obsolete.sh | ||
run_xfstests.sh | ||
run-standalone.sh | ||
runallonce.sh | ||
runoncfuse.sh | ||
runonkclient.sh | ||
setup-chroot.sh | ||
tox.ini |
ceph-qa-suite ------------- clusters/ - some predefined cluster layouts suites/ - set suite The suites directory has a hierarchical collection of tests. This can be freeform, but generally follows the convention of suites/<test suite name>/<test group>/... A test is described by a yaml fragment. A test can exist as a single .yaml file in the directory tree. For example: suites/foo/one.yaml suites/foo/two.yaml is a simple group of two tests. A directory with a magic '+' file represents a test that combines all other items in the directory into a single yaml fragment. For example: suites/foo/bar/+ suites/foo/bar/a.yaml suites/foo/bar/b.yaml suites/foo/bar/c.yaml is a single test consisting of a + b + c. A directory with a magic '%' file represents a test matrix formed from all other items in the directory. For example, suites/baz/% suites/baz/a.yaml suites/baz/b/b1.yaml suites/baz/b/b2.yaml suites/baz/c.yaml suites/baz/d/d1.yaml suites/baz/d/d2.yaml is a 4-dimensional test matrix. Two dimensions (a, c) are trivial (1 item), so this is really 2x2 = 4 tests, which are a + b1 + c + d1 a + b1 + c + d2 a + b2 + c + d1 a + b2 + c + d2 A directory with a magic '$' file represents a test where one of the other items is chosen randomly. For example, suites/foo/$ suites/foo/a.yaml suites/foo/b.yaml suites/foo/c.yaml is a single test. It will be either a.yaml, b.yaml or c.yaml. This can be used in conjunction with the '%' file in other directories to run a series of tests without causing an unwanted increase in the total number of jobs run. Symlinks are okay. The teuthology code can be found in https://github.com/ceph/teuthology.git