11 #ifdef ENABLE_EXTERNAL_SIGNER 13 #endif // ENABLE_EXTERNAL_SIGNER 15 #include <boost/test/unit_test.hpp> 26 #ifdef ENABLE_EXTERNAL_SIGNER 43 const std::string expected{
"execve failed: "};
48 const std::string
command{
"false"};
50 const std::string what{e.what()};
57 const std::string
command{
"sh -c 'echo err 1>&2 && false'"};
58 const std::string expected{
"err"};
60 const std::string what(e.what());
62 BOOST_CHECK(what.find(expected) != std::string::npos);
68 const std::string
command{
"echo {"};
80 #endif // ENABLE_EXTERNAL_SIGNER
const UniValue & find_value(std::string_view key) const
BOOST_AUTO_TEST_SUITE_END()
BOOST_CHECK_EXCEPTION predicates to check the specific validation error.
#define BOOST_CHECK_EQUAL(v1, v2)
BOOST_AUTO_TEST_CASE(dummy)
UniValue RunCommandParseJSON(const std::string &str_command, const std::string &str_std_in)
Execute a command which returns JSON, and parse the result.
#define BOOST_CHECK(expr)