2020-12-31 09:48:25 +01:00
|
|
|
// Copyright (c) 2012-2020 The Bitcoin Core developers
|
2015-01-05 21:39:40 -05:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2017-11-10 13:57:53 +13:00
|
|
|
#include <compat/sanity.h>
|
|
|
|
#include <key.h>
|
2019-11-05 15:18:59 -05:00
|
|
|
#include <test/util/setup_common.h>
|
2017-01-16 15:01:37 -05:00
|
|
|
#include <util/time.h>
|
2015-01-05 21:39:40 -05:00
|
|
|
|
|
|
|
#include <boost/test/unit_test.hpp>
|
2015-03-12 09:34:42 +01:00
|
|
|
|
|
|
|
BOOST_FIXTURE_TEST_SUITE(sanity_tests, BasicTestingSetup)
|
2015-01-05 21:39:40 -05:00
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(basic_sanity)
|
|
|
|
{
|
|
|
|
BOOST_CHECK_MESSAGE(glibcxx_sanity_test() == true, "stdlib sanity test");
|
2020-04-30 16:57:46 +08:00
|
|
|
BOOST_CHECK_MESSAGE(ECC_InitSanityCheck() == true, "secp256k1 sanity test");
|
2017-01-16 15:01:37 -05:00
|
|
|
BOOST_CHECK_MESSAGE(ChronoSanityCheck() == true, "chrono epoch test");
|
2015-01-05 21:39:40 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_SUITE_END()
|