diff options
author | Thomas Winget <tewinget@gmail.com> | 2015-03-16 03:12:54 -0400 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2015-03-16 04:17:53 -0400 |
commit | cade0da8f1e932a17886aa9893a580fa3e3289c7 (patch) | |
tree | bbb2c171f01b37e227754d648e29c93f15bb344b /tests/unit_tests | |
parent | BerkeleyDB BlockchainDB impl copy/paste/modify (diff) | |
download | monero-cade0da8f1e932a17886aa9893a580fa3e3289c7.tar.xz |
CMake wiring, minor cleanup, minor test addition
Make Cmake things aware of BerkeleyDB and BlockchainBDB
Make the BlockchainDB unit tests aware of BlockchainBDB
Diffstat (limited to 'tests/unit_tests')
-rw-r--r-- | tests/unit_tests/BlockchainDB.cpp | 3 | ||||
-rw-r--r-- | tests/unit_tests/CMakeLists.txt | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit_tests/BlockchainDB.cpp b/tests/unit_tests/BlockchainDB.cpp index 4d39d7da8..bbe8582f9 100644 --- a/tests/unit_tests/BlockchainDB.cpp +++ b/tests/unit_tests/BlockchainDB.cpp @@ -35,6 +35,7 @@ #include "blockchain_db/blockchain_db.h" #include "blockchain_db/lmdb/db_lmdb.h" +#include "blockchain_db/berkeleydb/db_bdb.h" #include "cryptonote_core/cryptonote_format_utils.h" using namespace cryptonote; @@ -209,7 +210,7 @@ protected: using testing::Types; -typedef Types<BlockchainLMDB> implementations; +typedef Types<BlockchainLMDB, BlockchainBDB> implementations; TYPED_TEST_CASE(BlockchainDBTest, implementations); diff --git a/tests/unit_tests/CMakeLists.txt b/tests/unit_tests/CMakeLists.txt index 54f25431d..b8a22e312 100644 --- a/tests/unit_tests/CMakeLists.txt +++ b/tests/unit_tests/CMakeLists.txt @@ -57,6 +57,7 @@ add_executable(unit_tests target_link_libraries(unit_tests LINK_PRIVATE cryptonote_core + blockchain_db rpc wallet ${GTEST_MAIN_LIBRARIES} |