sanity_tests.cpp raw

   1  // Copyright (c) 2012-2022 The Limenka 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 <dbwrapper.h>
   6  #include <kernel/checks.h>
   7  #include <key.h>
   8  #include <test/util/setup_common.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(dbwrapper_SanityCheck(), "dbwrapper sanity test");
  17    BOOST_CHECK_MESSAGE(kernel::Clang_IndVarSimplify_Bug_SanityCheck() == true, "Clang IndVarSimplify bug sanity test");
  18    BOOST_CHECK_MESSAGE(ECC_InitSanityCheck() == true, "secp256k1 sanity test");
  19  }
  20  
  21  BOOST_AUTO_TEST_SUITE_END()
  22