forked from nanocurrency/nano-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename to core_test_main to entry for consistency (nanocurrency#4572)
* Delete stub `core_test/entry.cpp` * Rename to `core_test_main` to `entry` for consistency * Fix includes
- Loading branch information
1 parent
e2c76ca
commit 8601543
Showing
3 changed files
with
27 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,30 @@ | ||
#include <nano/lib/logging.hpp> | ||
#include <nano/node/common.hpp> | ||
#include <nano/secure/utility.hpp> | ||
|
||
#include <gtest/gtest.h> | ||
|
||
TEST (basic, basic) | ||
#include <boost/filesystem/path.hpp> | ||
|
||
constexpr std::size_t OPEN_FILE_DESCRIPTORS_LIMIT = 16384; | ||
|
||
namespace nano | ||
{ | ||
namespace test | ||
{ | ||
void cleanup_dev_directories_on_exit (); | ||
} | ||
void force_nano_dev_network (); | ||
} | ||
|
||
GTEST_API_ int main (int argc, char ** argv) | ||
{ | ||
ASSERT_TRUE (true); | ||
nano::logger::initialize_for_tests (nano::log_config::tests_default ()); | ||
nano::set_file_descriptor_limit (OPEN_FILE_DESCRIPTORS_LIMIT); | ||
nano::force_nano_dev_network (); | ||
nano::node_singleton_memory_pool_purge_guard memory_pool_cleanup_guard; | ||
testing::InitGoogleTest (&argc, argv); | ||
auto res = RUN_ALL_TESTS (); | ||
nano::test::cleanup_dev_directories_on_exit (); | ||
return res; | ||
} |