aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/libwallet_api_tests/CMakeLists.txt1
-rw-r--r--tests/libwallet_api_tests/main.cpp2
-rw-r--r--tests/unit_tests/main.cpp4
3 files changed, 4 insertions, 3 deletions
diff --git a/tests/libwallet_api_tests/CMakeLists.txt b/tests/libwallet_api_tests/CMakeLists.txt
index 4c5542d91..7da0d113e 100644
--- a/tests/libwallet_api_tests/CMakeLists.txt
+++ b/tests/libwallet_api_tests/CMakeLists.txt
@@ -39,6 +39,7 @@ add_executable(libwallet_api_tests
target_link_libraries(libwallet_api_tests
PRIVATE
+ wallet_api
wallet
version
epee
diff --git a/tests/libwallet_api_tests/main.cpp b/tests/libwallet_api_tests/main.cpp
index 3434cd530..25fa547f8 100644
--- a/tests/libwallet_api_tests/main.cpp
+++ b/tests/libwallet_api_tests/main.cpp
@@ -30,7 +30,7 @@
#include "gtest/gtest.h"
-#include "wallet/wallet2_api.h"
+#include "wallet/api/wallet2_api.h"
#include "wallet/wallet2.h"
#include "include_base_utils.h"
#include "common/util.h"
diff --git a/tests/unit_tests/main.cpp b/tests/unit_tests/main.cpp
index 86e7bcef3..95ea67410 100644
--- a/tests/unit_tests/main.cpp
+++ b/tests/unit_tests/main.cpp
@@ -52,7 +52,7 @@ int main(int argc, char** argv)
::testing::InitGoogleTest(&argc, argv);
po::options_description desc_options("Command line options");
- const command_line::arg_descriptor<std::string> arg_data_dir = {"data-dir", "Data files directory", "", true};
+ const command_line::arg_descriptor<std::string> arg_data_dir = { "data-dir", "Data files directory" };
command_line::add_arg(desc_options, arg_data_dir, "");
po::variables_map vm;
@@ -65,7 +65,7 @@ int main(int argc, char** argv)
if (! r)
return 1;
- if (vm["data-dir"].defaulted())
+ if (command_line::is_arg_defaulted(vm, arg_data_dir))
unit_test::data_dir = boost::filesystem::canonical(boost::filesystem::path(epee::string_tools::get_current_module_folder()))
.parent_path().parent_path().parent_path().parent_path()
.append("tests").append("data");