9#include <test/util/setup_common.h>
11#include <boost/test/unit_test.hpp>
17BOOST_FIXTURE_TEST_SUITE(db_tests, BasicTestingSetup)
20 std::string test_name =
"test_name.dat";
22 fs::path file_path = datadir / test_name;
23 std::ofstream f{file_path};
27 std::shared_ptr<BerkeleyEnvironment> env =
34 std::string expected_name =
"wallet.dat";
38 std::shared_ptr<BerkeleyEnvironment> env =
GetWalletEnv(datadir, filename);
48 std::shared_ptr<BerkeleyEnvironment> env_1 =
50 std::shared_ptr<BerkeleyEnvironment> env_2 =
52 std::shared_ptr<BerkeleyEnvironment> env_3 =
64 std::shared_ptr<BerkeleyEnvironment> env_1_a =
66 std::shared_ptr<BerkeleyEnvironment> env_2_a =
70 std::shared_ptr<BerkeleyEnvironment> env_1_b =
72 std::shared_ptr<BerkeleyEnvironment> env_2_b =
79BOOST_AUTO_TEST_SUITE_END()
std::shared_ptr< BerkeleyEnvironment > GetWalletEnv(const fs::path &wallet_path, std::string &database_filename)
Get BerkeleyEnvironment and database filename given a wallet path.
fs::path GetDataDirNet() const
Get data directory path with appended network identifier.
Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path:...
#define BOOST_CHECK(expr)
BOOST_AUTO_TEST_CASE(seederaddrinfo_test)