Skip to content

Commit c5e0aef

Browse files
committed
Merge pull request #5604
d58c5d6 tests: run sanity checks in tests too (Cory Fields)
2 parents 48e1765 + d58c5d6 commit c5e0aef

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/Makefile.test.include

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ BITCOIN_TESTS =\
5858
test/netbase_tests.cpp \
5959
test/pmt_tests.cpp \
6060
test/rpc_tests.cpp \
61+
test/sanity_tests.cpp \
6162
test/script_P2SH_tests.cpp \
6263
test/script_tests.cpp \
6364
test/scriptnum_tests.cpp \

src/test/sanity_tests.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright (c) 2012-2013 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+
8+
#include <boost/test/unit_test.hpp>
9+
BOOST_AUTO_TEST_SUITE(sanity_tests)
10+
11+
BOOST_AUTO_TEST_CASE(basic_sanity)
12+
{
13+
BOOST_CHECK_MESSAGE(glibc_sanity_test() == true, "libc sanity test");
14+
BOOST_CHECK_MESSAGE(glibcxx_sanity_test() == true, "stdlib sanity test");
15+
BOOST_CHECK_MESSAGE(ECC_InitSanityCheck() == true, "openssl ECC test");
16+
}
17+
18+
BOOST_AUTO_TEST_SUITE_END()

0 commit comments

Comments
 (0)