6 #include <bitcoin-build-config.h> 11 #ifdef ENABLE_EXTERNAL_SIGNER 13 #endif // ENABLE_EXTERNAL_SIGNER 15 #include <boost/test/unit_test.hpp> 19 #ifdef ENABLE_EXTERNAL_SIGNER 36 const std::string expected{
"execve failed: "};
41 const std::string
command{
"false"};
43 const std::string what{e.what()};
50 const std::string
command{
"sh -c 'echo err 1>&2 && false'"};
51 const std::string expected{
"err"};
53 const std::string what(e.what());
55 BOOST_CHECK(what.find(expected) != std::string::npos);
61 const std::string
command{
"echo {"};
73 #endif // ENABLE_EXTERNAL_SIGNER
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)
#define BOOST_CHECK_EQUAL(v1, v2)
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)