#include <sys/mount.h>
#include "os/ObjectStore.h"
#include "os/filestore/FileStore.h"
+#if defined(HAVE_LIBAIO)
#include "os/bluestore/BlueStore.h"
+#endif
#include "include/Context.h"
#include "common/ceph_argparse.h"
#include "global/global_init.h"
g_ceph_context->_conf->apply_changes(NULL);
}
+#if defined(HAVE_LIBAIO)
TEST_P(StoreTest, BluestoreStatFSTest) {
if(string(GetParam()) != "bluestore")
return;
ASSERT_EQ( 0u, statfs.compressed_allocated);
}
}
+#endif
TEST_P(StoreTest, ManySmallWrite) {
ObjectStore::Sequencer osr("test");
ASSERT_EQ(store->stat(cid, hoid2, &st), 0);
}
+#if defined(HAVE_LIBAIO)
TEST_P(StoreTest, BluestoreOnOffCSumTest) {
if (string(GetParam()) != "bluestore")
return;
ASSERT_EQ(r, 0);
}
}
+#endif
INSTANTIATE_TEST_CASE_P(
ObjectStore,
::testing::Values(
"memstore",
"filestore",
+#if defined(HAVE_LIBAIO)
"bluestore",
+#endif
"kstore"));
#else
g_conf->set_val("rocksdb_collect_memory_stats","false");
}
+#if defined(HAVE_LIBAIO)
TEST_P(StoreTest, garbageCollection) {
ObjectStore::Sequencer osr("test");
int r;
g_conf->set_val("bluestore_min_blob_size", "0");
g_ceph_context->_conf->apply_changes(NULL);
}
+#endif
int main(int argc, char **argv) {
vector<const char*> args;