Bitcoin Core 28.99.0
P2P Digital Currency
|
#include <boost/test/included/unit_test.hpp>
#include <test/util/setup_common.h>
#include <functional>
#include <iostream>
Go to the source code of this file.
Macros | |
#define | BOOST_TEST_MODULE Bitcoin Core Test Suite |
See https://www.boost.org/doc/libs/1_78_0/libs/test/doc/html/boost_test/adv_scenarios/single_header_customizations/multiple_translation_units.html. More... | |
Variables | |
const std::function< void(const std::string &)> | G_TEST_LOG_FUN |
Redirect debug log to unit_test.log files. More... | |
const std::function< std::vector< const char * >()> | G_TEST_COMMAND_LINE_ARGUMENTS |
Retrieve the command line arguments from boost. More... | |
const std::function< std::string()> | G_TEST_GET_FULL_NAME |
Retrieve the boost unit test name. More... | |
#define BOOST_TEST_MODULE Bitcoin Core Test Suite |
const std::function<std::vector<const char*>()> G_TEST_COMMAND_LINE_ARGUMENTS |
Retrieve the command line arguments from boost.
Retrieve the command line arguments.
Allows usage like: test_bitcoin --run_test="net_tests/cnode_listen_port" -- -checkaddrman=1 -printtoconsole=1
which would return ["-checkaddrman=1", "-printtoconsole=1"]
.
const std::function<std::string()> G_TEST_GET_FULL_NAME |
const std::function<void(const std::string&)> G_TEST_LOG_FUN |
Redirect debug log to unit_test.log files.
This is connected to the logger.