Bitcoin Core 31.99.0
P2P Digital Currency
main.cpp
Go to the documentation of this file.
1// Copyright (c) 2011-present The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
8// Boost.Test's SIGSTKSZ alternate stack can be smaller than Linux requires on musl.
9#define BOOST_TEST_DISABLE_ALT_STACK
10#define BOOST_TEST_MODULE Bitcoin Core Test Suite
11
12#include <boost/test/included/unit_test.hpp>
13
15
16#include <functional>
17#include <iostream>
18
25const std::function<std::vector<const char*>()> G_TEST_COMMAND_LINE_ARGUMENTS = []() {
26 std::vector<const char*> args;
27 for (int i = 1; i < boost::unit_test::framework::master_test_suite().argc; ++i) {
28 args.push_back(boost::unit_test::framework::master_test_suite().argv[i]);
29 }
30 return args;
31};
32
36const std::function<std::string()> G_TEST_GET_FULL_NAME = []() {
37 return boost::unit_test::framework::current_test_case().full_name();
38};
ArgsManager & args
Definition: bitcoind.cpp:280
const std::function< std::string()> G_TEST_GET_FULL_NAME
Retrieve the unit test name.
Definition: main.cpp:20
const std::function< std::vector< const char * >()> G_TEST_COMMAND_LINE_ARGUMENTS
Retrieve the command line arguments from boost.
Definition: main.cpp:25