Bitcoin Core
31.99.0
P2P Digital Currency
src
test
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
14
#include <
test/util/setup_common.h
>
15
16
#include <functional>
17
#include <iostream>
18
25
const
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
36
const
std::function<std::string()>
G_TEST_GET_FULL_NAME
= []() {
37
return
boost::unit_test::framework::current_test_case().full_name();
38
};
args
ArgsManager & args
Definition:
bitcoind.cpp:280
G_TEST_GET_FULL_NAME
const std::function< std::string()> G_TEST_GET_FULL_NAME
Retrieve the unit test name.
Definition:
main.cpp:20
setup_common.h
G_TEST_COMMAND_LINE_ARGUMENTS
const std::function< std::vector< const char * >()> G_TEST_COMMAND_LINE_ARGUMENTS
Retrieve the command line arguments from boost.
Definition:
main.cpp:25
Generated on Mon Aug 24 2026 20:00:45 for Bitcoin Core by
1.9.4