mirror of
https://github.com/ceph/ceph
synced 2025-01-20 10:01:45 +00:00
os: ObjectStore::collect_metadata unit tests
And an emacs-executable reminder about how to run a specific test. Signed-off-by: Loic Dachary <loic@dachary.org>
This commit is contained in:
parent
e741ea4ed9
commit
3081652119
@ -75,6 +75,15 @@ bool sorted(const vector<ghobject_t> &in) {
|
||||
return true;
|
||||
}
|
||||
|
||||
TEST_P(StoreTest, collect_metadata) {
|
||||
map<string,string> pm;
|
||||
store->collect_metadata(&pm);
|
||||
if (GetParam() == string("filestore")) {
|
||||
ASSERT_NE(pm.count("filestore_backend"), 0);
|
||||
ASSERT_NE(pm.count("filestore_f_type"), 0);
|
||||
}
|
||||
}
|
||||
|
||||
TEST_P(StoreTest, SimpleColTest) {
|
||||
coll_t cid = coll_t("initial");
|
||||
int r = 0;
|
||||
@ -1265,6 +1274,11 @@ int main(int argc, char **argv) {
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
|
||||
// Local Variables:
|
||||
// compile-command: "cd ../.. ; make ceph_test_objectstore ; ./ceph_test_objectstore --gtest_filter=StoreTest.* --log-to-stderr=true --debug-filestore=20"
|
||||
// End:
|
||||
/*
|
||||
* Local Variables:
|
||||
* compile-command: "cd ../.. ; make ceph_test_objectstore &&
|
||||
* ./ceph_test_objectstore \
|
||||
* --gtest_filter=*.collect_metadata* --log-to-stderr=true --debug-filestore=20
|
||||
* "
|
||||
* End:
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user