20 #include <test/nodestore/TestBase.h>
21 #include <ripple/nodestore/DummyScheduler.h>
22 #include <ripple/nodestore/Manager.h>
23 #include <ripple/beast/utility/temp_dir.h>
24 #include <test/unit_test/SuiteJournal.h>
46 srcParams.
set (
"type", srcBackendType);
47 srcParams.
set (
"path", node_db.
path());
56 "test", scheduler, 2, parent, srcParams,
journal_);
65 "test", scheduler, 2, parent, srcParams,
journal_);
70 destParams.
set (
"type", destBackendType);
71 destParams.
set (
"path", dest_db.
path());
74 "test", scheduler, 2, parent, destParams,
journal_);
76 testcase (
"import into '" + destBackendType +
77 "' from '" + srcBackendType +
"'");
95 bool const testPersistence,
97 int numObjsToTest = 2000)
102 std::string s =
"NodeStore backend '" + type +
"'";
108 nodeParams.
set (
"type", type);
109 nodeParams.
set (
"path", node_db.
path());
115 numObjsToTest, rng());
120 "test", scheduler, 2, parent, nodeParams,
journal_);
148 "test", scheduler, 2, parent, nodeParams,
journal_);
160 if (type ==
"memory")
167 "test", scheduler, 2, parent, nodeParams,
journal_);
174 nodeParams.
set(
"earliest_seq",
"0");
177 "test", scheduler, 2, parent, nodeParams,
journal_);
182 "Invalid earliest_seq") == 0);
187 nodeParams.
set(
"earliest_seq",
"1");
190 "test", scheduler, 2, parent, nodeParams,
journal_);
193 BEAST_EXPECT(db->earliestLedgerSeq() == 1);
201 nodeParams.
set(
"earliest_seq",
205 "test", scheduler, 2, parent, nodeParams,
journal_);
210 "earliest_seq set more than once") == 0);
227 #if RIPPLE_ROCKSDB_AVAILABLE
236 #if RIPPLE_ROCKSDB_AVAILABLE
240 #if RIPPLE_ENABLE_SQLITE_BACKEND_TESTS