20 #include <ripple/beast/utility/temp_dir.h>
21 #include <ripple/nodestore/DummyScheduler.h>
22 #include <ripple/nodestore/Manager.h>
23 #include <test/nodestore/TestBase.h>
24 #include <test/unit_test/SuiteJournal.h>
49 srcParams.
set(
"type", srcBackendType);
50 srcParams.
set(
"path", node_db.
path());
58 "test", scheduler, 2, parent, srcParams,
journal_);
67 "test", scheduler, 2, parent, srcParams,
journal_);
72 destParams.
set(
"type", destBackendType);
73 destParams.
set(
"path", dest_db.
path());
76 "test", scheduler, 2, parent, destParams,
journal_);
79 "import into '" + destBackendType +
"' from '" +
80 srcBackendType +
"'");
100 bool const testPersistence,
102 int numObjsToTest = 2000)
107 std::string s =
"NodeStore backend '" + type +
"'";
113 nodeParams.
set(
"type", type);
114 nodeParams.
set(
"path", node_db.
path());
124 "test", scheduler, 2, parent, nodeParams,
journal_);
149 "test", scheduler, 2, parent, nodeParams,
journal_);
161 if (type ==
"memory")
168 "test", scheduler, 2, parent, nodeParams,
journal_);
176 nodeParams.
set(
"earliest_seq",
"0");
179 "test", scheduler, 2, parent, nodeParams,
journal_);
189 nodeParams.
set(
"earliest_seq",
"1");
192 "test", scheduler, 2, parent, nodeParams,
journal_);
195 BEAST_EXPECT(db->earliestLedgerSeq() == 1);
206 "test", scheduler, 2, parent, nodeParams,
journal_);
230 #if RIPPLE_ROCKSDB_AVAILABLE
239 #if RIPPLE_ROCKSDB_AVAILABLE
243 #if RIPPLE_ENABLE_SQLITE_BACKEND_TESTS