6 #include <test/util/logging.h>
9 #include <test/util/setup_common.h>
12 #include <boost/test/unit_test.hpp>
17 SetWalletDir(m_walletdir_path_cases[
"default"]);
18 bool result = m_wallet_client->verify();
21 fs::path expected_path = fs::canonical(m_walletdir_path_cases[
"default"]);
26 SetWalletDir(m_walletdir_path_cases[
"custom"]);
27 bool result = m_wallet_client->verify();
30 fs::path expected_path = fs::canonical(m_walletdir_path_cases[
"custom"]);
35 SetWalletDir(m_walletdir_path_cases[
"nonexistent"]);
37 ASSERT_DEBUG_LOG(
"does not exist");
38 bool result = m_wallet_client->verify();
44 SetWalletDir(m_walletdir_path_cases[
"file"]);
46 ASSERT_DEBUG_LOG(
"is not a directory");
47 bool result = m_wallet_client->verify();
53 SetWalletDir(m_walletdir_path_cases[
"relative"]);
55 ASSERT_DEBUG_LOG(
"is a relative path");
56 bool result = m_wallet_client->verify();
62 SetWalletDir(m_walletdir_path_cases[
"trailing"]);
63 bool result = m_wallet_client->verify();
66 fs::path expected_path = fs::canonical(m_walletdir_path_cases[
"default"]);
71 SetWalletDir(m_walletdir_path_cases[
"trailing2"]);
72 bool result = m_wallet_client->verify();
75 fs::path expected_path = fs::canonical(m_walletdir_path_cases[
"default"]);
BOOST_AUTO_TEST_CASE(avalanche_flag_tests)
fs::path GetPathArg(std::string pathlike_arg) const
Get a normalized path from a specified pathlike argument.
Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path:...
#define BOOST_AUTO_TEST_SUITE_END()
#define BOOST_FIXTURE_TEST_SUITE(a, b)
#define BOOST_CHECK(expr)