6 #include <bitcoin-build-config.h> 14 #ifdef ENABLE_EXTERNAL_SIGNER 16 #endif // ENABLE_EXTERNAL_SIGNER 18 #include <boost/cstdlib.hpp> 19 #include <boost/test/unit_test.hpp> 25 #ifdef ENABLE_EXTERNAL_SIGNER 29 return {boost::unit_test::framework::master_test_suite().argv[0],
"--log_level=nothing",
"--report_level=no",
"--run_test=mock_process/" +
name};
48 const std::string expected{
"CreateProcess failed: "};
50 const std::string expected{
"execve failed: "};
58 const std::string what{e.what()};
66 const std::string expected{
"err"};
68 const std::string what(e.what());
70 BOOST_CHECK(what.find(expected) != std::string::npos);
87 #endif // ENABLE_EXTERNAL_SIGNER
static std::vector< std::string > mock_executable(std::string name)
BOOST_FIXTURE_TEST_SUITE(cuckoocache_tests, BasicTestingSetup)
Test Suite for CuckooCache.
BOOST_AUTO_TEST_SUITE_END()
BOOST_CHECK_EXCEPTION predicates to check the specific validation error.
BOOST_AUTO_TEST_CASE(run_command)
UniValue RunCommandParseJSON(const std::vector< std::string > &cmd_args, const std::string &str_std_in)
Execute a command which returns JSON, and parse the result.
#define BOOST_CHECK_EQUAL(v1, v2)
auto Join(const C &container, const S &separator, UnaryOp unary_op)
Join all container items.
#define BOOST_CHECK(expr)