Bitcoin Core  25.99.0
P2P Digital Currency
sanity_tests.cpp
Go to the documentation of this file.
1 // Copyright (c) 2012-2022 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 <key.h>
7 #include <util/time.h>
8 
9 #include <boost/test/unit_test.hpp>
10 
11 BOOST_FIXTURE_TEST_SUITE(sanity_tests, BasicTestingSetup)
12 
13 BOOST_AUTO_TEST_CASE(basic_sanity)
14 {
15  BOOST_CHECK_MESSAGE(ECC_InitSanityCheck() == true, "secp256k1 sanity test");
16  BOOST_CHECK_MESSAGE(ChronoSanityCheck() == true, "chrono epoch test");
17 }
18 
BOOST_AUTO_TEST_SUITE_END()
bool ECC_InitSanityCheck()
Check that required EC support is available at runtime.
Definition: key.cpp:384
BOOST_AUTO_TEST_CASE(basic_sanity)
Basic testing setup.
Definition: setup_common.h:80
bool ChronoSanityCheck()
Sanity check epoch match normal Unix epoch.
Definition: time.cpp:27