5 #include <boost/test/unit_test.hpp> 7 #include <test/test_bitcoin.h> 19 SetWalletDir(m_walletdir_path_cases[
"default"]);
22 fs::path walletdir =
gArgs.
GetArg(
"-walletdir",
"");
23 fs::path expected_path = fs::canonical(m_walletdir_path_cases[
"default"]);
29 SetWalletDir(m_walletdir_path_cases[
"custom"]);
32 fs::path walletdir =
gArgs.
GetArg(
"-walletdir",
"");
33 fs::path expected_path = fs::canonical(m_walletdir_path_cases[
"custom"]);
39 SetWalletDir(m_walletdir_path_cases[
"nonexistent"]);
46 SetWalletDir(m_walletdir_path_cases[
"file"]);
53 SetWalletDir(m_walletdir_path_cases[
"relative"]);
60 SetWalletDir(m_walletdir_path_cases[
"trailing"]);
63 fs::path walletdir =
gArgs.
GetArg(
"-walletdir",
"");
64 fs::path expected_path = fs::canonical(m_walletdir_path_cases[
"default"]);
70 SetWalletDir(m_walletdir_path_cases[
"trailing2"]);
73 fs::path walletdir =
gArgs.
GetArg(
"-walletdir",
"");
74 fs::path expected_path = fs::canonical(m_walletdir_path_cases[
"default"]);
BOOST_AUTO_TEST_CASE(walletinit_verify_walletdir_default)
virtual bool Verify() const =0
Verify wallets.
const WalletInitInterface & g_wallet_init_interface
#define BOOST_FIXTURE_TEST_SUITE(a, b)
std::string GetArg(const std::string &strArg, const std::string &strDefault) const
Return string argument or default value.
#define BOOST_AUTO_TEST_SUITE_END()
#define BOOST_CHECK(expr)