mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Merge a7d17daa5c into merged_master (Bitcoin PR bitcoin/bitcoin#22086)
This commit is contained in:
commit
e0b40dae0d
17 changed files with 39 additions and 32 deletions
|
|
@ -2,15 +2,18 @@
|
|||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <support/lockedpool.h>
|
||||
#include <util/system.h>
|
||||
|
||||
#include <test/util/setup_common.h>
|
||||
|
||||
#include <limits>
|
||||
#include <memory>
|
||||
#include <stdexcept>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(allocator_tests, BasicTestingSetup)
|
||||
BOOST_AUTO_TEST_SUITE(allocator_tests)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(arena_tests)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,12 @@
|
|||
|
||||
#include <amount.h>
|
||||
#include <policy/feerate.h>
|
||||
#include <test/util/setup_common.h>
|
||||
|
||||
#include <limits>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(amount_tests, BasicTestingSetup)
|
||||
BOOST_AUTO_TEST_SUITE(amount_tests)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(MoneyRangeTest)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,19 +3,19 @@
|
|||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <arith_uint256.h>
|
||||
#include <test/util/setup_common.h>
|
||||
#include <uint256.h>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
#include <iomanip>
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
#include <stdint.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(arith_uint256_tests, BasicTestingSetup)
|
||||
BOOST_AUTO_TEST_SUITE(arith_uint256_tests)
|
||||
|
||||
/// Convert vector to arith_uint256, via uint256 blob
|
||||
static inline arith_uint256 arith_uint256V(const std::vector<unsigned char>& vch)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <test/util/setup_common.h>
|
||||
#include <util/strencodings.h>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
|
@ -10,7 +9,7 @@
|
|||
|
||||
using namespace std::literals;
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(base32_tests, BasicTestingSetup)
|
||||
BOOST_AUTO_TEST_SUITE(base32_tests)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(base32_testvectors)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <test/util/setup_common.h>
|
||||
#include <util/strencodings.h>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
|
@ -10,7 +9,7 @@
|
|||
|
||||
using namespace std::literals;
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(base64_tests, BasicTestingSetup)
|
||||
BOOST_AUTO_TEST_SUITE(base64_tests)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(base64_testvectors)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,12 +3,15 @@
|
|||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <bech32.h>
|
||||
#include <test/util/setup_common.h>
|
||||
#include <random.h>
|
||||
#include <util/strencodings.h>
|
||||
#include <test/util/str.h>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(bech32_tests, BasicTestingSetup)
|
||||
#include <string>
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(bech32_tests)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(bech32_testvectors_valid)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,11 +5,10 @@
|
|||
#include <blech32.h>
|
||||
#include <random.h>
|
||||
#include <util/strencodings.h>
|
||||
#include <test/util/setup_common.h>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(blech32_tests, BasicTestingSetup)
|
||||
BOOST_AUTO_TEST_SUITE(blech32_tests)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(blech32_polymod_sanity)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,11 +3,10 @@
|
|||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <compat/byteswap.h>
|
||||
#include <test/util/setup_common.h>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(bswap_tests, BasicTestingSetup)
|
||||
BOOST_AUTO_TEST_SUITE(bswap_tests)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(bswap_tests)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,9 +3,8 @@
|
|||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <test/util/setup_common.h>
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(compilerbug_tests, BasicTestingSetup)
|
||||
BOOST_AUTO_TEST_SUITE(compilerbug_tests)
|
||||
|
||||
#if defined(__GNUC__)
|
||||
// This block will also be built under clang, which is fine (as it supports noinline)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(hash_tests, BasicTestingSetup)
|
||||
BOOST_AUTO_TEST_SUITE(hash_tests)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(murmurhash3)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,8 +8,10 @@
|
|||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
#include <set>
|
||||
#include <vector>
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(merkleblock_tests, BasicTestingSetup)
|
||||
BOOST_AUTO_TEST_SUITE(merkleblock_tests)
|
||||
|
||||
/**
|
||||
* Create a CMerkleBlock using a list of txids which will be found in the
|
||||
|
|
|
|||
|
|
@ -5,11 +5,11 @@
|
|||
#include <amount.h>
|
||||
#include <policy/fees.h>
|
||||
|
||||
#include <test/util/setup_common.h>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(policy_fee_tests, BasicTestingSetup)
|
||||
#include <set>
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(policy_fee_tests)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(FeeRounder)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,7 +7,9 @@
|
|||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(reverselock_tests, BasicTestingSetup)
|
||||
#include <stdexcept>
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(reverselock_tests)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(reverselock_basics)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
#include <mutex>
|
||||
#include <stdexcept>
|
||||
|
||||
namespace {
|
||||
template <typename MutexType>
|
||||
|
|
@ -76,7 +77,7 @@ void TestInconsistentLockOrderDetected(MutexType& mutex1, MutexType& mutex2) NO_
|
|||
}
|
||||
} // namespace
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(sync_tests, BasicTestingSetup)
|
||||
BOOST_AUTO_TEST_SUITE(sync_tests)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(potential_deadlock_detected)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
//
|
||||
#include <test/util/setup_common.h>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
|
|
@ -15,7 +14,7 @@ std::pair<std::string, std::string> SplitTorReplyLine(const std::string& s);
|
|||
std::map<std::string, std::string> ParseTorReplyMapping(const std::string& s);
|
||||
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(torcontrol_tests, BasicTestingSetup)
|
||||
BOOST_AUTO_TEST_SUITE(torcontrol_tests)
|
||||
|
||||
static void CheckSplitTorReplyLine(std::string input, std::string command, std::string args)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,8 +13,9 @@
|
|||
#include <iomanip>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(uint256_tests, BasicTestingSetup)
|
||||
BOOST_AUTO_TEST_SUITE(uint256_tests)
|
||||
|
||||
const unsigned char R1Array[] =
|
||||
"\x9c\x52\x4a\xdb\xcf\x56\x11\x12\x2b\x29\x12\x5e\x5d\x35\xd2\xd2"
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@
|
|||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <test/util/setup_common.h>
|
||||
#include <util/string.h>
|
||||
#include <util/threadnames.h>
|
||||
|
||||
#include <mutex>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <vector>
|
||||
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(util_threadnames_tests, BasicTestingSetup)
|
||||
BOOST_AUTO_TEST_SUITE(util_threadnames_tests)
|
||||
|
||||
const std::string TEST_THREAD_NAME_BASE = "test_thread.";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue