6 #if defined(HAVE_CONFIG_H)
13 #ifdef ENABLE_EXTERNAL_SIGNER
17 #include <boost/test/unit_test.hpp>
28 #ifdef ENABLE_EXTERNAL_SIGNER
45 const std::string expected{
"execve failed: "};
50 const std::string
command{
"false"};
52 const std::string what{e.what()};
59 const std::string
command{
"ls nosuchfile"};
60 const std::string expected{
"No such file or directory"};
62 const std::string what(e.what());
64 BOOST_CHECK(what.find(expected) != std::string::npos);
70 const std::string
command{
"echo {"};
BOOST_CHECK_EXCEPTION predicates to check the specific validation error.
const UniValue & find_value(std::string_view key) const
BOOST_AUTO_TEST_SUITE_END()
#define BOOST_CHECK_EQUAL(v1, v2)
#define BOOST_CHECK(expr)
UniValue RunCommandParseJSON(const std::string &str_command, const std::string &str_std_in)
Execute a command which returns JSON, and parse the result.
BOOST_AUTO_TEST_CASE(dummy)