Bitcoin Core
22.99.0
P2P Digital Currency
src
test
sanity_tests.cpp
Go to the documentation of this file.
1
// Copyright (c) 2012-2021 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
5
#include <
compat/sanity.h
>
6
#include <
key.h
>
7
#include <
test/util/setup_common.h
>
8
#include <
util/time.h
>
9
10
#include <boost/test/unit_test.hpp>
11
12
BOOST_FIXTURE_TEST_SUITE
(sanity_tests,
BasicTestingSetup
)
13
14
BOOST_AUTO_TEST_CASE
(basic_sanity)
15
{
16
BOOST_CHECK_MESSAGE(
glibcxx_sanity_test
() ==
true
,
"stdlib sanity test"
);
17
BOOST_CHECK_MESSAGE(
ECC_InitSanityCheck
() ==
true
,
"secp256k1 sanity test"
);
18
BOOST_CHECK_MESSAGE(
ChronoSanityCheck
() ==
true
,
"chrono epoch test"
);
19
}
20
21
BOOST_AUTO_TEST_SUITE_END
()
BOOST_AUTO_TEST_CASE
BOOST_AUTO_TEST_CASE(basic_sanity)
Definition:
sanity_tests.cpp:14
setup_common.h
ChronoSanityCheck
bool ChronoSanityCheck()
Sanity check epoch match normal Unix epoch.
Definition:
time.cpp:36
ECC_InitSanityCheck
bool ECC_InitSanityCheck()
Check that required EC support is available at runtime.
Definition:
key.cpp:384
glibcxx_sanity_test
bool glibcxx_sanity_test()
Definition:
glibcxx_sanity.cpp:58
sanity.h
BOOST_FIXTURE_TEST_SUITE
#define BOOST_FIXTURE_TEST_SUITE(a, b)
Definition:
object.cpp:14
BOOST_AUTO_TEST_SUITE_END
BOOST_AUTO_TEST_SUITE_END()
time.h
BasicTestingSetup
Basic testing setup.
Definition:
setup_common.h:83
key.h
Generated on Fri Feb 18 2022 20:03:49 for Bitcoin Core by
1.8.17